File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT / JFace and the fly likes List Chooser Panel Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT / JFace
Reply Bookmark "List Chooser Panel" Watch "List Chooser Panel" New topic
Author

List Chooser Panel

vinaya kumar
Ranch Hand

Joined: Jan 20, 2002
Posts: 70
Hello All,
My Panel should look as below

1) Scroll Pane A
which has in it a JTree structure
2) A Panel B
which has in it 4 Buttons,
AddAll,Remove,RemoveAll.
3) A Scroll Pane C
which is alist of items ,i have selected from
the A(hmm! the Tree)
4) A Panel D
which has two buttons ( for moving
the elements in C ,up and Down)
the logic of the things works proper
I use Forte to Draw this and then change the layout to GridBag.
now my problem is!!
i am not able to align the same.
i.e

Lets call the whole set has listchooserPanel.

i have two panels
1)List ChooserPanel
2) A panel with a label and a textfield
i am not able to align the listchooserpanel
starting to start of label.

Any clue why this problem.
Is there any Listchooser class ,for my requirement
in Java
Thanks and Regards
vinaya
Manfred Leonhardt
Ranch Hand

Joined: Jan 09, 2001
Posts: 1492
Hi Vinaya,
Without actual code it is hard to tell, but you should look at the anchor variable of the GridBagConstraints. It is usually the one that aligns things. For example, if we want to left align a label and a textfield:

The above code will result in a label directly above a textfield and both aligned on the left side.
Regards,
Manfred.
 
 
subject: List Chooser Panel
 
Threads others viewed
Dynamic Filling up Jtable for Database
Problem with scrollbar in the scrollpane
Regarding panel Revalidate Method
Problem in printing a JTable
JTree + JList in JScrollPane - Out of Sync
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com