public SystemPropertiesFrame(bool menu)
 {
   int num = menu ? 1 : 0;
   base.\u002Ector();
   SystemPropertiesFrame systemPropertiesFrame = this;
   ResourceBundle bundle = ResourceBundleWrapper.getBundle("org.jfree.ui.about.resources.AboutResources");
   ((Frame) this).setTitle(bundle.getString("system-frame.title"));
   this.setDefaultCloseOperation(2);
   if (num != 0)
     this.setJMenuBar(this.createMenuBar(bundle));
   JPanel.__\u003Cclinit\u003E();
   JPanel jpanel1 = new JPanel((LayoutManager) new BorderLayout());
   this.panel = new SystemPropertiesPanel();
   ((JComponent) this.panel).setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
   ((Container) jpanel1).add((Component) this.panel, (object) "Center");
   JPanel.__\u003Cclinit\u003E();
   JPanel jpanel2 = new JPanel((LayoutManager) new BorderLayout());
   ((JComponent) jpanel2).setBorder(BorderFactory.createEmptyBorder(5, 0, 0, 0));
   string @string = bundle.getString("system-frame.button.close");
   Character character = (Character) bundle.getObject("system-frame.button.close.mnemonic");
   JButton jbutton = new JButton(@string);
   ((AbstractButton) jbutton).setMnemonic(character.charValue());
   ((AbstractButton) jbutton).setActionCommand("CLOSE");
   ((AbstractButton) jbutton).addActionListener((ActionListener) this);
   ((Container) jpanel2).add((Component) jbutton, (object) "East");
   ((Container) jpanel1).add((Component) jpanel2, (object) "South");
   this.setContentPane((Container) jpanel1);
 }
Esempio n. 2
0
 public virtual void init(AbstractTabbedUI tabbedUI)
 {
   this.tabbedUI = tabbedUI;
   ((Container) this.tabbedUI).addPropertyChangeListener("jMenuBar", (PropertyChangeListener) new TabbedApplet.MenuBarChangeListener(this));
   JPanel jpanel = new JPanel();
   ((Container) jpanel).setLayout((LayoutManager) new BorderLayout());
   ((Container) jpanel).add((Component) tabbedUI, (object) "Center");
   this.setContentPane((Container) jpanel);
   this.setJMenuBar(tabbedUI.getJMenuBar());
 }
Esempio n. 3
0
		/**
		 * Set up the applet's GUI.
		 * As recommended, the init method executes this in the event-dispatching 
		 * thread.
		 */
		public void run()
		{
			Container pane = getContentPane();
			pane.setLayout(new BorderLayout());

			// Build the button controls
			JRadioButton voronoiButton = new JRadioButton("Voronoi Diagram");
			voronoiButton.setActionCommand("voronoi");
			JRadioButton delaunayButton = new JRadioButton("Delaunay Triangulation");
			delaunayButton.setActionCommand("delaunay");
			JButton clearButton = new JButton("Clear");
			clearButton.setActionCommand("clear");
			
			ButtonGroup group = new ButtonGroup();
			group.add(voronoiButton);
			group.add(delaunayButton);
			JPanel buttonPanel = new JPanel();
			buttonPanel.add(voronoiButton);
			buttonPanel.add(delaunayButton);
			buttonPanel.add(clearButton);
			pane.add(buttonPanel, "North");

			// Build the mouse-entry switches
			JLabel circleLabel = new JLabel("Show Empty Circles");
			circleLabel.setName("circles");
			JLabel delaunayLabel = new JLabel("Show Delaunay Edges");
			delaunayLabel.setName("delaunay");
			JLabel voronoiLabel = new JLabel("Show Voronoi Edges");
			voronoiLabel.setName("voronoi");
			JPanel switchPanel = new JPanel();
			switchPanel.add(circleLabel);
			switchPanel.add(new Label("     "));
			switchPanel.add(delaunayLabel);
			switchPanel.add(new Label("     "));
			switchPanel.add(voronoiLabel);
			pane.add(switchPanel, "South");

			// Build the graphics panel
			DelaunayPanel graphicsPanel = new DelaunayPanel();
			graphicsPanel.setBackground(Color.gray);
			pane.add(graphicsPanel, "Center");

			// Register the listeners
			voronoiButton.addActionListener(graphicsPanel);
			delaunayButton.addActionListener(graphicsPanel);
			clearButton.addActionListener(graphicsPanel);
			graphicsPanel.addMouseListener(graphicsPanel);
			circleLabel.addMouseListener(graphicsPanel);
			delaunayLabel.addMouseListener(graphicsPanel);
			voronoiLabel.addMouseListener(graphicsPanel);

			// Initialize the radio buttons
			voronoiButton.doClick();
		}
 public DefaultColorBarEditor([In] ColorBar obj0)
   : base((NumberAxis) obj0.getAxis())
 {
   DefaultColorBarEditor defaultColorBarEditor = this;
   this.invertPalette = false;
   this.stepPalette = false;
   this.invertPalette = obj0.getColorPalette().isInverse();
   this.stepPalette = obj0.getColorPalette().isStepped();
   PaletteSample.__\u003Cclinit\u003E();
   this.currentPalette = new PaletteSample(obj0.getColorPalette());
   this.availablePaletteSamples = new PaletteSample[2];
   PaletteSample[] paletteSampleArray1 = this.availablePaletteSamples;
   int index1 = 0;
   PaletteSample.__\u003Cclinit\u003E();
   PaletteSample paletteSample1 = new PaletteSample((ColorPalette) new RainbowPalette());
   paletteSampleArray1[index1] = paletteSample1;
   PaletteSample[] paletteSampleArray2 = this.availablePaletteSamples;
   int index2 = 1;
   PaletteSample.__\u003Cclinit\u003E();
   PaletteSample paletteSample2 = new PaletteSample((ColorPalette) new GreyPalette());
   paletteSampleArray2[index2] = paletteSample2;
   JTabbedPane otherTabs = this.getOtherTabs();
   JPanel.__\u003Cclinit\u003E();
   JPanel jpanel1 = new JPanel((LayoutManager) new LCBLayout(4));
   ((JComponent) jpanel1).setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4));
   ((Container) jpanel1).add((Component) new JPanel());
   JCheckBox.__\u003Cclinit\u003E();
   this.invertPaletteCheckBox = new JCheckBox(DefaultColorBarEditor.localizationResources.getString("Invert_Palette"), this.invertPalette);
   ((AbstractButton) this.invertPaletteCheckBox).setActionCommand("invertPalette");
   ((AbstractButton) this.invertPaletteCheckBox).addActionListener((ActionListener) this);
   ((Container) jpanel1).add((Component) this.invertPaletteCheckBox);
   ((Container) jpanel1).add((Component) new JPanel());
   ((Container) jpanel1).add((Component) new JPanel());
   JCheckBox.__\u003Cclinit\u003E();
   this.stepPaletteCheckBox = new JCheckBox(DefaultColorBarEditor.localizationResources.getString("Step_Palette"), this.stepPalette);
   ((AbstractButton) this.stepPaletteCheckBox).setActionCommand("stepPalette");
   ((AbstractButton) this.stepPaletteCheckBox).addActionListener((ActionListener) this);
   ((Container) jpanel1).add((Component) this.stepPaletteCheckBox);
   ((Container) jpanel1).add((Component) new JPanel());
   JPanel jpanel2 = jpanel1;
   JLabel.__\u003Cclinit\u003E();
   JLabel jlabel = new JLabel(DefaultColorBarEditor.localizationResources.getString("Palette"));
   ((Container) jpanel2).add((Component) jlabel);
   JButton.__\u003Cclinit\u003E();
   JButton jbutton = new JButton(DefaultColorBarEditor.localizationResources.getString("Set_palette..."));
   ((AbstractButton) jbutton).setActionCommand("PaletteChoice");
   ((AbstractButton) jbutton).addActionListener((ActionListener) this);
   ((Container) jpanel1).add((Component) this.currentPalette);
   ((Container) jpanel1).add((Component) jbutton);
   otherTabs.add(DefaultColorBarEditor.localizationResources.getString("Palette"), (Component) jpanel1);
 }
 private JPanel createContent([In] Font obj0)
 {
   JPanel.__\u003Cclinit\u003E();
   JPanel jpanel = new JPanel((LayoutManager) new BorderLayout());
   ((JComponent) jpanel).setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4));
   if (obj0 == null)
     obj0 = new Font("Dialog", 10, 0);
   this.fontChooserPanel = new FontChooserPanel(obj0);
   ((Container) jpanel).add((Component) this.fontChooserPanel);
   JPanel buttonPanel = this.createButtonPanel();
   ((JComponent) buttonPanel).setBorder(BorderFactory.createEmptyBorder(4, 0, 0, 0));
   ((Container) jpanel).add((Component) buttonPanel, (object) "South");
   return jpanel;
 }
 public L1R2ButtonPanel(string label1, string label2, string label3)
 {
   base.\u002Ector();
   L1R2ButtonPanel l1R2ButtonPanel = this;
   ((Container) this).setLayout((LayoutManager) new BorderLayout());
   this.left = new JButton(label1);
   JPanel.__\u003Cclinit\u003E();
   JPanel jpanel = new JPanel((LayoutManager) new GridLayout(1, 2));
   this.right1 = new JButton(label2);
   this.right2 = new JButton(label3);
   ((Container) jpanel).add((Component) this.right1);
   ((Container) jpanel).add((Component) this.right2);
   ((Container) this).add((Component) this.left, (object) "West");
   ((Container) this).add((Component) jpanel, (object) "East");
 }
