This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes unable to align the widgets (ListViewers and buttons) in a single row when constructing DualListBox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "unable to align the widgets (ListViewers and buttons) in a single row when constructing DualListBox" Watch "unable to align the widgets (ListViewers and buttons) in a single row when constructing DualListBox" New topic
Author

unable to align the widgets (ListViewers and buttons) in a single row when constructing DualListBox

sam mac
Greenhorn

Joined: Mar 23, 2011
Posts: 5
constructing duallistbox in java and need to align the list viewers & buttons appropriately.

The order is:

4 columns, availableListviewer -- addremove button -- selectedListviewer -- upbutton/downbutton

addremove buttons & updown buttons should be of smaller size & centrally aligned in the same row, while both the listviewers should be of same width.

can anyone guide me in setting the layout?
Rob Camick
Ranch Hand

Joined: Jun 13, 2009
Posts: 2267
    
    8
See A Visual Guide to Layout Managers. Maybe a horizontal BoxLayout would be a good place to start.
sam mac
Greenhorn

Joined: Mar 23, 2011
Posts: 5
application is rcp one and swt widgets. also the duallist control is in a new dialog
 
Consider Paul's rocket mass heater.
 
subject: unable to align the widgets (ListViewers and buttons) in a single row when constructing DualListBox