jdk/test/java/awt/Window/TranslucentShapedFrameTest/TranslucentShapedFrameTest.java
author serb
Tue, 12 Nov 2013 20:24:25 +0400
changeset 21596 0e3a39f29dbc
parent 5506 202f599c92aa
child 23010 6dadb192ad81
permissions -rw-r--r--
8027696: Incorrect copyright header in the tests Reviewed-by: alanb, malenkov, mullan
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2648
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
     1
/*
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2648
diff changeset
     2
 * Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
2648
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
     4
 *
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
21596
0e3a39f29dbc 8027696: Incorrect copyright header in the tests
serb
parents: 5506
diff changeset
     7
 * published by the Free Software Foundation.
2648
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
     8
 *
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    13
 * accompanied this code).
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    14
 *
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    18
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2648
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2648
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2648
diff changeset
    21
 * questions.
2648
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    22
 */
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    23
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    24
/*
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    25
 * @test %I% %E%
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    26
 * @bug 6655001 6670649 6687141
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    27
 * @summary Tests that hw acceleration doesn't affect translucent/shaped windows
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    28
 * @author Dmitri.Trembovetski@sun.com: area=Graphics
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    29
 * @compile -XDignore.symbol.file=true TranslucentShapedFrameTest.java
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    30
 * @compile -XDignore.symbol.file=true TSFrame.java
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    31
 * @run main/manual/othervm TranslucentShapedFrameTest
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    32
 * @run main/manual/othervm -Dsun.java2d.noddraw=true TranslucentShapedFrameTest
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    33
 * @run main/manual/othervm -Dsun.java2d.opengl=True TranslucentShapedFrameTest
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    34
 */
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    35
import java.awt.Color;
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    36
import java.awt.Frame;
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    37
import java.awt.GraphicsConfiguration;
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    38
import java.awt.GraphicsDevice;
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    39
import java.awt.GraphicsDevice.WindowTranslucency;
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    40
import java.awt.GraphicsEnvironment;
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    41
import java.awt.Shape;
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    42
import java.awt.geom.Ellipse2D;
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    43
import java.util.concurrent.CountDownLatch;
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    44
import javax.swing.JSlider;
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    45
import javax.swing.SwingUtilities;
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    46
import javax.swing.UIManager;
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    47
import javax.swing.UnsupportedLookAndFeelException;
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    48
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    49
public class TranslucentShapedFrameTest extends javax.swing.JFrame {
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    50
    Frame testFrame;
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    51
    static CountDownLatch done;
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    52
    static volatile boolean failed = false;
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    53
    GraphicsConfiguration gcToUse = null;
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    54
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    55
    /**
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    56
     * Creates new form TranslucentShapedFrameTest
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    57
     */
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    58
    public TranslucentShapedFrameTest() {
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    59
        // not necessary, but we just look nicer
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    60
        try {
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    61
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    62
        } catch (Exception ex) {}
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    63
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    64
        initComponents();
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    65
        checkEffects();
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    66
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    67
        SwingUtilities.updateComponentTreeUI(this);
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    68
    }
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    69
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    70
    /** This method is called from within the constructor to
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    71
     * initialize the form.
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    72
     * WARNING: Do NOT modify this code. The content of this method is
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    73
     * always regenerated by the Form Editor.
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    74
     */
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    75
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    76
    private void initComponents() {
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    77
        createDisposeGrp = new javax.swing.ButtonGroup();
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    78
        jLabel1 = new javax.swing.JLabel();
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    79
        transparencySld = new javax.swing.JSlider();
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    80
        shapedCb = new javax.swing.JCheckBox();
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    81
        nonOpaqueChb = new javax.swing.JCheckBox();
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    82
        jScrollPane1 = new javax.swing.JScrollPane();
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    83
        jTextArea1 = new javax.swing.JTextArea();
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    84
        jLabel2 = new javax.swing.JLabel();
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    85
        passedBtn = new javax.swing.JButton();
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    86
        failedBtn = new javax.swing.JButton();
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    87
        createFrameBtn = new javax.swing.JToggleButton();
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    88
        disposeFrameBtn = new javax.swing.JToggleButton();
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    89
        useSwingCb = new javax.swing.JCheckBox();
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    90
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    91
        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    92
        setTitle("TranslucentShapedFrameTest");
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    93
        jLabel1.setText("Frame Opacity:");
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    94
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    95
        transparencySld.setMajorTickSpacing(10);
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    96
        transparencySld.setMinorTickSpacing(5);
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    97
        transparencySld.setPaintLabels(true);
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    98
        transparencySld.setPaintTicks(true);
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
    99
        transparencySld.setValue(100);
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   100
        transparencySld.addChangeListener(new javax.swing.event.ChangeListener() {
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   101
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   102
                transparencySldStateChanged(evt);
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   103
            }
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   104
        });
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   105
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   106
        shapedCb.setText("Shaped Frame");
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   107
        shapedCb.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   108
        shapedCb.setMargin(new java.awt.Insets(0, 0, 0, 0));
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   109
        shapedCb.addActionListener(new java.awt.event.ActionListener() {
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   110
            public void actionPerformed(java.awt.event.ActionEvent evt) {
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   111
                shapedCbActionPerformed(evt);
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   112
            }
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   113
        });
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   114
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   115
        nonOpaqueChb.setText("Non Opaque Frame");
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   116
        nonOpaqueChb.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   117
        nonOpaqueChb.setMargin(new java.awt.Insets(0, 0, 0, 0));
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   118
        nonOpaqueChb.addActionListener(new java.awt.event.ActionListener() {
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   119
            public void actionPerformed(java.awt.event.ActionEvent evt) {
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   120
                nonOpaqueChbActionPerformed(evt);
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   121
            }
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   122
        });
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   123
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   124
        jTextArea1.setColumns(20);
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   125
        jTextArea1.setRows(5);
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   126
        jTextArea1.setText("Create translucent and/or shaped, or\nnon-opaque frame. Make sure it behaves\ncorrectly (no artifacts left on the screen\nwhen dragging - if dragging is possible).\nClick \"Passed\" if the test behaves correctly,\n\"Falied\" otherwise.");
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   127
        jScrollPane1.setViewportView(jTextArea1);
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   128
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   129
        jLabel2.setText("Instructions:");
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   130
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   131
        passedBtn.setBackground(new Color(129, 255, 100));
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   132
        passedBtn.setText("Passed");
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   133
        passedBtn.addActionListener(new java.awt.event.ActionListener() {
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   134
            public void actionPerformed(java.awt.event.ActionEvent evt) {
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   135
                passedBtnActionPerformed(evt);
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   136
            }
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   137
        });
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   138
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   139
        failedBtn.setBackground(Color.red);
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   140
        failedBtn.setText("Failed");
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   141
        failedBtn.addActionListener(new java.awt.event.ActionListener() {
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   142
            public void actionPerformed(java.awt.event.ActionEvent evt) {
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   143
                failedBtnActionPerformed(evt);
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   144
            }
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   145
        });
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   146
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   147
        createDisposeGrp.add(createFrameBtn);
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   148
        createFrameBtn.setText("Create Frame");
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   149
        createFrameBtn.addActionListener(new java.awt.event.ActionListener() {
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   150
            public void actionPerformed(java.awt.event.ActionEvent evt) {
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   151
                createFrameBtnActionPerformed(evt);
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   152
            }
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   153
        });
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   154
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   155
        createDisposeGrp.add(disposeFrameBtn);
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   156
        disposeFrameBtn.setSelected(true);
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   157
        disposeFrameBtn.setText("Dispose Frame");
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   158
        disposeFrameBtn.addActionListener(new java.awt.event.ActionListener() {
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   159
            public void actionPerformed(java.awt.event.ActionEvent evt) {
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   160
                disposeFrameBtnActionPerformed(evt);
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   161
            }
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   162
        });
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   163
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   164
        useSwingCb.setText("Use JFrame");
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   165
        useSwingCb.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   166
        useSwingCb.setMargin(new java.awt.Insets(0, 0, 0, 0));
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   167
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   168
        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   169
        getContentPane().setLayout(layout);
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   170
        layout.setHorizontalGroup(
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   171
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   172
            .addGroup(layout.createSequentialGroup()
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   173
                .addContainerGap()
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   174
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   175
                    .addGroup(layout.createSequentialGroup()
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   176
                        .addComponent(transparencySld, javax.swing.GroupLayout.DEFAULT_SIZE, 375, Short.MAX_VALUE)
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   177
                        .addContainerGap())
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   178
                    .addComponent(jLabel1)
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   179
                    .addGroup(layout.createSequentialGroup()
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   180
                        .addComponent(shapedCb)
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   181
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   182
                        .addComponent(nonOpaqueChb)
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   183
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   184
                        .addComponent(useSwingCb)
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   185
                        .addContainerGap(102, Short.MAX_VALUE))
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   186
                    .addGroup(layout.createSequentialGroup()
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   187
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   188
                            .addGroup(layout.createSequentialGroup()
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   189
                                .addComponent(jLabel2)
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   190
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 314, javax.swing.GroupLayout.PREFERRED_SIZE))
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   191
                            .addGroup(layout.createSequentialGroup()
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   192
                                .addComponent(passedBtn)
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   193
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   194
                                .addComponent(failedBtn)
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   195
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 241, javax.swing.GroupLayout.PREFERRED_SIZE))
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   196
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 375, Short.MAX_VALUE)
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   197
                            .addGroup(layout.createSequentialGroup()
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   198
                                .addComponent(createFrameBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 187, javax.swing.GroupLayout.PREFERRED_SIZE)
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   199
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   200
                                .addComponent(disposeFrameBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 182, javax.swing.GroupLayout.PREFERRED_SIZE)))
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   201
                        .addContainerGap())))
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   202
        );
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   203
        layout.setVerticalGroup(
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   204
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   205
            .addGroup(layout.createSequentialGroup()
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   206
                .addContainerGap()
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   207
                .addComponent(jLabel1)
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   208
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   209
                .addComponent(transparencySld, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   210
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   211
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   212
                    .addComponent(shapedCb)
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   213
                    .addComponent(nonOpaqueChb)
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   214
                    .addComponent(useSwingCb))
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   215
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   216
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   217
                    .addComponent(disposeFrameBtn)
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   218
                    .addComponent(createFrameBtn))
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   219
                .addGap(17, 17, 17)
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   220
                .addComponent(jLabel2)
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   221
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   222
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE)
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   223
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   224
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   225
                    .addComponent(passedBtn)
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   226
                    .addComponent(failedBtn))
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   227
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   228
        );
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   229
        pack();
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   230
    }// </editor-fold>//GEN-END:initComponents
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   231
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   232
    private void nonOpaqueChbActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_nonOpaqueChbActionPerformed
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   233
        if (testFrame != null) {
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   234
            // REMIND: this path in the test doesn't work well (test bug)
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   235
            testFrame.setBackground(new Color(0, 0, 0, nonOpaqueChb.isSelected() ? 0 : 255));
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   236
        }
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   237
    }//GEN-LAST:event_nonOpaqueChbActionPerformed
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   238
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   239
    private void shapedCbActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_shapedCbActionPerformed
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   240
        if (testFrame != null) {
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   241
            Shape s = null;
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   242
            if (shapedCb.isSelected()) {
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   243
                s = new Ellipse2D.Double(0, 0,
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   244
                                         testFrame.getWidth(),
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   245
                                         testFrame.getHeight());
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   246
            }
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   247
            testFrame.setShape(s);
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   248
        }
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   249
    }//GEN-LAST:event_shapedCbActionPerformed
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   250
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   251
    private void transparencySldStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_transparencySldStateChanged
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   252
        JSlider source = (JSlider)evt.getSource();
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   253
            int transl = transparencySld.getValue();
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   254
            if (testFrame != null) {
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   255
                testFrame.setOpacity((float)transl/100f);
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   256
            }
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   257
    }//GEN-LAST:event_transparencySldStateChanged
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   258
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   259
    private void failedBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_failedBtnActionPerformed
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   260
        disposeFrameBtnActionPerformed(evt);
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   261
        dispose();
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   262
        failed = true;
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   263
        done.countDown();
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   264
    }//GEN-LAST:event_failedBtnActionPerformed
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   265
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   266
    private void disposeFrameBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_disposeFrameBtnActionPerformed
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   267
        TSFrame.stopThreads();
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   268
        if (testFrame != null) {
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   269
            testFrame.dispose();
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   270
            testFrame = null;
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   271
        }
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   272
    }//GEN-LAST:event_disposeFrameBtnActionPerformed
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   273
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   274
    private void createFrameBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_createFrameBtnActionPerformed
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   275
        disposeFrameBtnActionPerformed(evt);
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   276
        int transl = transparencySld.getValue();
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   277
        testFrame = TSFrame.createGui(
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   278
                useSwingCb.isSelected(), shapedCb.isSelected(),
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   279
                (transl < 100), nonOpaqueChb.isSelected(),
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   280
                (float)transl/100f);
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   281
    }//GEN-LAST:event_createFrameBtnActionPerformed
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   282
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   283
    private void passedBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_passedBtnActionPerformed
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   284
        disposeFrameBtnActionPerformed(evt);
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   285
        dispose();
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   286
        done.countDown();
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   287
    }//GEN-LAST:event_passedBtnActionPerformed
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   288
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   289
    /**
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   290
     * @param args the command line arguments
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   291
     */
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   292
    public static void main(String args[]) {
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   293
        done = new CountDownLatch(1);
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   294
        java.awt.EventQueue.invokeLater(new Runnable() {
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   295
            public void run() {
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   296
                new TranslucentShapedFrameTest().setVisible(true);
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   297
            }
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   298
        });
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   299
        try {
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   300
            done.await();
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   301
        } catch (InterruptedException ex) {}
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   302
        if (failed) {
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   303
            throw new RuntimeException("Test FAILED");
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   304
        }
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   305
        System.out.println("Test PASSED");
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   306
    }
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   307
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   308
    private void checkEffects() {
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   309
        GraphicsDevice gd = getGraphicsConfiguration().getDevice();
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   310
        if (!gd.isWindowTranslucencySupported(WindowTranslucency.PERPIXEL_TRANSPARENT)) {
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   311
            shapedCb.setEnabled(false);
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   312
        }
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   313
        if (!gd.isWindowTranslucencySupported(WindowTranslucency.TRANSLUCENT)) {
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   314
            transparencySld.setEnabled(false);
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   315
        }
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   316
        if (!gd.isWindowTranslucencySupported(WindowTranslucency.PERPIXEL_TRANSLUCENT)) {
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   317
            nonOpaqueChb.setEnabled(false);
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   318
        }
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   319
    }
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   320
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   321
    // Variables declaration - do not modify//GEN-BEGIN:variables
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   322
    private javax.swing.ButtonGroup createDisposeGrp;
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   323
    private javax.swing.JToggleButton createFrameBtn;
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   324
    private javax.swing.JToggleButton disposeFrameBtn;
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   325
    private javax.swing.JButton failedBtn;
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   326
    private javax.swing.JLabel jLabel1;
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   327
    private javax.swing.JLabel jLabel2;
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   328
    private javax.swing.JScrollPane jScrollPane1;
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   329
    private javax.swing.JTextArea jTextArea1;
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   330
    private javax.swing.JCheckBox nonOpaqueChb;
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   331
    private javax.swing.JButton passedBtn;
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   332
    private javax.swing.JCheckBox shapedCb;
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   333
    private javax.swing.JSlider transparencySld;
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   334
    private javax.swing.JCheckBox useSwingCb;
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   335
    // End of variables declaration//GEN-END:variables
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   336
aa45a227fce3 6802853: API: shaped & translucent windows
anthony
parents:
diff changeset
   337
}