Java
The language - GUI
- free java editors - MySQL
Eclipse, the best editor
- Studieboeken/Tutorials
- Java Reference
- Example Applications: come together with
jdk, under subdirectory demo
- Free Code:
The Java language
Java's spelregels
Java summary (based on Fred Swartz's
detailed Java notes).
Elk onderdeel kan je op 1 blad printen in (Landscape/Portait),
met
Internet Explorer: Print -> Preferences -> Advanced ->
Fit To
Page: A4.
- Basics
- Expressions
- Statements
- Classes
- Methods
- Arrays
- Non-obvious details
Graphical user interfaces in Java
Java
Swing
Tutorial
- Example
Code MyFrame.java
- Java Swing Class
Model
- GUI construction
- Event handling
Possible methods (see examples in EventHandlingFrame.java):
- by subclassing
- with event listener
- a. Create a new listener class by subclassing the
EventListener and implementing all listener methods
- b. Make a GUI object a listener by implementing
all
listener methods
- c. Make an instant EventListener
- with event adapter
- a. Create a new listener class by subclassing the
EventAdapter and implementing the useful listener methods
- b. Make an instant EventAdapter
- Create your own
Listeners:
het EventGeneratingObject genereert events (methods ProcessEvent
en ProcessEvent2 worden opgeroepen) die in het ReactingOnEventObject
afgehandeld worden, zonder dat in de code van EventGeneratingObject
iets over het reagerend object staat (= event
delegation,
scheiden
van code)!
- Change look and feel to OS look and feel: UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
MySQL
Install JDBC driver: download
and put the mysql-connector-java-3.0.15-ga-bin.jar
file into the lib/ext/ directory of your java directory.
Use the Mysql Control Center!!
java example