예제 #1
0
  // <editor-fold defaultstate="collapsed" desc="Generated Code">
  private void initComponents() {
    java.awt.GridBagConstraints gridBagConstraints;

    filler = new javax.swing.JPanel();

    setLayout(new java.awt.GridBagLayout());

    filler.setOpaque(false);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.weightx = 1.0;
    add(filler, gridBagConstraints);
  } // </editor-fold>
예제 #2
0
 public MappingsPanel(SectionView view, final HibernateCfgDataObject dObj) {
   super(view);
   initComponents();
   // Error Pages
   MappingsTableModel model =
       new MappingsTableModel(dObj.getHibernateConfiguration().getSessionFactory());
   MappingsTablePanel panel = new MappingsTablePanel(dObj, model);
   // panel.setModel(dObj.getWebApp(),dObj.getWebApp().getContextParam());
   java.awt.GridBagConstraints gridBagConstraints = new java.awt.GridBagConstraints();
   gridBagConstraints.gridx = 0;
   gridBagConstraints.gridy = 0;
   // gridBagConstraints.gridwidth = 4;
   gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
   gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
   gridBagConstraints.insets = new java.awt.Insets(5, 10, 0, 0);
   gridBagConstraints.weightx = 1.0;
   // gridBagConstraints.weighty = 5.0;
   add(panel, gridBagConstraints);
 }