Advertisement
Advertisement
| 07.07.2008 at 11:26PM PDT, ID: 23545625 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: |
JPanel tab=new JPanel();
tab.setLayout(new BoxLayout(tab,BoxLayout.Y_AXIS));
//tab.add(Box.createVerticalStrut(5));
//tab.add(new JScrollPane(tree));
tab.add(Box.createRigidArea(new Dimension(0,20)));
JLabel label1=new JLabel("Brand Name");
tab.add(label1);
tab.add(Box.createRigidArea(new Dimension(10,0)));
tab.add(brandNameTF);
tab.add(Box.createRigidArea(new Dimension(0,20)));
JLabel label2=new JLabel("Generic Name");
tab.add(label2);
tab.add(Box.createRigidArea(new Dimension(10,0)));
tab.add(genericNameTF);
tab.add(Box.createRigidArea(new Dimension(0,20)));
JLabel label3=new JLabel("Dosage Form");
tab.add(label3);
tab.add(Box.createRigidArea(new Dimension(10,0)));
tab.add(dosageFormTF);
tab.add(Box.createVerticalStrut(5));
tabs.addTab("Product Specification",tab);
|