Results 1 to 2 of 2
  1. #1
    djaber007 is offline Member
    Join Date
    May 2011
    Posts
    2
    Rep Power
    0

    Post creat a variable panels

    hello everybody
    i have a probleme if someone can help me
    i have an application that i calculate distances between images , but these images need panels to display, but a variable number of panels,
    so how to creat a variable number of jpanel
    exemple:
    we give x= 5 panels

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    Quote Originally Posted by djaber007 View Post
    hello everybody
    i have a probleme if someone can help me
    i have an application that i calculate distances between images , but these images need panels to display, but a variable number of panels,
    so how to creat a variable number of jpanel
    exemple:
    we give x= 5 panels
    You can create JPanels in a loop such as a for loop, just you can create most other objects. The problem you may be having (I'm guessing) is what to do with them once you've made them. Perhaps you want to put them in another JPanel that uses GridLayout that is held by a JScrollPane -- but really that's nothing more than a SWAG, and probably the best you'll get from us until we know more of the details of your problem.

    My suggestion for you is to tell us these important details if you still need our help.

    Best of luck.

Similar Threads

  1. how to make an applet to creat threads in the server
    By paralax24 in forum Java Applets
    Replies: 0
    Last Post: 05-07-2011, 02:42 PM
  2. Need some help with panels inside panels
    By kakefjes in forum AWT / Swing
    Replies: 0
    Last Post: 03-17-2011, 12:36 PM
  3. how creat linear combination of object
    By ahmed80 in forum New To Java
    Replies: 2
    Last Post: 01-07-2011, 12:29 PM
  4. how creat multi object for one class
    By ahmed80 in forum New To Java
    Replies: 0
    Last Post: 01-07-2011, 10:57 AM
  5. how to creat collection
    By STILET in forum Advanced Java
    Replies: 2
    Last Post: 07-29-2008, 08:17 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
  •