D
D
Dmitry Omelchenko2013-12-02 14:24:03
Java
Dmitry Omelchenko, 2013-12-02 14:24:03

What causes incorrect Swing UI generation in Netbeans IDE?

original.png

When building the project skeleton in Netbeans IDE, I used a graphical form designer. Visually, I liked the design from the Swing library (the preview is before compilation - picture on the right), but after compilation I got a pretty terrible compiled version (picture on the left). What is the problem? What have I done wrong?

Just in case: OS Windows 7 64-bit, Netbeans 7.4

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
Boris Chistov, 2013-12-02
@ddummer

Try playing L&F

UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
new NewJFrame().setVisible(true);

Read what it is and why At the docks

R
Rikcon, 2013-12-02
@Rikcon

All these buttons, textboxes, are styled by the system itself, try to put a different color scheme in Windows, there will be a different result. Personally, I came across this on Windows Forms, WPF. How to fix and did not understand.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question