Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class JGraphCard extends JPanel {
- private JPaintablePanel firstGraphPanel = new JPaintablePanel();
- private JPaintablePanel secondGraphPanel = new JPaintablePanel();
- public JGraphCard() {
- super(new CardLayout(0, 0));
- setBorder(BorderFactory.createLineBorder(Color.black));
- add(firstGraphPanel, "firstGraphPanel");
- add(secondGraphPanel, "secondGraphPanel");
- }
- public JPaintablePanel getPSO() {
- return psoGraphPanel;
- }
- public JPaintablePanel getFireFly() {
- return fireFlyGraphPanel;
- }
- public GridBagConstraints getGridBagConstraints() {
- GridBagConstraints gbc = new GridBagConstraints();
- gbc.gridwidth = 2;
- // gbc.gridheight = GridBagConstraints.REMAINDER;
- gbc.weightx = 3.0;
- gbc.weighty = 12.0;
- gbc.insets = new Insets(0, 0, 0, 5);
- gbc.fill = GridBagConstraints.BOTH;
- gbc.gridx = 0;
- gbc.gridy = 1;
- return gbc;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement