layout to dialog box

wht type of layout we can put to dialog boxGridLayout gl=new GridLayout(1,1);jp1.setLayout(gl);jp1.add(new JLabel("Purchase Form",JLabel.CENTER));
[265 byte] By [Nadya] at [2007-10-2 17:23:55]
# 1

Download and read the [url http://java.sun.com/docs/books/tutorial/]Swing tutorial[/url] before posting anymore questions. (The download link is on the top right).

There is a section on Layout Managers.

You need to do some reading on your own. We can't help you with every basic question you post that indicates that you have done no work on your own.

As you stated in a previous posting:

"iam working on my university poject and the deadline is nearing and upon tht we got a project topics late"

This is your assignment, you need to prove that you understand the concepts. If we write your code your will not learn anything. One of the reasons to go to University is to develop skills to learn on your own. Now is a good time to start.

camickra at 2007-7-13 18:40:09 > top of Java-index,Desktop,Core GUI APIs...
# 2

hey buddy

iam not asking for help everytime b4 posting i do my research work and then do it as this question is concerned i was getting errors i was trying it for a long time

the layout was not working. i know its a basic question,

and iam very poor at layouts i jst needed some help not the exact codes jst some example sites

anyways thks for helping me out

Nadya at 2007-7-13 18:40:09 > top of Java-index,Desktop,Core GUI APIs...