How can I display a component instead of a label in my TitledBorder?

John Zukowski

You'll need to subclass TitledBorder and override the paintBorder() method to draw the appropriate component. This is demonstrated at http://www2.gol.com/users/tame/swing/examples/BorderExamples1.html.

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.