Go Back   Java Programming Forums > Java Standard Edition Programming Help > AWT / Java Swing


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 13-05-2010, 09:27 AM
Member
 

Join Date: Mar 2010
Posts: 104
Thanks: 19
Thanked 0 Times in 0 Posts
nasi is on a distinguished road
Default Dynamic numbber of JPanels

does any body have any idea about the best way that I can do the following.

I am designing a GUI which consists of multiple(not known how many) JPanels. The layout of each JPanel is FlowLayout and is figured as a combination of a JCheckBox and a JEditorPane. These JPanels are generated one at a time. suppose that each time as an answer to an event one JPanel is created. I added all of them to a Box and then I added the Box to another JPanel and then Finally these JPanels should be displayed in a JScrollPane.

my problem is on the last part. I can't add the Jpanel which consists of all the JPanels to JScrollaPane.
I used paneScrollPane = new JScrollPane(spanel); but it doesn't work



Reply With Quote Share this thread on Facebook
Sponsored Links
Java Training from DevelopIntelligence
  #2 (permalink)  
Old 13-05-2010, 09:39 AM
Member
 

Join Date: Mar 2010
Posts: 104
Thanks: 19
Thanked 0 Times in 0 Posts
nasi is on a distinguished road
Default Re: Dynamic numbber of JPanels

sorry, just after posting the thread, I got the point.
Reply With Quote
  #3 (permalink)  
Old 14-05-2010, 07:44 AM
JavaPF's Avatar
mmm.. coffee
 
7 Highscores

Join Date: May 2008
Location: United Kingdom
Posts: 1,585
Thanks: 104
Thanked 93 Times in 86 Posts
JavaPF is someone you want to know!JavaPF is someone you want to know!JavaPF is someone you want to know!

I'm feeling Mellow
Default Re: Dynamic numbber of JPanels

Glad you solved this issue nasi
__________________
Don't forget to add syntax highlighted code tags around your code: [highlight=Java] code here [/highlight]

Forum Tip: Add to peoples reputation () by clicking the button on their useful posts.
Reply With Quote
The Following User Says Thank You to JavaPF For This Useful Post:
nasi (15-05-2010)
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Similar Threads
Thread Thread Starter Forum Replies Last Post
repainting a jframe containing two jpanels musasabi What's Wrong With My Code? 0 12-05-2010 03:31 AM
Dynamic loading of a class (passing class definition over the network) eddie-w Java Networking 0 11-04-2010 01:56 PM
dynamic method problem... Ranger-Man Object Oriented Programming 8 07-09-2009 09:22 PM
dynamic table creation jam123 JavaServer Pages: JSP & JSTL 2 08-07-2009 11:35 AM


100 most searched terms
Search Cloud
action listener in java actionlistener actionlistener in java addactionlistener addactionlister arraylist value into hash create an abstract class called shape with abstract methods+java double to integer double to integer in java double to integer java eclipse shortcut keys exception in thread "awt-eventqueue-0" java.lang.outofmemoryerror: java heap space exception in thread main java.lang.outofmemoryerror java heap space in eclipse format double java get mouse position java how to convert list to map in java how to format double in java how to format doubles in java how to make a calculator in jframe using jcreator http://www.javaprogrammingforums.com/collections-generics/2688-grade-array-trouble.html http://www.javaprogrammingforums.com/object-oriented-programming/3713-limiting-decimal-places-double.html iphone java java actionlistener java cos java deallocate java double format java double to int java font attributes java format double java forum java forums java get mouse position java jbutton java program to find dimensions of a room java programming codes using astirisks java programming forum java programming forums java.lang.classformaterror: truncated class file java.lang.outofmemoryerror: java heap space java.lang.reflect.invocationtargetexception jbutton actionlistener jbutton with key enter jtable questions in java jtext bold jxl.read.biff.biffexception: unable to recognize ole stream mean value decimal double java oops java assignments programmer forum smack api messagelistener two dimensional arraylist in java

All times are GMT. The time now is 09:33 AM.
Powered by vBulletin® Copyright ©2000-2009, Jelsoft Enterprises Ltd.