File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Applets and the fly likes Regarding Borders.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Regarding Borders.." Watch "Regarding Borders.." New topic

Regarding Borders..

teeyes prakash

Joined: Feb 05, 2001
Posts: 19
I have just started Applets. Kindly let me know if this option is available.
While using the fillRect or drawRect, I need to have the recetangle filled with one color with the border in a different color. Also is there any way of increasing or decreasing the thickness of the Border.
Plz let me know.
maateen ashraf
Ranch Hand

Joined: Jan 08, 2001
Posts: 122
make an abject of rectangle & set its properties & its colors what ever u want
then on any event which ever u want draw it on the applet
then call the repaint method....
now ur applet is running with changed appearance...
tell if again u come up with more problems...
Stephanie Grasson
Ranch Hand

Joined: Jun 14, 2000
Posts: 347
Here is one simple example:

Hope this helps.
I agree. Here's the link:
subject: Regarding Borders..
It's not a secret anymore!