That works . Thanks a lot for help.
Type: Posts; User: Javabeginner
That works . Thanks a lot for help.
I mean, there is no syntax error It does not show picture completely Just part of it is showed and immediatly below JButton (try to run it with some real "big Size" image ( not small icon or...
That is exactly what I did copeg but it does not work properly. Here is code (just change file address to point to some real picture in your documents).
iimport javax.imageio.ImageIO;
import...
Thanks for replies.
copeg How can I then add Button to the panel. When I add it,for example
panel.add(new JButton("ok", BorderLayout.SOUTH)
it is displayed over...
I need to make a JPanel that contains picture and JButton. JButton should contain an actionListener and when user clicks on it JFileChooser opens and user can select picture and change that one...