Friday, March 16, 2007

Introduction to making user interfaces in Java

This is a very brief introduction to making user interfaces in Java using Swing. In this section we will learn:

  • The JFrame class and making a simple frame in Java
  • Handling UI events
    • Events
    • Listeners
    • Adapters
  • Brief introduction to Layout managers
    • FlowLayout
    • BorderLayout
    • GridLayout
    • BoxLayout
  • Using other components like Buttons, TextBoxes, TextAreas, and ScrollPanes
  • Java Beans
    • What makes a class a Java Bean?
      • public default constructor
      • naming convention for property getter/setter methods
      • naming convention for methods that add event listeners
      • The manifest.mf file should contain the line Java-Bean: True

No comments: