jLabel text center

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
JLabel label = new JLabel("Label Text Here", SwingConstants.CENTER);
JLabel label = new JLabel("Label Text Here", SwingConstants.CENTER);
JLabel label = new JLabel("Label Text Here", SwingConstants.CENTER);