• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Need strategy for developing swing component.

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
[Thumbnail for Temp.PNG]
The attachment contain the image of the window.
 
Saloon Keeper
Posts: 15529
364
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 22784
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
CAUTION! Do not touch the blades on your neck propeller while they are active. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic