This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need strategy for developing swing component.

 
Swaroop Kunduru
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I have to develop a dialog component with tabs in it.

On each tab there are several groups.

In each group there are 3 rows.

Each row have several components like textbox, combobox, radio buttons.

Please let me know what are the best strategies to develop above UI window.

How to lay and group the components on window?

Please see the attachment image.

Thanks in advance.

Regards,

Swaroop Kunduru.
Temp.PNG
The attachment contain the image of the window.
[Thumbnail for Temp.PNG]
 
Stephan van Hulst
Bartender
Pie
Posts: 5572
53
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would probably first make a separate class for your groups. They all look the same, and you will benefit from making a class out of them.

The group can simply be an extension of JPanel, and you can use a BoxLayout to manage the rows, and each row can use another BoxLayout for its components.

Then, on each tab you can use another BoxLayout to add your groups. For the tabs, you can simply use a JTabbedPane.
 
Rob Spoor
Sheriff
Pie
Posts: 20511
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And you can use a TitledBorder for the lines / labels around the two groups of controls.
 
Swaroop Kunduru
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob Spoor wrote:And you can use a TitledBorder for the lines / labels around the two groups of controls.


Thanks for both of you.

I have it done in pannels.

Command panel is giving trouble in adjusting buttons.

Regards

Swaroop Kunduru.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic