|
|
|
@ -24,22 +24,6 @@ public class ShowPosterImageFrame extends JFrame { |
|
|
|
private JPanel contentPane; |
|
|
|
private JTextField tf_mid_spi; |
|
|
|
|
|
|
|
/** |
|
|
|
* Launch the application. |
|
|
|
*/ |
|
|
|
public static void main(String[] args) { |
|
|
|
EventQueue.invokeLater(new Runnable() { |
|
|
|
public void run() { |
|
|
|
try { |
|
|
|
ShowPosterImageFrame frame = new ShowPosterImageFrame(); |
|
|
|
frame.setVisible(true); |
|
|
|
} catch (Exception e) { |
|
|
|
e.printStackTrace(); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Create the frame. |
|
|
|
*/ |
|
|
|
@ -69,12 +53,13 @@ public class ShowPosterImageFrame extends JFrame { |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
BufferedImage myPicture; |
|
|
|
JLabel lblPoster = new JLabel(new ImageIcon("c:\\tmp\\FavoriteMovies\\movies_poster\\poster1.jpg")); |
|
|
|
lblPoster.setBounds(89, 160, 303, 150); |
|
|
|
panel.add(lblPoster); |
|
|
|
panel.validate(); |
|
|
|
panel.repaint(); |
|
|
|
|
|
|
|
myPicture = ImageIO.read(new File("C:\\Users\\skc\\eclipse-workspace\\first\\Favorite_Movies\\src\\images\\movies_poster\\Lion king\\81BMmrwSFOL.jpg")); |
|
|
|
JLabel picLabel = new JLabel(new ImageIcon(myPicture)); |
|
|
|
add(picLabel); |
|
|
|
} catch (IOException e1) { |
|
|
|
} catch (Exception e1) { |
|
|
|
// TODO Auto-generated catch block |
|
|
|
e1.printStackTrace(); |
|
|
|
} |
|
|
|
|