Top "Jlabel" questions

A Java Swing component to display a short text string or an image, or both.

Aligning JLabels in BoxLayout

I've been searching around for days trying to find the answer to this, and I can't find out what's wrong. …

java swing jlabel boxlayout
Align text and icon differently in JLabel

i'm trying to create a JLabel that has text aligned left and icon aligned right, i tried this code: _ip = …

java swing alignment jlabel imageicon
How to set padding at JLabel

I want to display a Multiline JLabel into JPanel. So I have this code but I'm not able to show …

java swing jpanel jlabel
JLabel won't show with JPanel.setLayout(null). Why?

I want to show many different labels over a map, so I'm using null layout in my panel, and calling …

java swing jpanel jlabel null-layout-manager
How to put the text of a JLabel under its icon

I trying to put the text of a JLabel under its icon (centered) at the momemnt I can get this …

java swing user-interface graphics jlabel
Draw a JButton to look like a JLabel (or at least without the button edge?)

I've got a JButton that for various reasons I want to act like a button, but look like a JLabel. …

java swing jbutton jlabel
Overlay a JButton over JLabel in Java Swing?

Is it possible to overlay a Button over a Label in Swing? For example, if have a JLabel with image …

java swing jbutton jlabel imageicon
Changing default JLabel font

How would I go about setting the default font for all JLabel instances. Instead of setting the font for each …

java user-interface swing jlabel
Set size of JLabel in FlowLayout

I have a JPanel that uses FlowLayout. I add a number of JLabels to the JPanel, use setPreferedSize() to adjust …

java swing jlabel flowlayout
How to draw on a JLabel?

I want to use the 2D Java API to draw on a JLabel that already has an image on it …

java swing graphics jlabel java-2d