Esempio n. 7
0
 private JComponent getLogComponent()
 {
     var jpanel = new JPanel(new BorderLayout());
     var jtextarea = new JTextArea();
     logger.addHandler(new GuiLogOutputHandler(jtextarea));
     var jscrollpane = new JScrollPane(jtextarea, 22, 30);
     jtextarea.setEditable(false);
     var jtextfield = new JTextField();
     jtextfield.addActionListener(new ServerGuiCommandListener(this, jtextfield));
     jtextarea.addFocusListener(new ServerGuiFocusAdapter(this));
     jpanel.add(jscrollpane, "Center");
     jpanel.add(jtextfield, "South");
     jpanel.setBorder(new TitledBorder(new EtchedBorder(), "Log and chat"));
     return jpanel;
 }
 public AbstractTabbedUI()
 {
   base.\u002Ector();
   AbstractTabbedUI abstractTabbedUi = this;
   this.selectedRootEditor = -1;
   this.toolbarContainer = new JPanel();
   ((Container) this.toolbarContainer).setLayout((LayoutManager) new BorderLayout());
   this.tabbedPane = new JTabbedPane(3);
   this.tabbedPane.addChangeListener((ChangeListener) new AbstractTabbedUI.TabChangeHandler(this, this.tabbedPane));
   this.rootEditors = new ArrayList();
   ((Container) this).setLayout((LayoutManager) new BorderLayout());
   ((Container) this).add((Component) this.toolbarContainer, (object) "North");
   ((Container) this).add((Component) this.tabbedPane, (object) "Center");
   this.closeAction = this.createCloseAction();
 }
 public InsetsChooserPanel(Insets current)
 {
   base.\u002Ector();
   InsetsChooserPanel insetsChooserPanel = this;
   current = current != null ? current : new Insets(0, 0, 0, 0);
   JTextField.__\u003Cclinit\u003E();
   this.topValueEditor = new JTextField((Document) new IntegerDocument(), new StringBuffer().append("").append((int) current.top).toString(), 0);
   JTextField.__\u003Cclinit\u003E();
   this.leftValueEditor = new JTextField((Document) new IntegerDocument(), new StringBuffer().append("").append((int) current.left).toString(), 0);
   JTextField.__\u003Cclinit\u003E();
   this.bottomValueEditor = new JTextField((Document) new IntegerDocument(), new StringBuffer().append("").append((int) current.bottom).toString(), 0);
   JTextField.__\u003Cclinit\u003E();
   this.rightValueEditor = new JTextField((Document) new IntegerDocument(), new StringBuffer().append("").append((int) current.right).toString(), 0);
   JPanel.__\u003Cclinit\u003E();
   JPanel jpanel1 = new JPanel((LayoutManager) new GridBagLayout());
   ((JComponent) jpanel1).setBorder((Border) new TitledBorder(InsetsChooserPanel.localizationResources.getString("Insets")));
   JPanel jpanel2 = jpanel1;
   JLabel.__\u003Cclinit\u003E();
   JLabel jlabel1 = new JLabel(InsetsChooserPanel.localizationResources.getString("Top"));
   GridBagConstraints gridBagConstraints1 = new GridBagConstraints(1, 0, 3, 1, 0.0, 0.0, 10, 0, new Insets(0, 0, 0, 0), 0, 0);
   ((Container) jpanel2).add((Component) jlabel1, (object) gridBagConstraints1);
   ((Container) jpanel1).add((Component) new JLabel(" "), (object) new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0, 10, 1, new Insets(0, 12, 0, 12), 8, 0));
   ((Container) jpanel1).add((Component) this.topValueEditor, (object) new GridBagConstraints(2, 1, 1, 1, 0.0, 0.0, 10, 2, new Insets(0, 0, 0, 0), 0, 0));
   ((Container) jpanel1).add((Component) new JLabel(" "), (object) new GridBagConstraints(3, 1, 1, 1, 0.0, 0.0, 10, 1, new Insets(0, 12, 0, 11), 8, 0));
   JPanel jpanel3 = jpanel1;
   JLabel.__\u003Cclinit\u003E();
   JLabel jlabel2 = new JLabel(InsetsChooserPanel.localizationResources.getString("Left"));
   GridBagConstraints gridBagConstraints2 = new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0, 10, 1, new Insets(0, 4, 0, 4), 0, 0);
   ((Container) jpanel3).add((Component) jlabel2, (object) gridBagConstraints2);
   ((Container) jpanel1).add((Component) this.leftValueEditor, (object) new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0, 10, 1, new Insets(0, 0, 0, 0), 0, 0));
   ((Container) jpanel1).add((Component) new JLabel(" "), (object) new GridBagConstraints(2, 2, 1, 1, 0.0, 0.0, 10, 0, new Insets(0, 12, 0, 12), 8, 0));
   ((Container) jpanel1).add((Component) this.rightValueEditor, (object) new GridBagConstraints(3, 2, 1, 1, 0.0, 0.0, 10, 2, new Insets(0, 0, 0, 0), 0, 0));
   JPanel jpanel4 = jpanel1;
   JLabel.__\u003Cclinit\u003E();
   JLabel jlabel3 = new JLabel(InsetsChooserPanel.localizationResources.getString("Right"));
   GridBagConstraints gridBagConstraints3 = new GridBagConstraints(4, 2, 1, 1, 0.0, 0.0, 10, 0, new Insets(0, 4, 0, 4), 0, 0);
   ((Container) jpanel4).add((Component) jlabel3, (object) gridBagConstraints3);
   ((Container) jpanel1).add((Component) this.bottomValueEditor, (object) new GridBagConstraints(2, 3, 1, 1, 0.0, 0.0, 10, 2, new Insets(0, 0, 0, 0), 0, 0));
   JPanel jpanel5 = jpanel1;
   JLabel.__\u003Cclinit\u003E();
   JLabel jlabel4 = new JLabel(InsetsChooserPanel.localizationResources.getString("Bottom"));
   GridBagConstraints gridBagConstraints4 = new GridBagConstraints(1, 4, 3, 1, 0.0, 0.0, 10, 0, new Insets(0, 0, 0, 0), 0, 0);
   ((Container) jpanel5).add((Component) jlabel4, (object) gridBagConstraints4);
   ((Container) this).setLayout((LayoutManager) new BorderLayout());
   ((Container) this).add((Component) jpanel1, (object) "Center");
 }
