components/visual-panels/core/src/java/vpanels/app/browser/com/oracle/solaris/vp/panels/browser/client/swing/PanelDialog.java
changeset 3553 f1d133b09a8c
parent 3552 077ebe3d0d24
child 3554 ef58713bafc4
equal deleted inserted replaced
3552:077ebe3d0d24 3553:f1d133b09a8c
     1 /*
       
     2  * CDDL HEADER START
       
     3  *
       
     4  * The contents of this file are subject to the terms of the
       
     5  * Common Development and Distribution License (the "License").
       
     6  * You may not use this file except in compliance with the License.
       
     7  *
       
     8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
       
     9  * or http://www.opensolaris.org/os/licensing.
       
    10  * See the License for the specific language governing permissions
       
    11  * and limitations under the License.
       
    12  *
       
    13  * When distributing Covered Code, include this CDDL HEADER in each
       
    14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
       
    15  * If applicable, add the following below this CDDL HEADER, with the
       
    16  * fields enclosed by brackets "[]" replaced with your own identifying
       
    17  * information: Portions Copyright [yyyy] [name of copyright owner]
       
    18  *
       
    19  * CDDL HEADER END
       
    20  */
       
    21 
       
    22 /*
       
    23  * Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved.
       
    24  */
       
    25 
       
    26 package com.oracle.solaris.vp.panels.browser.client.swing;
       
    27 
       
    28 public class PanelDialog extends javax.swing.JPanel {
       
    29 
       
    30     /** Creates new form PanelDialog */
       
    31     public PanelDialog() {
       
    32 	setOpaque(false);
       
    33         initComponents();
       
    34     }
       
    35 
       
    36     /** This method is called from within the constructor to
       
    37      * initialize the form.
       
    38      * WARNING: Do NOT modify this code. The content of this method is
       
    39      * always regenerated by the Form Editor.
       
    40      */
       
    41         // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
       
    42         private void initComponents() {
       
    43 
       
    44                 nameLabel = new javax.swing.JLabel();
       
    45                 resourcesLabel = new javax.swing.JLabel();
       
    46                 classLabel = new javax.swing.JLabel();
       
    47                 resourcesScroll = new javax.swing.JScrollPane();
       
    48                 resourcesValue = new javax.swing.JList();
       
    49                 classValue = new javax.swing.JTextField();
       
    50                 nameValue = new javax.swing.JLabel();
       
    51 
       
    52                 nameLabel.setText(com.oracle.solaris.vp.util.misc.finder.Finder.getString("browser.panel.label.name"));
       
    53 
       
    54                 resourcesLabel.setText(com.oracle.solaris.vp.util.misc.finder.Finder.getString("browser.panel.label.resources"));
       
    55 
       
    56                 classLabel.setText(com.oracle.solaris.vp.util.misc.finder.Finder.getString("browser.panel.label.class"));
       
    57 
       
    58                 resourcesScroll.setViewportView(resourcesValue);
       
    59 
       
    60                 classValue.setEditable(false);
       
    61                 classValue.setText("jTextField1");
       
    62                 classValue.addActionListener(new java.awt.event.ActionListener() {
       
    63                         public void actionPerformed(java.awt.event.ActionEvent evt) {
       
    64                                 classValueActionPerformed(evt);
       
    65                         }
       
    66                 });
       
    67 
       
    68                 nameValue.setText("jLabel1");
       
    69 
       
    70                 javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
       
    71                 this.setLayout(layout);
       
    72                 layout.setHorizontalGroup(
       
    73                         layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
       
    74                         .addGroup(layout.createSequentialGroup()
       
    75                                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
       
    76                                         .addComponent(nameLabel)
       
    77                                         .addComponent(classLabel)
       
    78                                         .addComponent(resourcesLabel))
       
    79                                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
       
    80                                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
       
    81                                         .addComponent(classValue, javax.swing.GroupLayout.DEFAULT_SIZE, 298, Short.MAX_VALUE)
       
    82                                         .addGroup(layout.createSequentialGroup()
       
    83                                                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
       
    84                                                         .addComponent(nameValue))
       
    85                                                 .addContainerGap(253, Short.MAX_VALUE))
       
    86                                         .addComponent(resourcesScroll, javax.swing.GroupLayout.DEFAULT_SIZE, 298, Short.MAX_VALUE)))
       
    87                 );
       
    88                 layout.setVerticalGroup(
       
    89                         layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
       
    90                         .addGroup(layout.createSequentialGroup()
       
    91                                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
       
    92                                         .addComponent(nameValue)
       
    93                                         .addComponent(nameLabel))
       
    94                                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
       
    95                                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE))
       
    96                                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
       
    97                                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
       
    98                                         .addComponent(classValue, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
       
    99                                         .addComponent(classLabel))
       
   100                                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
       
   101                                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
       
   102                                         .addComponent(resourcesScroll, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
       
   103                                         .addComponent(resourcesLabel)))
       
   104                 );
       
   105         }// </editor-fold>//GEN-END:initComponents
       
   106 
       
   107     private void classValueActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_classValueActionPerformed
       
   108 	// TODO add your handling code here:
       
   109     }//GEN-LAST:event_classValueActionPerformed
       
   110 
       
   111 
       
   112         // Variables declaration - do not modify//GEN-BEGIN:variables
       
   113         private javax.swing.JLabel classLabel;
       
   114         javax.swing.JTextField classValue;
       
   115         private javax.swing.JLabel nameLabel;
       
   116         javax.swing.JLabel nameValue;
       
   117         private javax.swing.JLabel resourcesLabel;
       
   118         private javax.swing.JScrollPane resourcesScroll;
       
   119         javax.swing.JList resourcesValue;
       
   120         // End of variables declaration//GEN-END:variables
       
   121 
       
   122 }