TitledBorder « Border « Java Swing Q&A





1. Is it possible to set a TitledBorder opaque on Swing?    stackoverflow.com

Is it somehow possible on Swing to set a TitledBorder transparent so that a background image shines through?

2. What look and feel component do I set to change the text color of a TitledBorder?    stackoverflow.com

I have a group of radio buttons in my Swing application that have a border built around them as follows:

radioButtonPanel.setBorder( new CompoundBorder ( 
    BorderFactory.createTitledBorder( " Input Data ...

3. Icon in titledBorder title    stackoverflow.com

Hi is it possible to place an icon in the title of a titledBorder for example the following code:


import java.awt.GridLayout;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.TitledBorder;

public class TitledExample extends JPanel {

  public ...

4. TitledBorder problem with Substance UI and custom JComponent    stackoverflow.com

I'm using BorderFactory to create a titled border with a Substance UI themed Swing user interface, and I'm coming across the exception shown below. I tried with LineBorder and it works ...

5. Bold titledBorder    stackoverflow.com

I tried doing

UIManager.getDefaults().put("TitledBorder.font", Font.BOLD);
contentPanel.setBorder(new TitledBorder("Client Downloader"));
But it's not making it bold. It just looked spaced apart. Is that the wrong way?

6. Delayed TitledBorder title update/refresh, why?    stackoverflow.com

I have a JPanel A with a title border inside a JPanel B of a JTabbedPanel C. I have a method refreshing the content of A and B which is called ...

7. TitledBorder's title    coderanch.com

8. Titled Border    coderanch.com

Hey nice site wish i had found it a while ago... anyway i just started learning swings and i have trouble caling the Title border... can someone help me please... i found one topic here that envolves the titled border, but it was on a panel... all i need is the title border. thanx in advance





10. about TitledBorder    coderanch.com

11. TitledBorder in Swing    java-forums.org

Hello all, I have a problem creating proper TitledBorder to JPopupMenu. The result is a border that is very thick, and white, while in all the examples I found on the net the thickness is 1 - simple line. The TitledBorder class in java sais that it uses the look&feel to determine the border, but I want it to be thickness ...