Esempio n. 10
0
 public AboutPanel(string application, string version, string copyright, string info, Image logo)
 {
   base.\u002Ector();
   AboutPanel aboutPanel = this;
   ((Container) this).setLayout((LayoutManager) new BorderLayout());
   JPanel.__\u003Cclinit\u003E();
   JPanel jpanel1 = new JPanel((LayoutManager) new GridLayout(4, 1, 0, 4));
   JPanel jpanel2 = new JPanel();
   Font font1 = new Font("Dialog", 1, 14);
   JLabel jlabel1 = RefineryUtilities.createJLabel(application, font1, (Color) Color.black);
   jlabel1.setHorizontalTextPosition(0);
   ((Container) jpanel2).add((Component) jlabel1);
   JPanel jpanel3 = new JPanel();
   Font font2 = new Font("Dialog", 0, 12);
   JLabel jlabel2 = RefineryUtilities.createJLabel(version, font2, (Color) Color.black);
   jlabel2.setHorizontalTextPosition(0);
   ((Container) jpanel3).add((Component) jlabel2);
   JPanel jpanel4 = new JPanel();
   JLabel jlabel3 = RefineryUtilities.createJLabel(copyright, font2, (Color) Color.black);
   jlabel3.setHorizontalTextPosition(0);
   ((Container) jpanel4).add((Component) jlabel3);
   JPanel jpanel5 = new JPanel();
   JLabel jlabel4 = RefineryUtilities.createJLabel(info, font2, (Color) Color.black);
   jlabel4.setHorizontalTextPosition(0);
   ((Container) jpanel5).add((Component) jlabel4);
   ((Container) jpanel1).add((Component) jpanel2);
   ((Container) jpanel1).add((Component) jpanel3);
   ((Container) jpanel1).add((Component) jpanel4);
   ((Container) jpanel1).add((Component) jpanel5);
   ((Container) this).add((Component) jpanel1);
   if (logo == null)
     return;
   JPanel.__\u003Cclinit\u003E();
   JPanel jpanel6 = new JPanel((LayoutManager) new BorderLayout());
   JPanel jpanel7 = jpanel6;
   JLabel.__\u003Cclinit\u003E();
   JLabel jlabel5 = new JLabel((Icon) new ImageIcon(logo));
   ((Container) jpanel7).add((Component) jlabel5);
   ((JComponent) jpanel6).setBorder(BorderFactory.createLineBorder((Color) Color.black));
   JPanel.__\u003Cclinit\u003E();
   JPanel jpanel8 = new JPanel((LayoutManager) new BorderLayout());
   ((Container) jpanel8).add((Component) jpanel6, (object) "North");
   ((Container) this).add((Component) jpanel8, (object) "West");
 }
Esempio n. 11
0
 public Spinner(int value)
 {
   base.\u002Ector((LayoutManager) new BorderLayout());
   Spinner spinner = this;
   this.value = value;
   JTextField.__\u003Cclinit\u003E();
   this.textField = new JTextField(Integer.toString(this.value));
   this.textField.setHorizontalAlignment(4);
   ((Container) this).add((Component) this.textField);
   JPanel.__\u003Cclinit\u003E();
   this.buttonPanel = new JPanel((LayoutManager) new GridLayout(2, 1, 0, 1));
   this.upButton = new ArrowPanel(0);
   ((Component) this.upButton).addMouseListener((MouseListener) this);
   this.downButton = new ArrowPanel(1);
   ((Component) this.downButton).addMouseListener((MouseListener) this);
   ((Container) this.buttonPanel).add((Component) this.upButton);
   ((Container) this.buttonPanel).add((Component) this.downButton);
   ((Container) this).add((Component) this.buttonPanel, (object) "East");
 }
