Results 1 to 2 of 2
  1. #1
    KamilR is offline Member
    Join Date
    Apr 2008
    Location
    Prague, CZE
    Posts
    4
    Rep Power
    0

    Default JPanel in agreement with dimension of pictures

    Hi, when i have a JPanel, i need draw a picture into this panel, but i need set dimension of this panel same like pictures dimension, how should i do?

  2. #2
    Zosden's Avatar
    Zosden is offline Senior Member
    Join Date
    Apr 2008
    Posts
    384
    Rep Power
    6

    Default

    just put the picture in the panel, the panel will grow or shrink accordingly
    My IP address is 127.0.0.1

Similar Threads

  1. Replies: 22
    Last Post: 07-25-2012, 09:51 PM
  2. refresh JPanel
    By olesja in forum AWT / Swing
    Replies: 1
    Last Post: 04-16-2008, 03:58 PM
  3. Arraylist to a 2- dimension array conversion
    By mars123 in forum New To Java
    Replies: 1
    Last Post: 12-06-2007, 11:24 AM
  4. Help Loading Up Pictures
    By marco in forum Java Applets
    Replies: 3
    Last Post: 08-14-2007, 10:32 PM
  5. Help with pictures en Java
    By susan in forum AWT / Swing
    Replies: 1
    Last Post: 08-07-2007, 04:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •