List of usage examples for javax.swing.tree DefaultMutableTreeNode DefaultMutableTreeNode
public DefaultMutableTreeNode(Object userObject)
From source file:org.jfree.chart.demo.SuperDemo.java
private MutableTreeNode createFinancialChartsNode() { DefaultMutableTreeNode defaultmutabletreenode = new DefaultMutableTreeNode("Financial Charts"); DefaultMutableTreeNode defaultmutabletreenode1 = new DefaultMutableTreeNode( new DemoDescription("CandlestickChartDemo1", "CandlestickChartDemo1.java")); DefaultMutableTreeNode defaultmutabletreenode2 = new DefaultMutableTreeNode( new DemoDescription("HighLowChartDemo1", "HighLowChartDemo1.java")); DefaultMutableTreeNode defaultmutabletreenode3 = new DefaultMutableTreeNode( new DemoDescription("HighLowChartDemo2", "HighLowChartDemo2.java")); DefaultMutableTreeNode defaultmutabletreenode4 = new DefaultMutableTreeNode( new DemoDescription("PriceVolumeDemo1", "PriceVolumeDemo1.java")); DefaultMutableTreeNode defaultmutabletreenode5 = new DefaultMutableTreeNode( new DemoDescription("YieldCurveDemo", "YieldCurveDemo.java")); defaultmutabletreenode.add(defaultmutabletreenode1); defaultmutabletreenode.add(defaultmutabletreenode2); defaultmutabletreenode.add(defaultmutabletreenode3); defaultmutabletreenode.add(defaultmutabletreenode4); defaultmutabletreenode.add(defaultmutabletreenode5); return defaultmutabletreenode; }
From source file:org.jfree.chart.demo.SuperDemo.java
private MutableTreeNode createXYChartsNode() { DefaultMutableTreeNode defaultmutabletreenode = new DefaultMutableTreeNode("XY Charts"); DefaultMutableTreeNode defaultmutabletreenode1 = new DefaultMutableTreeNode( new DemoDescription("ScatterPlotDemo1", "ScatterPlotDemo1.java")); DefaultMutableTreeNode defaultmutabletreenode2 = new DefaultMutableTreeNode( new DemoDescription("ScatterPlotDemo2", "ScatterPlotDemo2.java")); DefaultMutableTreeNode defaultmutabletreenode3 = new DefaultMutableTreeNode( new DemoDescription("ScatterPlotDemo3", "ScatterPlotDemo3.java")); DefaultMutableTreeNode defaultmutabletreenode4 = new DefaultMutableTreeNode( new DemoDescription("XYBlockChartDemo1", "XYBlockChartDemo1.java")); DefaultMutableTreeNode defaultmutabletreenode5 = new DefaultMutableTreeNode( new DemoDescription("XYBlockChartDemo2", "XYBlockChartDemo2.java")); DefaultMutableTreeNode defaultmutabletreenode6 = new DefaultMutableTreeNode( new DemoDescription("XYBlockChartDemo3", "XYBlockChartDemo3.java")); DefaultMutableTreeNode defaultmutabletreenode7 = new DefaultMutableTreeNode( new DemoDescription("XYLineAndShapeRendererDemo1", "XYLineAndShapeRendererDemo1.java")); DefaultMutableTreeNode defaultmutabletreenode8 = new DefaultMutableTreeNode( new DemoDescription("XYSeriesDemo1", "XYSeriesDemo1.java")); DefaultMutableTreeNode defaultmutabletreenode9 = new DefaultMutableTreeNode( new DemoDescription("XYSeriesDemo2", "XYSeriesDemo2.java")); DefaultMutableTreeNode defaultmutabletreenode10 = new DefaultMutableTreeNode( new DemoDescription("XYSeriesDemo3", "XYSeriesDemo3.java")); DefaultMutableTreeNode defaultmutabletreenode11 = new DefaultMutableTreeNode( new DemoDescription("experimental.VectorPlotDemo1", "VectorPlotDemo1.java")); DefaultMutableTreeNode defaultmutabletreenode12 = new DefaultMutableTreeNode( new DemoDescription("WindChartDemo1", "WindChartDemo1.java")); defaultmutabletreenode.add(defaultmutabletreenode1); defaultmutabletreenode.add(defaultmutabletreenode2); defaultmutabletreenode.add(defaultmutabletreenode3); defaultmutabletreenode.add(defaultmutabletreenode4); defaultmutabletreenode.add(defaultmutabletreenode5); defaultmutabletreenode.add(defaultmutabletreenode6); defaultmutabletreenode.add(defaultmutabletreenode7); defaultmutabletreenode.add(defaultmutabletreenode8); defaultmutabletreenode.add(defaultmutabletreenode9); defaultmutabletreenode.add(defaultmutabletreenode10); defaultmutabletreenode.add(defaultmutabletreenode11); defaultmutabletreenode.add(defaultmutabletreenode12); return defaultmutabletreenode; }
From source file:gov.nih.nci.ncicb.cadsr.contexttree.service.impl.CDEBrowserTreeServiceImpl.java
/** * This method iterate all the classifications of a form and add * the corresponding branch of the cs tree to the root node * * @param currForm the Form that needs to be attached to the root node * @param currCSMap a Map to find a tree node given a cscsi id, this tree * node is used as a master copy for each protocol to create its own * cs tree//w w w. j a v a 2 s. c o m * @param treeNodeMap a Map used to avoid copy the orginal node more than one * time. For each given Webnode id, this Map returns the corresponding * copy of that node that exist in the copy * @param newNode the form node to be added to the cs tree * @param rootNode the tree node for the branch to attach to * @param idGen the id genator used to get unique id when copy a node from * original tree */ private void copyCSTree(Form currForm, Map currCSMap, Map treeNodeMap, DefaultMutableTreeNode newNode, DefaultMutableTreeNode rootNode, TreeIdGenerator idGen) { //if the cs map does not exist for any reason, simplely add the new to the root if (currCSMap == null) rootNode.add(newNode); else { Iterator csIter = currForm.getClassifications().iterator(); while (csIter.hasNext()) { String cscsiId = ((ClassSchemeItem) csIter.next()).getCsCsiIdseq(); DefaultMutableTreeNode origTreeNode = (DefaultMutableTreeNode) currCSMap.get(cscsiId); WebNode origWebNode = (WebNode) origTreeNode.getUserObject(); DefaultMutableTreeNode treeNodeCopy = (DefaultMutableTreeNode) treeNodeMap.get(origWebNode.getId()); if (treeNodeCopy == null) { treeNodeCopy = new DefaultMutableTreeNode(origWebNode.copy(idGen.getNewId())); treeNodeMap.put(origWebNode.getId(), treeNodeCopy); } treeNodeCopy.add(newNode); DefaultMutableTreeNode pTreeNode = origTreeNode; DefaultMutableTreeNode cTreeNode = treeNodeCopy; //copy this branch of the cs tree all the way until one parent node is //found in the new tree while (pTreeNode.getParent() != null) { DefaultMutableTreeNode parentTreeNode = (DefaultMutableTreeNode) pTreeNode.getParent(); WebNode pWebNode = (WebNode) parentTreeNode.getUserObject(); DefaultMutableTreeNode pNodeCopy = (DefaultMutableTreeNode) treeNodeMap.get(pWebNode.getId()); if (pNodeCopy == null) { pNodeCopy = new DefaultMutableTreeNode(pWebNode.copy(idGen.getNewId())); treeNodeMap.put(pWebNode.getId(), pNodeCopy); pNodeCopy.add(cTreeNode); pTreeNode = parentTreeNode; cTreeNode = pNodeCopy; } else { // when one parent node is found in the new tree, attach the copy pNodeCopy.add(cTreeNode); return; } } rootNode.add(cTreeNode); } } }
From source file:com.pironet.tda.SunJDKParser.java
private int fillBlockingThreadMaps(final MonitorMap mmap, final Map<String, DefaultMutableTreeNode> directChildMap) { int blockedThread = 0; for (Iterator iter = mmap.iterOfKeys(); iter.hasNext();) { String monitor = (String) iter.next(); Map<String, String>[] threads = mmap.getFromMonitorMap(monitor); // Only one thread can really be holding this monitor, so find the thread String threadLine = getLockingThread(threads); ThreadInfo tmi = new ThreadInfo("Thread - " + threadLine, null, "", 0, null); DefaultMutableTreeNode threadNode = new DefaultMutableTreeNode(tmi); ThreadInfo mmi = new ThreadInfo("Monitor - " + monitor, null, "", 0, null); DefaultMutableTreeNode monitorNode = new DefaultMutableTreeNode(mmi); threadNode.add(monitorNode);//from ww w . j ava 2 s. c om // Look over all threads blocked on this monitor for (final Object o : threads[MonitorMap.WAIT_THREAD_POS].keySet()) { String thread = (String) o; // Skip the thread that has this monitor locked if (!threads[MonitorMap.LOCK_THREAD_POS].containsKey(thread)) { blockedThread++; createNode(monitorNode, "Thread - " + thread, null, threads[MonitorMap.WAIT_THREAD_POS].get(thread), 0); } } final String blockingStackFrame = threads[MonitorMap.LOCK_THREAD_POS].get(threadLine); tmi.setContent(blockingStackFrame); mmi.setContent("This monitor (" + linkifyMonitor(monitor) + ") is held in the following stack frame:\n\n" + blockingStackFrame); // If no-one is blocked on or waiting for this monitor, don't show it if (monitorNode.getChildCount() > 0) { directChildMap.put(monitor, threadNode); } } return blockedThread; }
From source file:org.jfree.chart.demo.SuperDemo.java
private MutableTreeNode createMeterChartsNode() { DefaultMutableTreeNode defaultmutabletreenode = new DefaultMutableTreeNode("Meter Charts"); DefaultMutableTreeNode defaultmutabletreenode1 = new DefaultMutableTreeNode( new DemoDescription("MeterChartDemo1", "MeterChartDemo1.java")); DefaultMutableTreeNode defaultmutabletreenode2 = new DefaultMutableTreeNode( new DemoDescription("MeterChartDemo2", "MeterChartDemo2.java")); DefaultMutableTreeNode defaultmutabletreenode3 = new DefaultMutableTreeNode( new DemoDescription("MeterChartDemo3", "MeterChartDemo3.java")); DefaultMutableTreeNode defaultmutabletreenode4 = new DefaultMutableTreeNode( new DemoDescription("ThermometerDemo1", "ThermometerDemo1.java")); defaultmutabletreenode.add(defaultmutabletreenode1); defaultmutabletreenode.add(defaultmutabletreenode2); defaultmutabletreenode.add(defaultmutabletreenode3); defaultmutabletreenode.add(defaultmutabletreenode4); return defaultmutabletreenode; }
From source file:org.jfree.chart.demo.SuperDemo.java
private MutableTreeNode createMultipleAxisChartsNode() { DefaultMutableTreeNode defaultmutabletreenode = new DefaultMutableTreeNode("Multiple Axis Charts"); DefaultMutableTreeNode defaultmutabletreenode1 = new DefaultMutableTreeNode( new DemoDescription("DualAxisDemo1", "DualAxisDemo1.java")); DefaultMutableTreeNode defaultmutabletreenode2 = new DefaultMutableTreeNode( new DemoDescription("DualAxisDemo2", "DualAxisDemo2.java")); DefaultMutableTreeNode defaultmutabletreenode3 = new DefaultMutableTreeNode( new DemoDescription("DualAxisDemo3", "DualAxisDemo3.java")); DefaultMutableTreeNode defaultmutabletreenode4 = new DefaultMutableTreeNode( new DemoDescription("DualAxisDemo4", "DualAxisDemo4.java")); DefaultMutableTreeNode defaultmutabletreenode5 = new DefaultMutableTreeNode( new DemoDescription("DualAxisDemo5", "DualAxisDemo5.java")); DefaultMutableTreeNode defaultmutabletreenode6 = new DefaultMutableTreeNode( new DemoDescription("MultipleAxisDemo1", "MultipleAxisDemo1.java")); DefaultMutableTreeNode defaultmutabletreenode7 = new DefaultMutableTreeNode( new DemoDescription("MultipleAxisDemo2", "MultipleAxisDemo2.java")); DefaultMutableTreeNode defaultmutabletreenode8 = new DefaultMutableTreeNode( new DemoDescription("MultipleAxisDemo3", "MultipleAxisDemo3.java")); DefaultMutableTreeNode defaultmutabletreenode9 = new DefaultMutableTreeNode( new DemoDescription("ParetoChartDemo1", "ParetoChartDemo1.java")); defaultmutabletreenode.add(defaultmutabletreenode1); defaultmutabletreenode.add(defaultmutabletreenode2); defaultmutabletreenode.add(defaultmutabletreenode3); defaultmutabletreenode.add(defaultmutabletreenode4); defaultmutabletreenode.add(defaultmutabletreenode5); defaultmutabletreenode.add(defaultmutabletreenode6); defaultmutabletreenode.add(defaultmutabletreenode7); defaultmutabletreenode.add(defaultmutabletreenode8); defaultmutabletreenode.add(defaultmutabletreenode9); return defaultmutabletreenode; }
From source file:edu.ku.brc.af.tasks.subpane.formeditor.ViewSetSelectorPanel.java
/** * @param viewDefs/*from www . j a va 2s .c o m*/ */ protected void buildTreeModel(Vector<ViewDefIFace> viewDefs) { DefaultTreeModel model = (DefaultTreeModel) tree.getModel(); DefaultMutableTreeNode root = new DefaultMutableTreeNode("ViewDefs"); //$NON-NLS-1$ model.setRoot(root); for (ViewDefIFace vd : viewDefs) { DefaultMutableTreeNode vdNode = new DefaultMutableTreeNode(vd.getName()); vdNode.setUserObject(vd); if (vd instanceof FormViewDef) { root.add(vdNode); FormViewDef fvd = (FormViewDef) vd; for (FormRowIFace r : fvd.getRows()) { FormRow row = (FormRow) r; DefaultMutableTreeNode rowNode = new DefaultMutableTreeNode(row.getRowNumber()); rowNode.setUserObject(row); vdNode.add(rowNode); for (FormCellIFace c : row.getCells()) { FormCell cell = (FormCell) c; DefaultMutableTreeNode cellNode = new DefaultMutableTreeNode(cell.toString()); cellNode.setUserObject(cell); rowNode.add(cellNode); } } } } model.nodeStructureChanged(root); }
From source file:eu.crisis_economics.abm.dashboard.GASearchHandler.java
public void addSubmodelParameter(final SubmodelInfo sInfo, final DefaultMutableTreeNode node) throws ModelInformationException { if (sInfo.getActualType() == null) { if (node.getChildCount() > 0) { node.removeAllChildren();/* w w w . j a va 2s . c o m*/ chromosomeTree.nodeStructureChanged(node); } return; } final List<ai.aitia.meme.paramsweep.batch.param.ParameterInfo<?>> subparameters = ParameterTreeUtils .fetchSubparameters(currentModelHandler, sInfo); final List<ParameterInfo> convertedSubparameters = new ArrayList<ParameterInfo>(subparameters.size()); for (ai.aitia.meme.paramsweep.batch.param.ParameterInfo<?> parameterInfo : subparameters) { final ParameterInfo converted = InfoConverter.parameterInfo2ParameterInfo(parameterInfo); converted.setRuns(0); convertedSubparameters.add(converted); } Collections.sort(convertedSubparameters); if (node.getChildCount() > 0) { node.removeAllChildren(); chromosomeTree.nodeStructureChanged(node); } for (final ParameterInfo pInfo : convertedSubparameters) { final DefaultMutableTreeNode newNode = new DefaultMutableTreeNode(new ParameterOrGene(pInfo)); chromosomeTree.insertNodeInto(newNode, node, node.getChildCount()); if (pInfo instanceof SubmodelInfo) { final SubmodelInfo ssInfo = (SubmodelInfo) pInfo; if (ssInfo.getActualType() != null) addSubmodelParameter(ssInfo, newNode); } } }
From source file:edu.ku.brc.af.tasks.subpane.formeditor.ViewSetSelectorPanel.java
protected void buildTreeModel(final ViewDefIFace viewDef) { DefaultTreeModel model = (DefaultTreeModel) tree.getModel(); DefaultMutableTreeNode vdNode = new DefaultMutableTreeNode(viewDef.getName()); vdNode.setUserObject(viewDef);/* ww w .j av a 2 s. com*/ model.setRoot(vdNode); if (viewDef instanceof FormViewDef) { FormViewDef fvd = (FormViewDef) viewDef; for (FormRowIFace r : fvd.getRows()) { FormRow row = (FormRow) r; DefaultMutableTreeNode rowNode = new DefaultMutableTreeNode(row.getRowNumber()); rowNode.setUserObject(row); vdNode.add(rowNode); for (FormCellIFace c : row.getCells()) { FormCell cell = (FormCell) c; DefaultMutableTreeNode cellNode = new DefaultMutableTreeNode(cell.toString()); cellNode.setUserObject(cell); rowNode.add(cellNode); } } } model.nodeStructureChanged(vdNode); }
From source file:edu.harvard.i2b2.patientSet.ui.PatientSetJPanel.java
/** * This method is called from within the constructor to initialize the form. *///from www .j av a 2 s . c o m private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; System.setProperty("PQSortByTimeCheckBox", "true"); System.setProperty("PatientSetMaxQueryNumber", "20"); System.setProperty("PatientSetMaxPatientsNumber", "200"); System.setProperty("PQSortByNameCheckBox", "false"); jPanel1 = new javax.swing.JPanel(); jContainComboBox = new javax.swing.JComboBox(); jCategoryComboBox = new javax.swing.JComboBox(); jSearchStringTextField = new javax.swing.JTextField(); jFindButton = new javax.swing.JButton(); jScrollPane1 = new javax.swing.JScrollPane(); jTree1 = new javax.swing.JTree(); jPanel2 = new javax.swing.JPanel(); jStartTimeTextField = new javax.swing.JTextField(); jBackwardButton = new javax.swing.JButton(); jForwardButton = new javax.swing.JButton(); jLabel2 = new javax.swing.JLabel(); setLayout(new java.awt.BorderLayout(20, 10)); jPanel1.setLayout(new java.awt.GridBagLayout()); jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Search By Name")); jPanel1.setMinimumSize(new java.awt.Dimension(0, 50)); jPanel1.setPreferredSize(new java.awt.Dimension(400, 80)); jContainComboBox.setModel(new javax.swing.DefaultComboBoxModel( new String[] { "Containing", "Start With", "End With", "Exact" })); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.gridwidth = java.awt.GridBagConstraints.RELATIVE; gridBagConstraints.gridheight = 2; gridBagConstraints.ipadx = 32; gridBagConstraints.ipady = 2; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.weightx = 0.01; gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 2); jPanel1.add(jContainComboBox, gridBagConstraints); jCategoryComboBox.setModel( new javax.swing.DefaultComboBoxModel(new String[] { "Any Category", "Patient Set", "Patient" })); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 2; gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; gridBagConstraints.ipadx = 14; gridBagConstraints.ipady = 2; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.weightx = 0.6; gridBagConstraints.insets = new java.awt.Insets(4, 2, 0, 2); jPanel1.add(jCategoryComboBox, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 11; gridBagConstraints.ipady = 3; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.weightx = 0.9; gridBagConstraints.insets = new java.awt.Insets(0, 2, 0, 2); jPanel1.add(jSearchStringTextField, gridBagConstraints); jFindButton.setText("Find"); jFindButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jFindButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.gridwidth = java.awt.GridBagConstraints.RELATIVE; gridBagConstraints.gridheight = 2; gridBagConstraints.ipadx = 19; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.weightx = 0.01; gridBagConstraints.insets = new java.awt.Insets(4, 4, 2, 2); jPanel1.add(jFindButton, gridBagConstraints); add(jPanel1, java.awt.BorderLayout.NORTH); QueryResultData tmpData = new QueryResultData(); tmpData.name("Pateint Sets by " + UserInfoBean.getInstance().getUserName()); tmpData.tooltip("Patient Sets"); tmpData.visualAttribute("CA"); tmpData.type("PATIENTSET"); top = new DefaultMutableTreeNode(tmpData); // top = new DefaultMutableTreeNode("Root Node"); treeModel = new DefaultTreeModel(top); // treeModel.addTreeModelListener(new MyTreeModelListener()); jTree1 = new JTree(treeModel); jTree1.setEditable(false); // jTree1.getSelectionModel().setSelectionMode // (TreeSelectionModel.SINGLE_TREE_SELECTION); jTree1.setShowsRootHandles(true); // JScrollPane treeView = new JScrollPane(jTree1); jTree1.setRootVisible(false); jTree1.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION); jTree1.setCellRenderer(new MyRenderer()); ToolTipManager.sharedInstance().registerComponent(jTree1); if (cellStatus.equalsIgnoreCase("CellDown")) { DefaultMutableTreeNode childNode = new DefaultMutableTreeNode("Data Repository Cell is unavailable"); treeModel.insertNodeInto(childNode, top, top.getChildCount()); // Make sure the user can see the lovely new node. jTree1.expandPath(new TreePath(top.getPath())); } ArrayList<QueryResultData> queries = patientSets; if (queries != null) { for (int i = 0; i < queries.size(); i++) { addNode(patientSets.get(i)); } } jScrollPane1.setViewportView(jTree1); add(jScrollPane1, java.awt.BorderLayout.CENTER); jTree1.setTransferHandler(new NodeCopyTransferHandler()); jTree1.addTreeExpansionListener(this); jTree1.addTreeWillExpandListener(this); jPanel2.setLayout(new java.awt.GridBagLayout()); jPanel2.setMinimumSize(new java.awt.Dimension(92, 20)); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 0; gridBagConstraints.gridheight = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.ipadx = 244; gridBagConstraints.ipady = 2; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.weightx = 0.9; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 0); jPanel2.add(jStartTimeTextField, gridBagConstraints); jBackwardButton.setText("<"); jBackwardButton.setMaximumSize(new java.awt.Dimension(43, 22)); jBackwardButton.setMinimumSize(new java.awt.Dimension(43, 22)); jBackwardButton.setPreferredSize(new java.awt.Dimension(43, 22)); jBackwardButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jBackwardButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 0; gridBagConstraints.gridheight = 2; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.weightx = 0.01; gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 2); jPanel2.add(jBackwardButton, gridBagConstraints); jForwardButton.setText(">"); jForwardButton.setMaximumSize(new java.awt.Dimension(43, 22)); jForwardButton.setMinimumSize(new java.awt.Dimension(43, 22)); jForwardButton.setPreferredSize(new java.awt.Dimension(43, 22)); jForwardButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jForwardButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 0; gridBagConstraints.gridwidth = 3; gridBagConstraints.gridheight = 2; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.weightx = 0.01; gridBagConstraints.insets = new java.awt.Insets(0, 43, 0, 3); jPanel2.add(jForwardButton, gridBagConstraints); jLabel2.setText("Begin:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.gridheight = 2; gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST; gridBagConstraints.weightx = 0.01; gridBagConstraints.insets = new java.awt.Insets(3, 7, 0, 2); jPanel2.add(jLabel2, gridBagConstraints); add(jPanel2, java.awt.BorderLayout.SOUTH); }