Esempio n. 12
0
 public AboutFrame(string title, string application, string version, string info, Image logo, string copyright, string licence, List contributors, ProjectInfo project)
 {
   base.\u002Ector(title);
   AboutFrame aboutFrame = this;
   this.application = application;
   this.version = version;
   this.copyright = copyright;
   this.info = info;
   this.logo = logo;
   this.contributors = contributors;
   this.licence = licence;
   this.resources = ResourceBundleWrapper.getBundle("org.jfree.ui.about.resources.AboutResources");
   JPanel.__\u003Cclinit\u003E();
   JPanel jpanel = new JPanel((LayoutManager) new BorderLayout());
   ((JComponent) jpanel).setBorder(AboutFrame.__\u003C\u003ESTANDARD_BORDER);
   JTabbedPane tabs = this.createTabs(project);
   ((Container) jpanel).add((Component) tabs);
   this.setContentPane((Container) jpanel);
   ((Window) this).pack();
 }
Esempio n. 13
0
 public DashboardPanel(DashboardFrame frame, ITable table)
 {
   base.\u002Ector();
   DashboardPanel dashboardPanel = this;
   this.backPane = new JPanel();
   this.elements = new LinkedList();
   this.fields = (Map) new HashMap();
   this.hiddenFields = (Set) new HashSet();
   this.editable = false;
   this.listener = new DashboardPanel.RobotListener(this, (DashboardPanel.\u0031) null);
   this.subsystems = new ArrayList();
   this.frame = frame;
   this.table = table;
   this.glassPane = new GlassPane(frame, this);
   ((Container) this).add((Component) this.glassPane);
   ((Container) this).add((Component) this.backPane);
   ((Container) this.backPane).setLayout((LayoutManager) new DashboardPanel.DashboardLayout(this, (DashboardPanel.\u0031) null));
   ((Component) this.backPane).setFocusable(true);
   ((Container) this).setLayout((LayoutManager) new DashboardPanel.DashboardLayout(this, (DashboardPanel.\u0031) null));
   this.setEditable(this.editable);
   table.addTableListener((ITableListener) this.listener, true);
   table.addSubTableListener((ITableListener) this.listener);
 }
 private JPanel constructSelectionPanel()
 {
   JPanel jpanel = new JPanel();
   JComboBox.__\u003Cclinit\u003E();
   this.monthSelector = new JComboBox((object[]) SerialDate.getMonths());
   this.monthSelector.addActionListener((ActionListener) this);
   this.monthSelector.setActionCommand("monthSelectionChanged");
   ((Container) jpanel).add((Component) this.monthSelector);
   JComboBox.__\u003Cclinit\u003E();
   this.yearSelector = new JComboBox(this.getYears(0));
   this.yearSelector.addActionListener((ActionListener) this);
   this.yearSelector.setActionCommand("yearSelectionChanged");
   ((Container) jpanel).add((Component) this.yearSelector);
   return jpanel;
 }
Esempio n. 15
0
 private JPanel createLicencePanel()
 {
   JPanel.__\u003Cclinit\u003E();
   JPanel jpanel = new JPanel((LayoutManager) new BorderLayout());
   JTextArea.__\u003Cclinit\u003E();
   JTextArea jtextArea = new JTextArea(this.licence);
   jtextArea.setLineWrap(true);
   jtextArea.setWrapStyleWord(true);
   ((JTextComponent) jtextArea).setCaretPosition(0);
   ((JTextComponent) jtextArea).setEditable(false);
   ((Container) jpanel).add((Component) new JScrollPane((Component) jtextArea));
   return jpanel;
 }
Esempio n. 16
0
 private JPanel createAboutPanel([In] ProjectInfo obj0)
 {
   JPanel.__\u003Cclinit\u003E();
   JPanel jpanel = new JPanel((LayoutManager) new BorderLayout());
   AboutPanel.__\u003Cclinit\u003E();
   AboutPanel aboutPanel = new AboutPanel(this.application, this.version, this.copyright, this.info, this.logo);
   int num = 0;
   JTabbedPane jtabbedPane = new JTabbedPane();
   if (this.contributors != null)
   {
     ContributorsPanel.__\u003Cclinit\u003E();
     ContributorsPanel contributorsPanel = new ContributorsPanel(this.contributors);
     ((JComponent) contributorsPanel).setBorder(AboutDialog.__\u003C\u003ESTANDARD_BORDER);
     string @string = this.resources.getString("about-frame.tab.contributors");
     jtabbedPane.add(@string, (Component) contributorsPanel);
     num = 1;
   }
   if (this.licence != null)
   {
     JPanel licencePanel = this.createLicencePanel();
     ((JComponent) licencePanel).setBorder(AboutDialog.__\u003C\u003ESTANDARD_BORDER);
     string @string = this.resources.getString("about-frame.tab.licence");
     jtabbedPane.add(@string, (Component) licencePanel);
     num = 1;
   }
   if (obj0 != null)
   {
     LibraryPanel libraryPanel = new LibraryPanel(obj0);
     ((JComponent) libraryPanel).setBorder(AboutDialog.__\u003C\u003ESTANDARD_BORDER);
     string @string = this.resources.getString("about-frame.tab.libraries");
     jtabbedPane.add(@string, (Component) libraryPanel);
     num = 1;
   }
   ((Container) jpanel).add((Component) aboutPanel, (object) "North");
   if (num != 0)
     ((Container) jpanel).add((Component) jtabbedPane);
   return jpanel;
 }
Esempio n. 17
0
 private void init([In] string obj0, [In] string obj1, [In] string obj2, [In] string obj3, [In] Image obj4, [In] string obj5, [In] string obj6, [In] List obj7, [In] ProjectInfo obj8)
 {
   ((Dialog) this).setTitle(obj0);
   this.application = obj1;
   this.version = obj2;
   this.copyright = obj5;
   this.info = obj3;
   this.logo = obj4;
   this.contributors = obj7;
   this.licence = obj6;
   this.resources = ResourceBundleWrapper.getBundle("org.jfree.ui.about.resources.AboutResources");
   JPanel.__\u003Cclinit\u003E();
   JPanel jpanel = new JPanel((LayoutManager) new BorderLayout());
   ((JComponent) jpanel).setBorder(AboutDialog.__\u003C\u003ESTANDARD_BORDER);
   JTabbedPane tabs = this.createTabs(obj8);
   ((Container) jpanel).add((Component) tabs);
   this.setContentPane((Container) jpanel);
   ((Window) this).pack();
 }
