Creating specialised Borders, HOW?

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

my code
import javax.swing.*;
import javax.swing.border.BevelBorder;
myJComponent.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED, Color.CYAN, Color.GREEN ));
...and I use the jdk1.4 !!!
If that doesn't work check your jdk and post your code.
Nico

Similar Messages

Maybe you are looking for

  • I cannot launch bridge from photoshop cc 2014

    I cannot launch bridge from photoshop cc 2014

  • What can i use instead of Visual Studio?

    I'm a new user. i need to use Microsoft Visual Studio for my project. As i understand there is no MVS for mac. But is there any thing else, that is capacitable as MVS for mac.

  • Ipod Nano shows file with exclaimation mark!

    Bought this for my daughter for Christmas! Can anyone help me before she gets up in the morning to find it not working! The screen shows the file with exclaimation mark. I have followed all the 5R advice on the apple site. All my software is bang up

  • Solaris 8 cyclical page cache

    I have read Sun's article about Solaris 8 cyclical page cache, but still don't understand how it works. It did not mention how does kernel devide memory between the IO page buffer cache and applications. Is it is first come, first served basis? Is th

  • Sql rewrite help

    I have a select statemnet like below.. it currently returns 3 rows. I want the the last value from this query below. so i want only "4" returned from this query. How to achieve it ? Thanks for the help. SQL SELECT  col6 FROM  TableA WHERE  col1=12 AN