public SwingDeviceComponent() { dc = new SwingDisplayComponent(this); setLayout(new XYLayout()); addMouseListener(mouseListener); addMouseMotionListener(mouseMotionListener); }
public void actionPerformed(ActionEvent e) { JMRUMenu.this.fireActionPerformed(new MRUActionEvent(sourceMRU, e)); } };
SwingDisplayComponent(SwingDeviceComponent deviceComponent) { this.deviceComponent = deviceComponent; setFocusable(false); addMouseListener(mouseListener); addMouseMotionListener(mouseMotionListener); addMouseWheelListener(mouseWheelListener); }
public void init() { dc.init(); remove(dc); Rectangle r = ((J2SEDeviceDisplay) DeviceFactory.getDevice().getDeviceDisplay()).getDisplayRectangle(); add(dc, new XYConstraints(r.x, r.y, -1, -1)); revalidate(); }
public void actionPerformed(ActionEvent ev) { if (midletUrlPanel == null) { midletUrlPanel = new MIDletUrlPanel(); } if (SwingDialogWindow.show(Main.this, "Enter MIDlet URL:", midletUrlPanel, true)) { Common.openMIDletUrlSafe(midletUrlPanel.getText()); if (recordStoreManagerDialog != null) { recordStoreManagerDialog.refresh(); } } } };
public void actionPerformed(ActionEvent e) { SwingDialogWindow.show(Main.this, "About", new SwingAboutDialog(), false); } };
public Main() { devicePanel = new SwingDeviceComponent(); devicePanel.addKeyListener(devicePanel); }
public DisplayComponent getDisplayComponent() { return devicePanel.getDisplayComponent(); }
public void windowClosing(WindowEvent e) { panel.state = false; panel.hideNotify(); } };
public void switchShowMouseCoordinates() { // TODO skin editing mode. // showMouseCoordinates = !showMouseCoordinates; dc.switchShowMouseCoordinates(); }
public void actionPerformed(ActionEvent e) { devicePanel.requestFocus(); } });
public Dimension minimumLayoutSize(Container target) { return getLayoutSize(target, false); }
public MIDletUrlPanel() { add(jadUrlField); }
private void repaint(Rectangle r) { repaint(r.x, r.y, r.width, r.height); }
public void mouseDragged(MouseEvent e) { mouseMoved(e); }
protected Document createDefaultModel() { return new IntegerDocument(); }
public void actionPerformed(ActionEvent event) { devicePanel.switchShowMouseCoordinates(); } });
public DisplayComponent getDisplayComponent() { return devicePanel.getDisplayComponent(); }