• Post Reply Bookmark Topic Watch Topic
  • New Topic

How do I start?

 
trupti nigam
Ranch Hand
Posts: 627
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I have never worked on GUI side.But want to learn some basics of it so that I can atleast manage to create simple user interface.This is a preparation for SCJD.
How can I start? I have Mastering JFC book by David M. Geary. But I want the material to be easy to understand..
thanks in advance..
Trupti
 
Layne Lund
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Typically, I start by extending JFrame. This class usually only contains main() and a constructor to add an instance of the next class that extends JPanel. It may also have some initialization for a menu, but that's probably a bit more complicated than what you need right now. Then my new JPanel class places all of the objects I need for the interface.
Most of this I learned from the book Core Java by Cornell and Horstmann. I found it very easy to follow. The examples are great, too. I suggest you delve into your own book to get the details and come back when you have more specific questions.
Layne
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sun provides a great tutorial - The Swing Tutorial. I would suggest reading through the sections and applying what you learn by doing short examples... The "Graphic Java 2 : Mastering the JFC : Vol. 2 - Swing" book is a great resource once you understand Swing a little bit more... this volume is good, but it starts out at a pretty high level... try the Swing tutorial above, or look at some of the later chapters in the Geary book that concentrate on the simple components. These would probably be a better starting place. After you feel more comfortable building small GUIs, start reading more of the Geary book...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!