English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i use netbeans-5.5
and i want put an image in jpanel in my GUI

2007-07-02 08:45:55 · 1 answers · asked by Bemo 1 in Computers & Internet Programming & Design

1 answers

Use the Swing class ImagePanel.

For example:
===========================
Image image = Toolkit. getDefaultToolkit(). getImage(fname);
ImagePanel imagePanel = new ImagePanel(image);
logoPanel.add(imagePanel, BorderLayout.EAST);

2007-07-02 09:11:05 · answer #1 · answered by McFate 7 · 0 0

fedest.com, questions and answers