File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need strategy for developing swing component.

 
Swaroop Kunduru
Ranch Hand
Posts: 37
  • 0
  • 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: 4826
34
Chrome Netbeans IDE Windows
  • 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: 20372
44
Chrome Eclipse IDE Java Windows
  • 0
  • 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
  • 0
  • 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