Questions tagged [look-and-feel]

Questions about the Look and Feel (LaF) of applications with a graphical user interface (GUI). This includes questions on how to achieve a certain appearance (such as the native OS style) or how to alter a component's behaviour.

Look-and-feel can refer to any visual user interface, including individual applications, the operating system itself, or web sites. The 'look' refers to the interface's style (colors, fonts, icons and even branding) and layout of components on the display. The 'feel' refers to how these components behave, especially to user input. This is also known as usability or accessibility.

See also:

Look and Feel - Wikipedia

How to Set the Look and Feel in Java

934 questions
14
votes
2 answers

Trying to create JTable with proper row header

I am trying to create a JTable that has a row header that looks just like a column header and I have spent altogether too much time on it :/ My situation is similar to this question: JTable Row Header Implementation and maybe this one: customizing…
Michael K
  • 1,031
  • 2
  • 14
  • 27
14
votes
3 answers

Substance Look and Feel is making my colors brighter?

I'm trying to call setBackground on a JPanel, so that it matches the color of my JFrame, but the color is some how brighter than the one I type in. I've have tried setting HSB, RGB, HEX code, they all give me the same color, a brighter version of my…
Handsken
  • 664
  • 11
  • 26
14
votes
3 answers

GUI: How can I find out if certain Unicode characters are supported?

I noticed that Metal L&F doesn't support certain arrow characters from Unicode, while Nimbus and GTK L&Fs do support them. Unsupported characters are just displayed as: ... Can I either look up (manually), which L&F supports which Unicode chars, or…
java.is.for.desktop
  • 10,748
  • 12
  • 69
  • 103
14
votes
5 answers

jcombobox filter in java - Look and feel independent

I have a simple JComboBox filter code like this : import java.awt.event.KeyAdapter; import java.awt.event.KeyEvent; import java.util.ArrayList; import java.util.List; import javax.swing.DefaultComboBoxModel; import javax.swing.JComboBox; import…
gtiwari333
  • 24,554
  • 15
  • 75
  • 102
13
votes
6 answers

LookAndFeel-independent reference of color keys

I am currently working on a set of custom controls for a product of the company I'm working in. For this, I am extending a lot of Swing controls and also overriding a lot of paint methods. In order to maintain a consistent color scheme, I receive…
pdinklag
  • 1,241
  • 1
  • 12
  • 28
12
votes
4 answers

How can I get a Look & Feel like Intellij Idea in a Swing application?

As a popular IDE for Java application, Intellij IDEA's look and feel is very beautiful in my opinion. How did it do that? And how can I get a look and feel like Intellij IDEA in my Swing app?
hanfezh
  • 311
  • 1
  • 3
  • 10
12
votes
2 answers

Is there a java look and feel based on the flat design concept?

I have 5 java systems for engineering whose UI were developed using Swing. We started the development of these systems about 10 years ago and they have about 300K lines of code each. All these systems are in production environment. One question that…
Cláudio
  • 484
  • 1
  • 4
  • 18
12
votes
6 answers

How do I get the default font for Swing JTabbedPane labels?

Does the text in Swing components have a default font? In particular, what about tab labels on JTabbedPanes? I'm working on a mock-up of a GUI made with Swing and want it to blend it with a screen image I grabbed of a Swing app.
Paul Reiners
  • 8,576
  • 33
  • 117
  • 202
11
votes
5 answers

How to set jframe look and feel

I am kind of confused on where to put this : try { UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName()); UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel"); } catch(Exception e){ } I did not…
Yayatcm
  • 193
  • 2
  • 3
  • 14
11
votes
6 answers

Why does setBackground to JButton does not work?

I have the following simple code: btn = new JButton(); btn.setBackground(backgroundColor) I worked when I used: UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsClassicLookAndFeel"); But it stopped to work after I have commented…
Roman
  • 124,451
  • 167
  • 349
  • 456
11
votes
2 answers

JOptionPane icon gets cropped in Windows 10

I am using the following code to present an error dialog in Java Swing: JOptionPane.showMessageDialog(null, "Arquivo de imagem não encontrado. Por gentileza, altere o caminho do arquivo.", "Erro", JOptionPane.ERROR_MESSAGE); using Windows 10…
dannyxyz22
  • 978
  • 9
  • 18
11
votes
1 answer

Java 1.8 borders rendered incorrectly

I am experiencing a few problems with the swing borders after upgrading from Java 1.7 to Java 1.8: On all my buttons, I need a solid background-color and a solid border, so I defined that via UIManager. On Java 1.7 and previous versions everything…
gc_
  • 131
  • 3
10
votes
8 answers

Windows look and feel for JFileChooser

I'm trying to generate a JFileChooser that has the Windows look-and-feel. I couldn't find a method to change it, so I created a base class that extends JFileChooser that changes the UI with the following code: public FileChooser(){ …
chama
  • 5,973
  • 14
  • 61
  • 77
10
votes
6 answers

Java: Look and Feel

I am using Netbeans on a Windows machine, what happens is that if I run the main java file the look and feel I get is different than in the case I run the whole program. Meaning if I do this: I get But if I do this I get Did you see the…
Daksh Shah
  • 2,997
  • 6
  • 37
  • 71
10
votes
1 answer

How to make JProgressBar match Windows LaF?

I've been working for a while with JProgressBar using WindowsLookAndFeel, but I found some major differences from the native progress bar: Here is the native bar, in its regular state: While this is Java's: A sharp eye might see Java's top white…
Mordechai
  • 15,437
  • 2
  • 41
  • 82
1
2
3
62 63