Java Applets
Java Links
|
|
|
|
Welcome to QuickButton1
Are you bored waiting for an image to download in an
applet ? Does an ImageButton, which you see on many sites, take ages to load ? Then here
is a simple NON-IMAGE yet somewhat attractive and configurable button which loads
quickly. Usually we put at least two buttons on a interface - like OK and Cancel or
Yes and No. If you are programming under Windows, you have a nice GUI editor which
generates a .rc file. Here you can have buttons having the same size. But how do you do it
in the AWT ? I have just modified the measurement routine in the
QuickButton applet to achieve this effect.
Features
What you can configure -
- button label (obviously)
- button label font,
- font color,
- font size,
- longest string a pair of buttons will have.
|
| Development Platform: | Windows 95 |
| JDK version: | Sun JDK1.0.2 |
| Tested Under: | Windows 95, Linux |
| Source Code: | QuickButton1 Applet Source Code, QuickButton1 Source Code
|
Why did I do it ?
Many of the image buttons that I came across open a connection back to the server where
they came from to get the images. Some have animated gifs and it is a pain waiting for them.
I am behind a proxy server with a firewall, and Netscape 3 throws up a lot of security violations.
Hence I thought that I should make an alternative to image buttons. My image button is nothing great or
path-breaking, but a simple extension of the Canvas class.
In this version I have changed the button shading for enabled/disabled state slightly to make it look closer to
an actual button. Look at the QuickButton code first and then at QuickButton1 code.
|
|