ImageIcon image = new ImageIcon("image/pic1.jpg");
JLabel label = new JLabel("", image, JLabel.CENTER);
JPanel panel = new JPanel(new BorderLayout());
panel.add( label, BorderLayout.CENTER );
More Related Contents:
- How to have an interactive map in JFrame
- How to add an image to a JPanel?
- How to set a background picture in JPanel
- Simplest way to set image as JPanel background
- Add an Background image to a Panel
- Background image for a jPanel not working
- How to fit Image size to JFrame Size?
- How to retrieve and display images from a database in a JSP page?
- Is there a way to take a screenshot using Java and save it to some sort of image?
- How to scale a BufferedImage
- get width and height of JPanel outside of the class
- Only one component shows up in JFrame
- Java: Rotating Images
- JLabel – Show longer text as multiple lines?
- How to add image in a TextView text?
- Resizing image in Java
- Including Images with an executable jar
- How should I give images rounded corners in Android?
- Printing a JPanel with Scrollable Jtable On it [closed]
- Steganography in lossy compression (JAVA)
- Android drawable speech bubble
- How do you create a thumbnail image out of a JPEG in Java?
- Java Program to create a PNG waveform for an audio file
- ImageIO not able to write a JPEG file
- Get mouse detection with a dynamic shape
- Java: How do I create a movie from an array of images?
- How to return a PNG image from Jersey REST service method to the browser
- Cannot convert current canvas data into image in java
- Test if a file is an image file
- How to convert an Image to base64 string in java? [duplicate]