OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Rev 83 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 83 Rev 94
Line 27... Line 27...
27
import javax.swing.UIManager.LookAndFeelInfo;
27
import javax.swing.UIManager.LookAndFeelInfo;
28
 
28
 
29
public class FrameUtil {
29
public class FrameUtil {
30
 
30
 
31
    public static void show(final Window frame) {
31
    public static void show(final Window frame) {
32
        frame.setVisible(true);
32
        if (frame instanceof Frame) {
33
        if (frame instanceof Frame)
33
            // From Java 7, missing animation on Windows :
-
 
34
            // https://bugs.openjdk.java.net/browse/JDK-8037575
34
            ((Frame) frame).setState(Frame.NORMAL);
35
            ((Frame) frame).setState(Frame.NORMAL);
-
 
36
        }
-
 
37
        frame.setVisible(true);
35
        frame.toFront();
38
        frame.toFront();
36
    }
39
    }
37
 
40
 
38
    // only available from sun's release 6u10
41
    // only available from sun's release 6u10
39
    public static String getNimbusClassName() {
42
    public static String getNimbusClassName() {