|
|
|
|
Working with Resources : Customization of Default Resources
|
|
Step by Step
Import the usual figue packages.
|
import figue.*;
import figue.box.*;
import figue.path.*; |
Import the resource package.
Create the relevant resources for the reserved names.
|
private final void initResources() {
try {
_facade.doGetFont(Constants.DEFAULT_FONT,
FontFamily.TIMES_ROMAN,
FontStyle.BOLD,26,false);
_facade.doGetColor(Constants.DEFAULT_COLOR,
BasicColor.GREEN);
_facade.doGetColor(Constants.DEFAULT_BACKGROUND,
BasicColor.YELLOW); |
|
|
Example
- Accelerators :
- home, end, page up, page down, left arrow,right arrow, up arrow, down arrow.
- Autoscrolling :
- drag the mouse inside the
text area, approach a border or a corner, and wait.
|
|
|
Related Classes
and Methods
|
|
|
What Next ?
Now you can :
|
|
|
|
|
|
|
|
|