Esempio n. 18
0
 public override void init()
 {
   ((Container) this).setLayout((LayoutManager) new BorderLayout());
   CompassPlot.__\u003Cclinit\u003E();
   this.m_compass = new CompassPlot((ValueDataset) this.data);
   this.m_compass.setSeriesNeedle(7);
   this.m_compass.setSeriesPaint(0, (Paint) Color.RED);
   this.m_compass.setSeriesOutlinePaint(0, (Paint) Color.RED);
   JFreeChart.__\u003Cclinit\u003E();
   this.chartPanel = (JPanel) new ChartPanel(new JFreeChart(this.getFieldName(), JFreeChart.__\u003C\u003EDEFAULT_TITLE_FONT, (Plot) this.m_compass, false));
   ((JComponent) this.chartPanel).setPreferredSize(new Dimension(250, 150));
   ((Container) this).add((Component) this.chartPanel, (object) "Center");
   ((JComponent) this).revalidate();
   ((Component) this).repaint();
 }
Esempio n. 19
0
 private JPanel getCalendarPanel()
 {
   JPanel.__\u003Cclinit\u003E();
   JPanel jpanel1 = new JPanel((LayoutManager) new GridLayout(7, 7));
   string[] shortWeekdays = new DateFormatSymbols().getShortWeekdays();
   for (int index = 0; index < this.WEEK_DAYS.Length; ++index)
   {
     JPanel jpanel2 = jpanel1;
     JLabel.__\u003Cclinit\u003E();
     JLabel jlabel = new JLabel(shortWeekdays[this.WEEK_DAYS[index]], 0);
     ((Container) jpanel2).add((Component) jlabel);
   }
   this.buttons = new JButton[42];
   for (int index = 0; index < 42; ++index)
   {
     JButton jbutton = new JButton("");
     ((AbstractButton) jbutton).setMargin(new Insets(1, 1, 1, 1));
     ((Component) jbutton).setName(Integer.toString(index));
     ((JComponent) jbutton).setFont(this.dateFont);
     ((AbstractButton) jbutton).setFocusPainted(false);
     ((AbstractButton) jbutton).setActionCommand("dateButtonClicked");
     ((AbstractButton) jbutton).addActionListener((ActionListener) this);
     this.buttons[index] = jbutton;
     ((Container) jpanel1).add((Component) jbutton);
   }
   return jpanel1;
 }
Esempio n. 20
0
 public NewPreferenceEntryDialog([In] RobotPreferences obj0)
 {
   base.\u002Ector();
   RobotPreferences.NewPreferenceEntryDialog preferenceEntryDialog1 = this;
   this.canceled = true;
   ((Dialog) this).setTitle("New Preference Entry");
   ((Dialog) this).setModal(true);
   ((Dialog) this).setResizable(false);
   ((JComponent) this.getContentPane()).setBorder(BorderFactory.createEmptyBorder(7, 7, 7, 7));
   this.setLayout((LayoutManager) new GridBagLayout());
   GridBagConstraints gridBagConstraints1 = new GridBagConstraints();
   ((Container) this).add((Component) new JLabel("Key: "), (object) gridBagConstraints1);
   gridBagConstraints1.gridx = (__Null) 1;
   RobotPreferences.NewPreferenceEntryDialog preferenceEntryDialog2 = this;
   JTextField jtextField1 = new JTextField(10);
   JTextField jtextField2 = jtextField1;
   this.keyField = jtextField1;
   GridBagConstraints gridBagConstraints2 = gridBagConstraints1;
   ((Container) this).add((Component) jtextField2, (object) gridBagConstraints2);
   gridBagConstraints1.gridx = (__Null) 0;
   gridBagConstraints1.gridy = (__Null) 1;
   ((Container) this).add((Component) new JLabel("Value: "), (object) gridBagConstraints1);
   gridBagConstraints1.gridx = (__Null) 1;
   RobotPreferences.NewPreferenceEntryDialog preferenceEntryDialog3 = this;
   JTextField jtextField3 = new JTextField(10);
   JTextField jtextField4 = jtextField3;
   this.valueField = jtextField3;
   GridBagConstraints gridBagConstraints3 = gridBagConstraints1;
   ((Container) this).add((Component) jtextField4, (object) gridBagConstraints3);
   JPanel jpanel1 = new JPanel();
   ((Container) jpanel1).setLayout((LayoutManager) new GridLayout(0, 2));
   JPanel jpanel2 = jpanel1;
   RobotPreferences.NewPreferenceEntryDialog preferenceEntryDialog4 = this;
   JButton jbutton1 = new JButton("Add");
   JButton jbutton2 = jbutton1;
   this.addButton = jbutton1;
   GridBagConstraints gridBagConstraints4 = gridBagConstraints1;
   ((Container) jpanel2).add((Component) jbutton2, (object) gridBagConstraints4);
   ((AbstractButton) this.addButton).addActionListener((ActionListener) new RobotPreferences\u0024NewPreferenceEntryDialog\u00241(this, obj0));
   this.getRootPane().setDefaultButton(this.addButton);
   JPanel jpanel3 = jpanel1;
   RobotPreferences.NewPreferenceEntryDialog preferenceEntryDialog5 = this;
   JButton jbutton3 = new JButton("Cancel");
   JButton jbutton4 = jbutton3;
   this.cancelButton = jbutton3;
   GridBagConstraints gridBagConstraints5 = gridBagConstraints1;
   ((Container) jpanel3).add((Component) jbutton4, (object) gridBagConstraints5);
   ((AbstractButton) this.cancelButton).addActionListener((ActionListener) new RobotPreferences\u0024NewPreferenceEntryDialog\u00242(this, obj0));
   gridBagConstraints1.gridx = (__Null) 0;
   gridBagConstraints1.gridy = (__Null) 2;
   gridBagConstraints1.gridwidth = (__Null) 2;
   ((Container) this).add((Component) jpanel1, (object) gridBagConstraints1);
   ((Window) this).pack();
 }
 public DefaultNumberAxisEditor([In] NumberAxis obj0)
   : base((Axis) obj0)
 {
   DefaultNumberAxisEditor numberAxisEditor = this;
   this.autoRange = obj0.isAutoRange();
   this.minimumValue = obj0.getLowerBound();
   this.maximumValue = obj0.getUpperBound();
   PaintSample.__\u003Cclinit\u003E();
   this.gridPaintSample = new PaintSample((Paint) Color.blue);
   StrokeSample.__\u003Cclinit\u003E();
   this.gridStrokeSample = new StrokeSample((Stroke) new BasicStroke(1f));
   this.availableStrokeSamples = new StrokeSample[3];
   StrokeSample[] strokeSampleArray1 = this.availableStrokeSamples;
   int index1 = 0;
   StrokeSample.__\u003Cclinit\u003E();
   StrokeSample strokeSample1 = new StrokeSample((Stroke) new BasicStroke(1f));
   strokeSampleArray1[index1] = strokeSample1;
   StrokeSample[] strokeSampleArray2 = this.availableStrokeSamples;
   int index2 = 1;
   StrokeSample.__\u003Cclinit\u003E();
   StrokeSample strokeSample2 = new StrokeSample((Stroke) new BasicStroke(2f));
   strokeSampleArray2[index2] = strokeSample2;
   StrokeSample[] strokeSampleArray3 = this.availableStrokeSamples;
   int index3 = 2;
   StrokeSample.__\u003Cclinit\u003E();
   StrokeSample strokeSample3 = new StrokeSample((Stroke) new BasicStroke(3f));
   strokeSampleArray3[index3] = strokeSample3;
   JTabbedPane otherTabs = this.getOtherTabs();
   JPanel.__\u003Cclinit\u003E();
   JPanel jpanel1 = new JPanel((LayoutManager) new LCBLayout(3));
   ((JComponent) jpanel1).setBorder(BorderFactory.createEmptyBorder(4, 4, 4, 4));
   ((Container) jpanel1).add((Component) new JPanel());
   JCheckBox.__\u003Cclinit\u003E();
   this.autoRangeCheckBox = new JCheckBox(DefaultNumberAxisEditor.localizationResources.getString("Auto-adjust_range"), this.autoRange);
   ((AbstractButton) this.autoRangeCheckBox).setActionCommand("AutoRangeOnOff");
   ((AbstractButton) this.autoRangeCheckBox).addActionListener((ActionListener) this);
   ((Container) jpanel1).add((Component) this.autoRangeCheckBox);
   ((Container) jpanel1).add((Component) new JPanel());
   JPanel jpanel2 = jpanel1;
   JLabel.__\u003Cclinit\u003E();
   JLabel jlabel1 = new JLabel(DefaultNumberAxisEditor.localizationResources.getString("Minimum_range_value"));
   ((Container) jpanel2).add((Component) jlabel1);
   JTextField.__\u003Cclinit\u003E();
   this.minimumRangeValue = new JTextField(Double.toString(this.minimumValue));
   ((JComponent) this.minimumRangeValue).setEnabled(!this.autoRange);
   this.minimumRangeValue.setActionCommand("MinimumRange");
   this.minimumRangeValue.addActionListener((ActionListener) this);
   ((Component) this.minimumRangeValue).addFocusListener((FocusListener) this);
   ((Container) jpanel1).add((Component) this.minimumRangeValue);
   ((Container) jpanel1).add((Component) new JPanel());
   JPanel jpanel3 = jpanel1;
   JLabel.__\u003Cclinit\u003E();
   JLabel jlabel2 = new JLabel(DefaultNumberAxisEditor.localizationResources.getString("Maximum_range_value"));
   ((Container) jpanel3).add((Component) jlabel2);
   JTextField.__\u003Cclinit\u003E();
   this.maximumRangeValue = new JTextField(Double.toString(this.maximumValue));
   ((JComponent) this.maximumRangeValue).setEnabled(!this.autoRange);
   this.maximumRangeValue.setActionCommand("MaximumRange");
   this.maximumRangeValue.addActionListener((ActionListener) this);
   ((Component) this.maximumRangeValue).addFocusListener((FocusListener) this);
   ((Container) jpanel1).add((Component) this.maximumRangeValue);
   ((Container) jpanel1).add((Component) new JPanel());
   otherTabs.add(DefaultNumberAxisEditor.localizationResources.getString("Range"), (Component) jpanel1);
 }
