• Post Reply Bookmark Topic Watch Topic
  • New Topic

layout selection  RSS feed

 
Anand Shrivastava
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear friends,

I am on my first project in java. Can anyone suggest which layout professionals use to design the screen. I have seen that netbeans uses grouplayout, but writing grouplayout on notepad is extremely tedious. Which layout you guys use while coding on notepad and from where it can be learnt.

Kindly guide.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Commonly used layout strategies are to use the new GroupLayout, FormLayout (from JGoodies), or a mix of BorderLayout, FlowLayout, GridLayout in nested JPanels (although this approach requires understanding what each of the layouts does, and some forethought about how to decompose a "screen" into multiple panels whose layouts work together).

I would also suggest to get a better IDE than Notepad - Eclipse and Netbeans are free! Even if these are too "heavyweight" for your computer, or if you want to focus on learning Java rather than figuring out how an IDE does things - there are better "programmer editors" than Notepad - SCiTE, jEdit, and NotePad++ are just a few.
 
Anand Shrivastava
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Nathan,

Now I have downloaded notepad++ and using it. However, it is not able to run the jdk commander i use to compile my programs. Might be some configuration trouble.

Anyway thanks for your worthy suggestions.
 
Brian Cole
Author
Ranch Hand
Posts: 936
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Nathan Pruett:
I would also suggest to get a better IDE than Notepad - Eclipse and Netbeans are free! Even if these are too "heavyweight" for your computer, or if you want to focus on learning Java rather than figuring out how an IDE does things - there are better "programmer editors" than Notepad


For newcomers to Java I might recommend BlueJ.

I've never actually tried it, but it's free and come highly recommended for beginners.
 
Campbell Ritchie
Sheriff
Posts: 53779
128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Opinions are very divided about BlueJ. I have tried it and didn't like it all. What you get is classes which you can right-click and call the creator on without a "main" method. Then you can call their methods similarly. You can also inspect the details of an object, seeing all its field values. Good for getting to see what methods do, but less useful for putting applications together.

Get rid of Windows and get a decent editor like gedit, kedit or Kate, which come with Linux
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!