Questions tagged [titled-border]

31 questions
42
votes
6 answers

GroupBox / TitledBorder in JavaFX 2?

Is there something like a GroupBox or TitledBorder available on JavaFX 2? Thanks for any hint :-)
stefan.at.kotlin
  • 15,347
  • 38
  • 147
  • 270
7
votes
1 answer

Delayed TitledBorder title update/refresh, why?

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 from time-to-time. Unfortunately, all the items of A and B are refreshed in time, but not the title of A.…
Jérôme Verstrynge
  • 57,710
  • 92
  • 283
  • 453
6
votes
1 answer

How to create a titled border in Android?

has someone an idea how to create a titled border layout like in swing? On this site i found a trick to generate a rectangle between a object. Maybe this can help me to create such a titled border? greetings
501 - not implemented
  • 2,638
  • 4
  • 39
  • 74
4
votes
2 answers

Java Swing: adding button to TitledBorder

I have a list of TitledBorder panels that contain textfields that represents point. I've just been asked to add a button to the panel with the TitledBorder, that will alow me delete the panel and its contents. so how can I add a button in the top…
Jason Rogers
  • 19,194
  • 27
  • 79
  • 112
4
votes
1 answer

JavaFX: ClassNotFoundException for imported class in FXML

I'm trying to create a textfield with a title embedded in the field border like: Following the solution posted here I've created a .java file called TitledBorder.java within my src>main>java directory. My FXML is in the src>main>resources directory…
Casey B.
  • 279
  • 3
  • 13
3
votes
1 answer

Changed appearance of Swing TitledBorder since Java 9

I noticed a difference in the appearance of a TitledBorder between Java 8 (and earlier) and Java 9 (and later) on Windows with native look-and-feel. Starting with Java 9, the border is darker and doesn't have round corners. Especially with nested…
user7291698
  • 1,972
  • 2
  • 15
  • 30
3
votes
1 answer

Don't know how to use SetBorder

My code works fine, as in it does what it's supposed to, (thanks to the help of this website!) but I forgot one detail: I'm missing the borders around my panels. Thing is, I don't know how to do it, when I assign a label to a panel it doesn't…
imaginedrragon
  • 303
  • 3
  • 18
3
votes
1 answer

wxPython - titled border

I have searched wxPython documentation and can't find any way to make a titled border on a panel. I need a border like the one on wx.RadioBox have with caption in it. Thanks in advance.
Zygimantas Gatelis
  • 1,923
  • 2
  • 18
  • 27
2
votes
2 answers

Is it possible to set a TitledBorder opaque on Swing?

Is it somehow possible on Swing to set a TitledBorder transparent so that a background image shines through?
Kosi2801
  • 22,222
  • 13
  • 38
  • 45
2
votes
2 answers

Difference between new xxxBorder() and Borderfactory method?

What is the difference between setBorder(new TitledBorder("")); and setBorder(BorderFactory.createTitledBorder("")); and which advantages/disadvantages do they have?
Big_Chair
  • 2,781
  • 3
  • 31
  • 58
2
votes
2 answers

change TitledBorder color dynamically in java

I have created a TitledBorder and set it to a JPanel. JPanel panel = new JPanel(); panel.setBorder(javax.swing.BorderFactory. createTitledBorder(null, "title", javax.swing.border. TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border. …
sajad
  • 2,094
  • 11
  • 32
  • 52
2
votes
2 answers

How to create vertical TitledBorder in JPanel (javax swing)

I'm trying to figure out how to create a vertical TitledBorder in a JPanel. I've got this situation: I'd like to have "Actuators st..." placed vertically, so user can read it. Is there a way to do it, or should I implement my own customized JPanel…
Alejander
  • 81
  • 1
  • 4
1
vote
3 answers

Title truncation in JPanel TitledBorder - Java swing

I've got a JPanel with a TitledBorder, but the contents of the panel are narrower than the title in the border and the title gets truncated. I am using BoxLayout for the JPanel which as depicted here pays attention to manual setting of width. I…
paulahniuk
  • 556
  • 3
  • 8
1
vote
1 answer

Make a TitledBorder title editable

Is there a way to make the title in TitledBorder editable so the user can edit what the title is? Or if there's another border that may allow this, what is it? Box.setBorder(new TitledBorder(editableString)); EDIT: Here's a link to my more specific…
DarkHark
  • 614
  • 1
  • 6
  • 20
1
vote
1 answer

Java- TitledBorder in gridbag layout expanding as the window expands

I am making a form using the GridBag layout which has a titled border. The first TitledBorder panel which is Customer Details works fine except that I would like to know how add some spacing between the first title and textfield(eg first name) and…
Tia
  • 1,220
  • 5
  • 22
  • 47
1
2 3