This is a bunch of tips and techniques related to Oracle PL/SQL and Forms.

It allows to have a standard Forms button with some nice decoration features.
You can apply a gradient color, set rounded borders, justify the label and also have a shadow behind the label.
Because it is firstly a PJC, you can set most of the common properties with the Set_Item_Property() built-in (label, position, foreground color, background color, etc...).
The gradient feature is part of the JRE 1.4 so this bean need the Sun Java plug-in to run.
The Java code
SwingButton.java CButton.java
The implementation class of the Button item
oracle.forms.fd.SwingButton
The methods you can call
| LT | CT | RT |
| LM | CM | RM |
| LB | CB | RB |
The sample dialog
. Download the swingbutton.zip file
. Unzip the files
. copy the swingbutton.jar file in the /forms/java directory
. Edit your /forms/server/formsweb.cfg file to add the jar file
. Open the SWINGBUTTON.fmb module (Oracle Forms 9.0.2)
. Compile all and run the module
The swingbutton.jar file have to be signed.
The swingbutton.jar file provided with the article is already signed.