|
|
|
General
|
Menus
We can also develop an application with a Menu. As a name indicates a Menu consists of Menu objects.
View Rating |
|
|
General
|
GUI-based Applications
In this section you will learn about how to create a window for your application. You need to define a subclass of Frame to create a window for your application.
View Rating |
|
|
General
|
Adapters Example
In the following program code, the adapter class has been used. This class has been used as an anonymous inner class to draw a rectangle within an applet.
View Rating |
|
|
General
|
Event Adapters
There are some event listeners that have multiple methods to implement. That is some of the listener interfaces contain more than one method.
View Rating |
|
|
General
|
Write to a file
As we have read about the BufferedOutputStream class that store the data in an internal buffer and lets you write characters to a stream. Lets see an example that writes the text "Hello Java" to the existed file.
View Rating |
|
|