/** * This method is called from within the constructor to initialize the form. WARNING: Do NOT * modify this code. The content of this method is always regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jToolBar1 = new javax.swing.JToolBar(); jLabel1 = new javax.swing.JLabel(); jTextField1 = new javax.swing.JTextField(); jButton1 = new javax.swing.JButton(); jScrollPane1 = new javax.swing.JScrollPane(); jTable1 = new javax.swing.JTable(); setLayout(new java.awt.BorderLayout()); jToolBar1.setRollover(true); jLabel1.setText(resources.getString("directory")); jToolBar1.add(jLabel1); jToolBar1.add(jTextField1); jButton1.setText(resources.getString("open")); jButton1.setFocusable(false); jButton1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jButton1.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); jToolBar1.add(jButton1); add(jToolBar1, java.awt.BorderLayout.PAGE_START); jTable1.setModel( new javax.swing.table.DefaultTableModel( new Object[][] {}, new String[] {"名称", "大小", "类型", "修改日期", "创建日期"}) { Class[] types = new Class[] { java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class }; public Class getColumnClass(int columnIndex) { return types[columnIndex]; } }); jScrollPane1.setViewportView(jTable1); add(jScrollPane1, java.awt.BorderLayout.CENTER); } // </editor-fold>//GEN-END:initComponents
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jScrollPane1 = new javax.swing.JScrollPane(); managerTree = new javax.swing.JTree(); jPanel1 = new javax.swing.JPanel(); setLayout(new java.awt.BorderLayout()); managerTree.setBorder( javax.swing.BorderFactory.createTitledBorder(r.getString("tile.manager.view.tree.tiles"))); managerTree.setModel(new DefaultTreeModel(getRoot())); managerTree.setCellRenderer(new ResourcesTreeCellRenderer()); managerTree.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR)); managerTree.setEditable(true); managerTree.setRootVisible(false); managerTree.setShowsRootHandles(true); jScrollPane1.setViewportView(managerTree); add(jScrollPane1, java.awt.BorderLayout.CENTER); add(jPanel1, java.awt.BorderLayout.PAGE_END); } // </editor-fold>//GEN-END:initComponents
public CheckUpdateAction(Application app) { super(app); AppResources resource = AppResources.getResources("org.jtools.app.Labels"); resource.configAction(this, ID); }