Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

need help with designing of panels  RSS feed

 
neha priya
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello everyone,

i need some help with designing of panels.the design goes like this:

i have a basePanel that contains 3 other panels on top of it i.e

1. selectPanel that has 2 radiobuttons lies to the north of basepanel.
2. userpanel that has comboboxes and okbutton lies to the center of basepanel
3. adminpanel that also has set of comboboxes lies to the south of basepanel

now when user selects the admin radiobutton in the selectpanel options the
adminpanel becomes visible and the userpanel is set to invisible.


please suggest me how to design the panels.

thanks
 
Campbell Ritchie
Sheriff
Posts: 53750
127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tabbed Pane? Card Layout?
 
Pierre Sugar
Ranch Hand
Posts: 62
Java Ruby Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try userPanel.setVisible(false) and adminPanel.setVisible(true) when pressing the adminOptionButton and vice versa.
 
pete stein
Bartender
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pierre Sugar wrote:try userPanel.setVisible(false) and adminPanel.setVisible(true) when pressing the adminOptionButton and vice versa.


How is this better than the already suggested CardLayout?
 
Pierre Sugar
Ranch Hand
Posts: 62
Java Ruby Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I didn't mean to have a better solution. It's just different and refering to the requesters desribed application.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!