This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
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

Win a copy of Elasticsearch in Action this week in the Big Data forum!
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.
It is sorta covered in the JavaRanch Style Guide.
subject: Regarding Borders..