Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Other Java > Java GUI
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Java GUI Discussions specific to programming Java GUI.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java GUI section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 24th, 2004, 01:12 AM
Friend of Wrox
 
Join Date: Oct 2003
Location: colombo, WP, Sri Lanka.
Posts: 481
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran
Default Textbox align

Hello,
I am doing my project in swings and i have taken JPanel
to work with.But I am unable to align properly
Actually i have labels,textfields,textareas and list
components
I want the alignment to be in order that is from left to right
first Label beside it text box
then 2ndlabel beside it again text box

after this I have to get borders and inside it
I have list box and four buttons it must be in
vertical manner
this way i have two borders and this should on
the bottom

Anyone who can help me in doing this i will be
thankful to them

surendran
(Anything is Possible)
__________________
surendran
(Anything is Possible)
http://www.suren.info
http://ssuren.spaces.msn.com
Reply With Quote
  #2 (permalink)  
Old August 15th, 2004, 11:40 PM
Registered User
 
Join Date: Aug 2004
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default


Look, there are numerous tools out there ranging from free to affordable to expensive to make Java GUI painless. Once used you can study the generated code to see how it's done:

Free
-----
Netbeans - A full featured, cross platform, Open Source Java IDE w/ a nice GUI designer including Gridbag Layout. Very mature robust product. Written in Java it requires a fast computer to appreciate (600mhz +, 128MB RAM +, 3D graphics card)
http://www.netbeans.org

Borland JBuilder (Foundation Edition) - Powerful, fast, full featured Java IDE and GUI Designer.
http://www.borland.com/jbuilder/foundation/index.html

Elcipse - Full featured Java IDE, but no built in GUI designer. Not as mature as Netbeans or JBuilder, but improving in leaps and bounds. Faster than Netbeans, but slower than JBuilder. GUI designers for eclipse can be purchased from 3rd parties.
http://www.eclipse.org/

Affordable
----------
Swing designer - $199.00 a Java GUI editor plug-in for Eclipse. Really sweet GUI layout tool capable of rapid development of complex GUIs in Swing or Eclipse's SWT and the code it generates is professionally formatted, readable, and easy to maintain.
http://www.instantiations.com/swing-designer/


Expensive
---------
Borland JBuilder (Developer Edition) - $499 Top of the line Java IDE, GUI Designer, and Rapid Database Developer.
http://www.borland.com/jbuilder/developer/index.html

BX for Java - $998 a complete stand alone visual development tool for pure Java applications. Includes a database designer module that makes Java widgets "data-aware" by mapping them to database fields.
http://www.ics.com/products/bxjava/

Hope this helps,

Alex

Reply With Quote
  #3 (permalink)  
Old August 24th, 2004, 07:54 AM
Authorized User
 
Join Date: Aug 2004
Location: Severn, MD, USA.
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Box container = new Box(BoxLayout.X_AXIS);
container.add(new JLabel("This should do the trick"));

X_AXIS - Components are laid out horizontally from left to right.
Y_AXIS - Components are laid out vertically from top to bottom.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Align to right not working Cyber Shiva HTML Code Clinic 4 July 19th, 2007 01:49 PM
EASY Q: Left-Align and Right-Align DIV? panuvin ASP.NET 1.0 and 1.1 Basics 0 December 16th, 2006 02:02 AM
align=right? larry Javascript How-To 11 July 6th, 2004 05:07 PM
TextBox (Align Center) Problem on Printing mrhyman VB How-To 9 February 19th, 2004 12:14 PM
align Center melvik C# 1 September 7th, 2003 04:50 AM



All times are GMT -4. The time now is 05:34 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.