Lowyat.NET Forums

Welcome Guest ( Log In | Register )

 
RSS feedBump TopicReply to this topicStart new topicStart Poll

Outline · [ Standard ] · Linear+

> Need help on panel positioning (Java)

DavidLMK
post Oct 30 2009, 11:42 PM
Show posts by this member only |This post's rating (0+, 0-) | Post #1


Getting Started
**

Group: Junior Member
Posts: 126
Ratings earned: 0+, 0-
Ratings given: 0+, 0-

Joined: Jun 2008
From: Johor Bahru





Hi guys.. noobie need help here.. How can i make the Login, login box, password, login and reset show at the middle line by line??
sth like this..
Login ID:
Password:

Login Reset


my coding is as follows

» Click to show Spoiler - click again to hide... «
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
yuhhaur
post Oct 31 2009, 10:17 AM
Show posts by this member only |This post's rating (0+, 0-) | Post #2


I came. I saw. I help
*****

Group: Senior Member
Posts: 852
Ratings earned: 0+, 0-
Ratings given: 0+, 0-

Joined: Jan 2003
From: E A R T H




Try to study for JPanel and the .setLayout() function under the JPanel class
User is online!Profile CardPM
Go to the top of the page
+Quote Post
Azriq007
post Nov 1 2009, 12:01 PM
Show posts by this member only |This post's rating (0+, 0-) | Post #3


Getting Started
**

Group: Junior Member
Posts: 59
Ratings earned: 0+, 0-
Ratings given: 0+, 0-

Joined: Aug 2009





QUOTE(DavidLMK @ Oct 30 2009, 11:42 PM)
Hi guys.. noobie need help here.. How can i make the Login, login box, password, login and reset show at the middle line by line??
sth like this..
                    Login ID:
                  Password:
                   
                        Login                    Reset
my coding is as follows

» Click to show Spoiler - click again to hide... «

*



have you learn about layout manager in java?....
both awt and swing component have its own layout manager..
but there is no restriction if you want to use awt component in swing layout manager or swing component in awt layout manager...
i suggest try to find an article or tutorial for awt layout manager first
the topic i suggest is BorderLayout, FlowLayout,GridLayout,GridBagLayout(this quite difficult,but you can try)
this layout manager will help you manage your application layout more easily...
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Bump TopicReply to this topicTopic OptionsStart new topic
 



----debug section please ignore----
Lo-Fi Version Time is now: 25th November 2009 - 10:05 AM
All Rights Reserved 2003-2009 Vijandren Ramadass (~living on a prayer~)