• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How do I start?

 
Ranch Hand
Posts: 647
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
reply
    Bookmark Topic Watch Topic
  • New Topic