38 |
|
|
39 |
import java.util.Vector; |
import java.util.Vector; |
40 |
|
|
|
import javax.swing.Action; |
|
41 |
import javax.swing.BorderFactory; |
import javax.swing.BorderFactory; |
42 |
import javax.swing.Box; |
import javax.swing.Box; |
43 |
import javax.swing.BoxLayout; |
import javax.swing.BoxLayout; |
230 |
screen.installListeners(); |
screen.installListeners(); |
231 |
|
|
232 |
addEnhancedMouseListener(channel.getContextMenu()); |
addEnhancedMouseListener(channel.getContextMenu()); |
233 |
|
addEnhancedMouseListener(getHandler()); |
234 |
} |
} |
235 |
|
|
236 |
public void |
public void |
239 |
btnOptions.onDestroy(); |
btnOptions.onDestroy(); |
240 |
uninstallChannelOptionsView(); |
uninstallChannelOptionsView(); |
241 |
//removeEnhancedMouseListener(channel.getContextMenu()); |
//removeEnhancedMouseListener(channel.getContextMenu()); |
242 |
|
removeEnhancedMouseListener(getHandler()); |
243 |
} |
} |
244 |
|
|
245 |
public void |
public void |
471 |
public boolean |
public boolean |
472 |
contains(int x, int y) { return (x > 5 && x < 23) && (y > 5 && y < 16); } |
contains(int x, int y) { return (x > 5 && x < 23) && (y > 5 && y < 16); } |
473 |
} |
} |
474 |
|
|
475 |
|
private final EventHandler eventHandler = new EventHandler(); |
476 |
|
|
477 |
|
private EventHandler |
478 |
|
getHandler() { return eventHandler; } |
479 |
|
|
480 |
|
private class EventHandler extends MouseAdapter { |
481 |
|
public void |
482 |
|
mouseClicked(MouseEvent e) { |
483 |
|
if(e.getButton() != e.BUTTON1) return; |
484 |
|
// TAG: channel selection system |
485 |
|
CC.getMainFrame().getChannelsPane(0).setSelectedChannel(channel); |
486 |
|
/////// |
487 |
|
} |
488 |
|
} |
489 |
} |
} |
490 |
|
|
491 |
|
|