Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
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 Badass: Making Users Awesome this week in the Game Development 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.
I agree. Here's the link:
subject: Regarding Borders..