Advertisement
Guest User

Untitled

a guest
May 27th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. private JPanel setupRadio() {
  2. radioButtonPanel = new JPanel();
  3. radioButtonPanel.setLayout(new BoxLayout(radioButtonPanel, BoxLayout.PAGE_AXIS));
  4. radioButtonPanel.setPreferredSize(new Dimension(200,100));
  5. radioButtonPanel.setVisible(true);
  6.  
  7. radioButtonSource = new JRadioButton("Source Hosts", true);
  8. radioButtonSource.setFont(font);
  9. radioButtonDestination = new JRadioButton("Destination Hosts",false);
  10. radioButtonDestination.setFont(font);
  11. radioButtons = new ButtonGroup();
  12. radioButtons.add(radioButtonSource);
  13. radioButtons.add(radioButtonDestination);
  14. radioButtonPanel.add(radioButtonSource);
  15. radioButtonPanel.add(radioButtonDestination);
  16. return radioButtonPanel;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement