using java6 and all defaults, i've textfields and a jTextArea; as the default textarea has no border, i added one; but i cant find out what color textfield's borders use, so that i could use the same color in my textarea border.
how can i find that out?
TiA [ March 30, 2007: Message edited by: miguel lisboa ]
Go through the API specifications for whichever Border you are using. You should find methods which get the colour. They are there in LineBorder and EtchedBorder.
Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: javax.swing.plaf.BorderUIResource$CompoundBorderUIResource cannot be cast to javax.swing.border.LineBorder