Create the frame.
()
| 116 | * Create the frame. |
| 117 | */ |
| 118 | public CGUI() { |
| 119 | |
| 120 | setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); |
| 121 | setBounds(100, 100, 939, 694); |
| 122 | JPanel contentPane = new JPanel(); |
| 123 | contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); |
| 124 | contentPane.setLayout(new BorderLayout(0, 0)); |
| 125 | setContentPane(contentPane); |
| 126 | |
| 127 | JPanel enableConfigPanel = new JPanel(); |
| 128 | enableConfigPanel.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null)); |
| 129 | FlowLayout flowLayout = (FlowLayout) enableConfigPanel.getLayout(); |
| 130 | flowLayout.setAlignment(FlowLayout.LEFT); |
| 131 | contentPane.add(enableConfigPanel, BorderLayout.NORTH); |
| 132 | |
| 133 | |
| 134 | JPanel panel_3 = new JPanel(); |
| 135 | panel_3.setBorder(null); |
| 136 | enableConfigPanel.add(panel_3); |
| 137 | panel_3.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5)); |
| 138 | |
| 139 | JLabel enableFor = new JLabel("Enable For :"); |
| 140 | panel_3.add(enableFor); |
| 141 | |
| 142 | chckbxProxy = new JCheckBox("Proxy"); |
| 143 | panel_3.add(chckbxProxy); |
| 144 | |
| 145 | chckbxScanner = new JCheckBox("Scanner"); |
| 146 | panel_3.add(chckbxScanner); |
| 147 | |
| 148 | chckbxIntruder = new JCheckBox("Intruder"); |
| 149 | panel_3.add(chckbxIntruder); |
| 150 | |
| 151 | chckbxRepeater = new JCheckBox("Repeater"); |
| 152 | chckbxRepeater.setSelected(true); |
| 153 | panel_3.add(chckbxRepeater); |
| 154 | |
| 155 | JPanel panel_1 = new JPanel(); |
| 156 | panel_1.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null)); |
| 157 | contentPane.add(panel_1, BorderLayout.SOUTH); |
| 158 | panel_1.setLayout(new FlowLayout(FlowLayout.LEFT, 5, 5)); |
| 159 | |
| 160 | JLabel lblNewLabel = new JLabel(extenderName+" https://github.com/bit4woo"); |
| 161 | lblNewLabel.addMouseListener(new MouseAdapter() { |
| 162 | @Override |
| 163 | public void mouseClicked(MouseEvent e) { |
| 164 | try { |
| 165 | URI uri = new URI("https://github.com/bit4woo"); |
| 166 | Desktop desktop = Desktop.getDesktop(); |
| 167 | if(Desktop.isDesktopSupported()&&desktop.isSupported(Desktop.Action.BROWSE)){ |
| 168 | desktop.browse(uri); |
| 169 | } |
| 170 | } catch (Exception e2) { |
| 171 | // TODO: handle exception |
| 172 | } |
| 173 | |
| 174 | } |
| 175 | @Override |