Esempio n. 22
0
 public override void init()
 {
   this.setResizable(false);
   JPanel.__\u003Cclinit\u003E();
   Command command = this;
   CardLayout cardLayout1 = new CardLayout();
   CardLayout cardLayout2 = cardLayout1;
   this.layout = cardLayout1;
   this.buttonPanel = new JPanel((LayoutManager) cardLayout2);
   ((JComponent) this.buttonPanel).setOpaque(false);
   this.start = new JButton("start");
   ((JComponent) this.start).setOpaque(false);
   ((AbstractButton) this.start).addActionListener((ActionListener) new Command\u00241(this));
   ((JComponent) this.start).setForeground((Color) this.__\u003C\u003EstartBackground.getValue());
   ((Container) this.buttonPanel).add((Component) this.start, (object) "Start");
   this.cancel = new JButton("cancel");
   ((JComponent) this.cancel).setOpaque(false);
   ((AbstractButton) this.cancel).addActionListener((ActionListener) new Command\u00242(this));
   ((JComponent) this.cancel).setForeground((Color) this.__\u003C\u003EcancelBackground.getValue());
   ((Container) this.buttonPanel).add((Component) this.cancel, (object) "Cancel");
   JLabel.__\u003Cclinit\u003E();
   this.name = new JLabel(this.getFieldName());
   ((Container) this).add((Component) this.name);
   ((Container) this).add((Component) this.buttonPanel);
 }
 public static JPanel createTablePanel(TableModel model)
 {
   JPanel.__\u003Cclinit\u003E();
   JPanel jpanel = new JPanel((LayoutManager) new BorderLayout());
   JTable jtable = new JTable(model);
   for (int index = 0; index < model.getColumnCount(); ++index)
   {
     TableColumn column = jtable.getColumnModel().getColumn(index);
     if (Object.instancehelper_equals((object) model.getColumnClass(index), RefineryUtilities.class\u0024java\u0024lang\u0024Number != null ? (object) RefineryUtilities.class\u0024java\u0024lang\u0024Number : (object) (RefineryUtilities.class\u0024java\u0024lang\u0024Number = RefineryUtilities.class\u0024("java.lang.Number"))))
       column.setCellRenderer((TableCellRenderer) new NumberCellRenderer());
   }
   ((Container) jpanel).add((Component) new JScrollPane((Component) jtable));
   return jpanel;
 }
 public DefaultChartEditor([In] JFreeChart obj0)
 {
   base.\u002Ector();
   DefaultChartEditor defaultChartEditor = this;
   ((Container) this).setLayout((LayoutManager) new BorderLayout());
   JPanel.__\u003Cclinit\u003E();
   JPanel jpanel1 = new JPanel((LayoutManager) new BorderLayout());
   ((JComponent) jpanel1).setBorder(BorderFactory.createEmptyBorder(2, 2, 2, 2));
   JPanel.__\u003Cclinit\u003E();
   JPanel jpanel2 = new JPanel((LayoutManager) new BorderLayout());
   ((JComponent) jpanel2).setBorder((Border) BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), DefaultChartEditor.localizationResources.getString("General")));
   JPanel.__\u003Cclinit\u003E();
   JPanel jpanel3 = new JPanel((LayoutManager) new LCBLayout(6));
   ((JComponent) jpanel3).setBorder(BorderFactory.createEmptyBorder(0, 5, 0, 5));
   JCheckBox.__\u003Cclinit\u003E();
   this.antialias = new JCheckBox(DefaultChartEditor.localizationResources.getString("Draw_anti-aliased"));
   ((AbstractButton) this.antialias).setSelected(obj0.getAntiAlias());
   ((Container) jpanel3).add((Component) this.antialias);
   ((Container) jpanel3).add((Component) new JLabel(""));
   ((Container) jpanel3).add((Component) new JLabel(""));
   JPanel jpanel4 = jpanel3;
   JLabel.__\u003Cclinit\u003E();
   JLabel jlabel1 = new JLabel(DefaultChartEditor.localizationResources.getString("Background_paint"));
   ((Container) jpanel4).add((Component) jlabel1);
   PaintSample.__\u003Cclinit\u003E();
   this.background = new PaintSample(obj0.getBackgroundPaint());
   ((Container) jpanel3).add((Component) this.background);
   JButton.__\u003Cclinit\u003E();
   JButton jbutton1 = new JButton(DefaultChartEditor.localizationResources.getString("Select..."));
   ((AbstractButton) jbutton1).setActionCommand("BackgroundPaint");
   ((AbstractButton) jbutton1).addActionListener((ActionListener) this);
   ((Container) jpanel3).add((Component) jbutton1);
   JPanel jpanel5 = jpanel3;
   JLabel.__\u003Cclinit\u003E();
   JLabel jlabel2 = new JLabel(DefaultChartEditor.localizationResources.getString("Series_Paint"));
   ((Container) jpanel5).add((Component) jlabel2);
   JTextField.__\u003Cclinit\u003E();
   JTextField jtextField1 = new JTextField(DefaultChartEditor.localizationResources.getString("No_editor_implemented"));
   ((JComponent) jtextField1).setEnabled(false);
   ((Container) jpanel3).add((Component) jtextField1);
   JButton.__\u003Cclinit\u003E();
   JButton jbutton2 = new JButton(DefaultChartEditor.localizationResources.getString("Edit..."));
   ((AbstractButton) jbutton2).setEnabled(false);
   ((Container) jpanel3).add((Component) jbutton2);
   JPanel jpanel6 = jpanel3;
   JLabel.__\u003Cclinit\u003E();
   JLabel jlabel3 = new JLabel(DefaultChartEditor.localizationResources.getString("Series_Stroke"));
   ((Container) jpanel6).add((Component) jlabel3);
   JTextField.__\u003Cclinit\u003E();
   JTextField jtextField2 = new JTextField(DefaultChartEditor.localizationResources.getString("No_editor_implemented"));
   ((JComponent) jtextField2).setEnabled(false);
   ((Container) jpanel3).add((Component) jtextField2);
   JButton.__\u003Cclinit\u003E();
   JButton jbutton3 = new JButton(DefaultChartEditor.localizationResources.getString("Edit..."));
   ((AbstractButton) jbutton3).setEnabled(false);
   ((Container) jpanel3).add((Component) jbutton3);
   JPanel jpanel7 = jpanel3;
   JLabel.__\u003Cclinit\u003E();
   JLabel jlabel4 = new JLabel(DefaultChartEditor.localizationResources.getString("Series_Outline_Paint"));
   ((Container) jpanel7).add((Component) jlabel4);
   JTextField.__\u003Cclinit\u003E();
   JTextField jtextField3 = new JTextField(DefaultChartEditor.localizationResources.getString("No_editor_implemented"));
   ((JComponent) jtextField3).setEnabled(false);
   ((Container) jpanel3).add((Component) jtextField3);
   JButton.__\u003Cclinit\u003E();
   JButton jbutton4 = new JButton(DefaultChartEditor.localizationResources.getString("Edit..."));
   ((AbstractButton) jbutton4).setEnabled(false);
   ((Container) jpanel3).add((Component) jbutton4);
   JPanel jpanel8 = jpanel3;
   JLabel.__\u003Cclinit\u003E();
   JLabel jlabel5 = new JLabel(DefaultChartEditor.localizationResources.getString("Series_Outline_Stroke"));
   ((Container) jpanel8).add((Component) jlabel5);
   JTextField.__\u003Cclinit\u003E();
   JTextField jtextField4 = new JTextField(DefaultChartEditor.localizationResources.getString("No_editor_implemented"));
   ((JComponent) jtextField4).setEnabled(false);
   ((Container) jpanel3).add((Component) jtextField4);
   JButton.__\u003Cclinit\u003E();
   JButton jbutton5 = new JButton(DefaultChartEditor.localizationResources.getString("Edit..."));
   ((AbstractButton) jbutton5).setEnabled(false);
   ((Container) jpanel3).add((Component) jbutton5);
   ((Container) jpanel2).add((Component) jpanel3, (object) "North");
   ((Container) jpanel1).add((Component) jpanel2, (object) "North");
   JPanel.__\u003Cclinit\u003E();
   JPanel jpanel9 = new JPanel((LayoutManager) new BorderLayout());
   TextTitle title = obj0.getTitle();
   Plot plot = obj0.getPlot();
   JTabbedPane jtabbedPane = new JTabbedPane();
   this.titleEditor = new DefaultTitleEditor((Title) title);
   ((JComponent) this.titleEditor).setBorder(BorderFactory.createEmptyBorder(2, 2, 2, 2));
   jtabbedPane.addTab(DefaultChartEditor.localizationResources.getString("Title"), (Component) this.titleEditor);
   this.plotEditor = new DefaultPlotEditor(plot);
   ((JComponent) this.plotEditor).setBorder(BorderFactory.createEmptyBorder(2, 2, 2, 2));
   jtabbedPane.addTab(DefaultChartEditor.localizationResources.getString("Plot"), (Component) this.plotEditor);
   jtabbedPane.add(DefaultChartEditor.localizationResources.getString("Other"), (Component) jpanel1);
   ((Container) jpanel9).add((Component) jtabbedPane, (object) "North");
   ((Container) this).add((Component) jpanel9);
 }
