4 * Created on 18 de mayo de 2008, 22:57
6 package org
.casino
.gui
.comun
;
9 import javax
.swing
.JComponent
;
15 public class PanelSistema
extends javax
.swing
.JPanel
{
17 private List
<JComponent
> componentesOpcionales
;
19 public List
<JComponent
> getComponentesOpcionales() {
20 return componentesOpcionales
;
23 public void setComponentesOpcionales(List
<JComponent
> componentesOpcionales
) {
24 this.componentesOpcionales
= componentesOpcionales
;
25 panelComponentesOpcionales
.removeAll();
26 if (componentesOpcionales
!= null) {
27 for (JComponent comp
: componentesOpcionales
)
29 panelComponentesOpcionales
.add(comp
);
34 /** Creates new form PanelSistema */
35 public PanelSistema() {
39 /** This method is called from within the constructor to
40 * initialize the form.
41 * WARNING: Do NOT modify this code. The content of this method is
42 * always regenerated by the Form Editor.
44 @SuppressWarnings("unchecked")
45 // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
46 private void initComponents() {
48 botonTerminarSesion
= new javax
.swing
.JButton();
49 jScrollPane1
= new javax
.swing
.JScrollPane();
50 textoAyuda
= new javax
.swing
.JEditorPane();
51 panelComponentesOpcionales
= new javax
.swing
.JPanel();
53 botonTerminarSesion
.setText("Terminar sesiĆ³n");
55 jScrollPane1
.setViewportView(textoAyuda
);
57 panelComponentesOpcionales
.setLayout(new java
.awt
.GridLayout(0, 1));
59 javax
.swing
.GroupLayout layout
= new javax
.swing
.GroupLayout(this);
60 this.setLayout(layout
);
61 layout
.setHorizontalGroup(
62 layout
.createParallelGroup(javax
.swing
.GroupLayout
.Alignment
.LEADING
)
63 .addGroup(layout
.createSequentialGroup()
65 .addGroup(layout
.createParallelGroup(javax
.swing
.GroupLayout
.Alignment
.LEADING
)
66 .addComponent(botonTerminarSesion
, javax
.swing
.GroupLayout
.DEFAULT_SIZE
, javax
.swing
.GroupLayout
.DEFAULT_SIZE
, Short
.MAX_VALUE
)
67 .addGroup(javax
.swing
.GroupLayout
.Alignment
.TRAILING
, layout
.createSequentialGroup()
68 .addGroup(layout
.createParallelGroup(javax
.swing
.GroupLayout
.Alignment
.TRAILING
)
69 .addComponent(panelComponentesOpcionales
, javax
.swing
.GroupLayout
.Alignment
.LEADING
, javax
.swing
.GroupLayout
.DEFAULT_SIZE
, 139, Short
.MAX_VALUE
)
70 .addComponent(jScrollPane1
, javax
.swing
.GroupLayout
.DEFAULT_SIZE
, 139, Short
.MAX_VALUE
))
73 layout
.setVerticalGroup(
74 layout
.createParallelGroup(javax
.swing
.GroupLayout
.Alignment
.LEADING
)
75 .addGroup(javax
.swing
.GroupLayout
.Alignment
.TRAILING
, layout
.createSequentialGroup()
77 .addComponent(panelComponentesOpcionales
, javax
.swing
.GroupLayout
.PREFERRED_SIZE
, javax
.swing
.GroupLayout
.DEFAULT_SIZE
, javax
.swing
.GroupLayout
.PREFERRED_SIZE
)
78 .addPreferredGap(javax
.swing
.LayoutStyle
.ComponentPlacement
.RELATED
)
79 .addComponent(jScrollPane1
, javax
.swing
.GroupLayout
.DEFAULT_SIZE
, 372, Short
.MAX_VALUE
)
80 .addPreferredGap(javax
.swing
.LayoutStyle
.ComponentPlacement
.RELATED
)
81 .addComponent(botonTerminarSesion
)
84 }// </editor-fold>//GEN-END:initComponents
85 // Variables declaration - do not modify//GEN-BEGIN:variables
86 private javax
.swing
.JButton botonTerminarSesion
;
87 private javax
.swing
.JScrollPane jScrollPane1
;
88 private javax
.swing
.JPanel panelComponentesOpcionales
;
89 private javax
.swing
.JEditorPane textoAyuda
;
90 // End of variables declaration//GEN-END:variables