4

My netbeans guy builder seems to be missing an option to change border style of jpanel. Videos and images of tutorials show a properties table that is a little different than mine.

EDIT:

So I created a new JPanel from File > new File. Et voila, the properties just popped up out of nowhere and also in the JFrame now.

my netbeans

sample on the net

Josephus87
  • 1,126
  • 9
  • 19

1 Answers1

5

A java.awt.Canvas is not a Swing component. You may be looking for javax.swing.JComponent, which includes "support for borders." For example, the cyan tinted JPanel, named buttonPanel in the illustration below, has a TitledBorder.

image

trashgod
  • 203,806
  • 29
  • 246
  • 1,045
  • I'd swear the option wasn't there, but that was a pretty big (screenshot) mistake on my side. Thank you for your information, I didn't know the difference before. – Josephus87 Apr 21 '15 at 20:13
  • @Josephus87: Glad you got it sorted; I try to limit the GUI-builder dependence using the approach shown [here](http://stackoverflow.com/a/2561540/230513). – trashgod Apr 21 '15 at 20:29