Esempio n. 25
0
 public override void init()
 {
   ((Container) this).setLayout((LayoutManager) new BorderLayout());
   this.m_data = new XYSeries((IComparable) this.getFieldName());
   this.m_dataset = (XYDataset) new XYSeriesCollection(this.m_data);
   this.m_chartPanel = (JPanel) new ChartPanel(ChartFactory.createXYLineChart(this.getFieldName(), "Time (units)", "Data", this.m_dataset, PlotOrientation.__\u003C\u003EVERTICAL, false, true, false));
   ((JComponent) this.m_chartPanel).setPreferredSize(new Dimension(400, 300));
   ((JComponent) this.m_chartPanel).setBackground(((Component) this).getBackground());
   ((Container) this).add((Component) this.m_chartPanel, (object) "Center");
   ((JComponent) this).revalidate();
   ((Component) this).repaint();
 }
Esempio n. 26
0
 public override void init()
 {
   this.add = new JButton("Add");
   ((AbstractButton) this.add).addActionListener((ActionListener) new RobotPreferences\u00241(this));
   this.remove = new JButton("Remove");
   ((AbstractButton) this.remove).addActionListener((ActionListener) new RobotPreferences\u00242(this));
   this.save = new JButton("Save");
   ((AbstractButton) this.save).addActionListener((ActionListener) new RobotPreferences\u00243(this));
   this.values = (Map) new LinkedHashMap();
   Robot.getPreferences().addTableListener((ITableListener) this, true);
   this.model = new RobotPreferences.PreferenceTableModel(this, (RobotPreferences\u00241) null);
   JTable.__\u003Cclinit\u003E();
   this.table = new JTable((TableModel) this.model);
   this.table.setSelectionMode(0);
   this.table.getTableHeader().setReorderingAllowed(false);
   JPanel jpanel1 = new JPanel();
   ((Container) jpanel1).setLayout((LayoutManager) new GridLayout(0, 2));
   ((Container) jpanel1).add((Component) this.add);
   ((Container) jpanel1).add((Component) this.remove);
   JPanel jpanel2 = new JPanel();
   ((Container) jpanel2).setLayout((LayoutManager) new BorderLayout());
   ((Container) jpanel2).add((Component) jpanel1, (object) "North");
   ((Container) jpanel2).add((Component) this.save, (object) "South");
   ((Container) this).setLayout((LayoutManager) new BorderLayout());
   JScrollPane.__\u003Cclinit\u003E();
   ((Container) this).add((Component) new JScrollPane((Component) this.table, 20, 31), (object) "Center");
   ((Container) this).add((Component) jpanel2, (object) "South");
   ((JComponent) this).setPreferredSize(new Dimension(300, 200));
 }
