Search:

Type: Posts; User: Javabeginner

Search: Search took 0.11 seconds.

  1. Re: Adding fixed size picture and button to panel

    That works . Thanks a lot for help.
  2. Re: Adding fixed size picture and button to panel

    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...
  3. Re: Adding fixed size picture and button to panel

    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...
  4. Re: Adding fixed size picture and button to panel

    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...
  5. Adding fixed size picture and button to panel

    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...
Results 1 to 5 of 5