toucheatout 2006-05-22 13:08 Programming
Intro
Java isn't the most popular programming language for interfaces, due to the slowliness and lack of reactivity it can achieve. Yet projects as netbeans use it successfully. It comes in handy though for portability, and with applets it is reasonnably possible to put some java online.
Most classic creation of a window
the layouts
This is where things can go awry. While you can choose a fixed layout and manage yourself the coordinates, layouts allow you to define proportions and let java handle the resizing and display depending on the contents.
Using listeners
On a GUI level, listeners mostly are elements that will retrieve user events such as mouse or keyboard events. They allow then implementation of callbacks on various events from the general actionPerformed method down to finer grained as mouseUp methods.
Implement a popup menu on right-clic
Most common AWT and SWING classes in java GUI building