comparison src/main/java/jp/ac/u_ryukyu/treevnc/ScreenChangeSelectionPanel.java @ 407:7cd416d6a152

Show port Error dialog to server change client
author Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
date Mon, 16 Nov 2015 19:05:19 +0900
parents 0eea469c6349
children
comparison
equal deleted inserted replaced
406:0eea469c6349 407:7cd416d6a152
47 panel.add(check[counter]); 47 panel.add(check[counter]);
48 panel.setLayout(new GridLayout(counter + 2, 0)); 48 panel.setLayout(new GridLayout(counter + 2, 0));
49 panel.setLocation((int) width - 250, (int) height - 80); 49 panel.setLocation((int) width - 250, (int) height - 80);
50 counter++; 50 counter++;
51 } 51 }
52
52 @Override 53 @Override
53 public void actionPerformed(ActionEvent e) { 54 public void actionPerformed(ActionEvent e) {
54 for (int i = 0; i < counter; i++) { 55 for (int i = 0; i < counter; i++) {
55 if (check[i].getState()) { 56 if (check[i].getState()) {
56 viewerWindow.screenChangeRequest(context, i); 57 viewerWindow.screenChangeRequest(context, i);
57 setVisible(false); 58 setVisible(false);
59 return;
58 } 60 }
59 } 61 }
60 } 62 }
61 63
62 public void visible() { 64 public void visible() {