Esempio n. 27
0
 private JPanel constructSelectionPanel()
 {
   JPanel jpanel = new JPanel();
   int minimum = this.chosenDate.getMinimum(2);
   string[] strArray = new string[this.chosenDate.getMaximum(2) - minimum + 1];
   ByteCodeHelper.arraycopy_fast((Array) SerialDate.getMonths(), minimum, (Array) strArray, 0, strArray.Length);
   this.monthSelector = new JComboBox((object[]) strArray);
   this.monthSelector.addActionListener((ActionListener) this);
   this.monthSelector.setActionCommand("monthSelectionChanged");
   ((Container) jpanel).add((Component) this.monthSelector);
   JComboBox.__\u003Cclinit\u003E();
   this.yearSelector = new JComboBox((object[]) this.getYears(0));
   this.yearSelector.addActionListener((ActionListener) this);
   this.yearSelector.setActionCommand("yearSelectionChanged");
   ((Container) jpanel).add((Component) this.yearSelector);
   return jpanel;
 }
 private JPanel getCalendarPanel()
 {
   JPanel.__\u003Cclinit\u003E();
   JPanel jpanel = new JPanel((LayoutManager) new GridLayout(7, 7));
   ((Container) jpanel).add((Component) new JLabel("Sun", 0));
   ((Container) jpanel).add((Component) new JLabel("Mon", 0));
   ((Container) jpanel).add((Component) new JLabel("Tue", 0));
   ((Container) jpanel).add((Component) new JLabel("Wed", 0));
   ((Container) jpanel).add((Component) new JLabel("Thu", 0));
   ((Container) jpanel).add((Component) new JLabel("Fri", 0));
   ((Container) jpanel).add((Component) new JLabel("Sat", 0));
   this.buttons = new JButton[42];
   for (int index = 0; index < 42; ++index)
   {
     JButton jbutton = new JButton("");
     ((AbstractButton) jbutton).setMargin(new Insets(1, 1, 1, 1));
     ((Component) jbutton).setName(Integer.toString(index));
     ((JComponent) jbutton).setFont(this.dateFont);
     ((AbstractButton) jbutton).setFocusPainted(false);
     ((AbstractButton) jbutton).setActionCommand("dateButtonClicked");
     ((AbstractButton) jbutton).addActionListener((ActionListener) this);
     this.buttons[index] = jbutton;
     ((Container) jpanel).add((Component) jbutton);
   }
   return jpanel;
 }
Esempio n. 29
0
 private JPanel constructControlPanel()
 {
   JPanel jpanel = new JPanel();
   ((JComponent) jpanel).setBorder(BorderFactory.createEmptyBorder(2, 5, 2, 5));
   this.todayButton = new JButton("Today");
   ((AbstractButton) this.todayButton).addActionListener((ActionListener) this);
   ((AbstractButton) this.todayButton).setActionCommand("todayButtonClicked");
   ((Container) jpanel).add((Component) this.todayButton);
   return jpanel;
 }
Esempio n. 30
0
 public override void init()
 {
   Scheduler scheduler = this;
   CardLayout cardLayout1 = new CardLayout();
   CardLayout cardLayout2 = cardLayout1;
   this.cardLayout = cardLayout1;
   ((Container) this).setLayout((LayoutManager) cardLayout2);
   this.labels = (List) new ArrayList();
   this.buttons = (List) new ArrayList();
   this.commandPanel = new JPanel();
   ((Container) this.commandPanel).setLayout((LayoutManager) new GridLayout(0, 2));
   this.commandLabels = new JPanel();
   this.cancelButtons = new JPanel();
   ((Container) this.commandPanel).add((Component) this.commandLabels, (object) "West");
   ((Container) this.commandPanel).add((Component) this.cancelButtons, (object) "Center");
   this.commandLayout = new GridLayout(0, 1);
   this.cancelLayout = new GridLayout(0, 1);
   ((Container) this.commandLabels).setLayout((LayoutManager) this.commandLayout);
   ((Container) this.cancelButtons).setLayout((LayoutManager) this.cancelLayout);
   ((Container) this).add((Component) this.commandPanel, (object) "Commands");
   this.noCommands = new JLabel("No commands running.");
   this.noCommands.setHorizontalAlignment(0);
   ((Container) this).add((Component) this.noCommands, (object) "No Command");
   this.cardLayout.show((Container) this, "No Command");
   ((Component) this).repaint();
 }