Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating Borders?

Status
Not open for further replies.

JProg

Programmer
Apr 4, 2002
88
JP
Hi Everyone,

I am currently creating a number of borders for components on a GUI. I have had no trouble using the standard borders (raisedbevel, line, etc) and I have had no trouble creating a few basic custom borders such as double raisedbeveling. However I am currently trying to create my own Bevel Border with the following method:

createBevelBorder(int, Color, Color, Color, Color);

The Color values poss no challenge however I cannot work out the first int part! According to my notes the int part can either be RAISED or LOWERED, however everytime that I type either of these values in I get errors. I know that I am missing a step but I'm not sure what the step is!

Any help will be greatly appreciated.

Thanks
 
Hi JProg,

Are you prefixing the constant with BevelBorder?

BevelBorder bb = new BevelBorder(BevelBorder.LOWERED, Color.red, Color.blue, Color.pink, Color.green);

Otherwise post an example.

scrat
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top