Package net.laubenberger.bogatyr.view.swing.pane

Examples of net.laubenberger.bogatyr.view.swing.pane.PaneScroll


    gbc.fill = GridBagConstraints.BOTH;
    gbc.weighty = 1.0D;

    panelContent.add(new Panel(), gbc);

    final JScrollPane scroll = new PaneScroll(panelContent);

    final Group group = new Group(new Insets(0, 0, 0, 10), new Button(actionGo), new Button(actionAbort));

    panel.add(scroll, BorderLayout.CENTER);
    panel.add(group, BorderLayout.SOUTH);
View Full Code Here


      public boolean isCellEditable(final int rowIndex, final int colIndex) {
        return false;
      }
    };
   
    final JScrollPane scrollApplication = new PaneScroll(taApplication);
    tab.addTab(localizer.getValue(HelperResource.RES_LABEL_APPLICATION), view.getController().getScaledIcon(Icon.LOGO), scrollApplication, localizer.getTooltip(HelperResource.RES_LABEL_APPLICATION));

   
   
    final JTable taJava = new Table(HelperMap.toArray(HelperEnvironment.getReportJava()), new String[]{localizer.getValue(HelperResource.RES_LABEL_KEY), localizer.getValue(HelperResource.RES_LABEL_VALUE)}) {
      private static final long serialVersionUID = 5956530506987984746L;

      @Override
      public boolean isCellEditable(final int rowIndex, final int colIndex) {
        return false;
      }
    };

    final JScrollPane scrollJava = new PaneScroll(taJava);
    tab.addTab(localizer.getValue(HelperResource.RES_LABEL_JAVA), view.getController().getScaledIcon(Icon.JAVA), scrollJava, localizer.getTooltip(HelperResource.RES_LABEL_JAVA));

    final JTable taOS = new Table(HelperMap.toArray(HelperEnvironment.getReportOS()), new String[]{localizer.getValue(HelperResource.RES_LABEL_KEY), localizer.getValue(HelperResource.RES_LABEL_VALUE)}) {
      private static final long serialVersionUID = 5956530506987984746L;

      @Override
      public boolean isCellEditable(final int rowIndex, final int colIndex) {
        return false;
      }
    };
   
    final JScrollPane scrollOS = new PaneScroll(taOS);
    final ImageIcon iconOS;
    if (Platform.MAC_OSX == HelperEnvironment.getPlatform()) {
      iconOS = view.getController().getScaledIcon(Icon.MAC);
    } else
      iconOS = Platform.WINDOWS == HelperEnvironment.getPlatform() ? view.getController().getScaledIcon(Icon.WINDOWS) : view.getController().getScaledIcon(Icon.LINUX);
   
    tab.addTab(localizer.getValue(HelperResource.RES_LABEL_OS), iconOS, scrollOS, localizer.getTooltip(HelperResource.RES_LABEL_OS));

   
   
    final JTable taSystem = new Table(HelperMap.toArray(HelperEnvironment.getReportSystem()), new String[]{localizer.getValue(HelperResource.RES_LABEL_KEY), localizer.getValue(HelperResource.RES_LABEL_VALUE)}) {
      private static final long serialVersionUID = -8531838594552715361L;

      @Override
      public boolean isCellEditable(final int rowIndex, final int colIndex) {
        return false;
      }
    };
   
    final JScrollPane scrollSystem = new PaneScroll(taSystem);
    tab.addTab(localizer.getValue(HelperResource.RES_LABEL_SYSTEM), view.getController().getScaledIcon(Icon.SYSTEM), scrollSystem, localizer.getTooltip(HelperResource.RES_LABEL_SYSTEM));


    final JTable taUser = new Table(HelperMap.toArray(HelperEnvironment.getReportUser()), new String[]{localizer.getValue(HelperResource.RES_LABEL_KEY), localizer.getValue(HelperResource.RES_LABEL_VALUE)}){
      private static final long serialVersionUID = 1327561378424760584L;

      @Override
      public boolean isCellEditable(final int rowIndex, final int colIndex) {
        return false;
      }
    };

//    final JTextArea taUser = new TextArea();
//    taUser.setEditable(false);
//    taUser.append(HelperEnvironment.getReportUser());
    final JScrollPane scrollUser = new PaneScroll(taUser);
//    taUser.setCaretPosition(0);
    tab.addTab(localizer.getValue(HelperResource.RES_LABEL_USER), view.getController().getScaledIcon(Icon.USER), scrollUser, localizer.getTooltip(HelperResource.RES_LABEL_USER));

    panel.add(tab, BorderLayout.CENTER);
   
View Full Code Here

    gbc.fill = GridBagConstraints.BOTH;
    gbc.weighty = 1.0D;

    panelContent.add(new Panel(), gbc);

    final JScrollPane scroll = new PaneScroll(panelContent);

    final Group group = new Group(new Insets(0, 0, 0, 10), new Button(actionGo), new Button(actionAbort));

    panel.add(scroll, BorderLayout.CENTER);
    panel.add(group, BorderLayout.SOUTH);
View Full Code Here

    };

    // final JTextArea ta = new TextArea();
    // ta.setEditable(false);
    // ta.append(entries);
    final JScrollPane scroll = new PaneScroll(table);

    panel.add(scroll, BorderLayout.CENTER);

    final Group group = new Group(new Insets(0, 0, 0, 0), new Button(new ActionClose()));
    panel.add(group, BorderLayout.SOUTH);
View Full Code Here

    // final JTextArea ta = new TextArea();
    // ta.setEditable(false);
    // ta.setWrapStyleWord(false);
    // ta.append(entries);
    final JScrollPane scroll = new PaneScroll(table);

    panel.add(scroll, BorderLayout.CENTER);

    final Group group = new Group(new Insets(0, 0, 0, 0), new Button(new ActionClose()));
    panel.add(group, BorderLayout.SOUTH);
View Full Code Here

    panelCenter.add(new JSpinner());

    panelCenter.add(new Label("JComboBox")); //$NON-NLS-1$
    panelCenter.add(new JComboBox(new String[] { "Value1", "Value2", "Value3" })); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$

    panel.add(new PaneScroll(panelCenter), BorderLayout.CENTER);

    final Group group = new Group(new Insets(0, 0, 0, 0), new Button(new ActionClose()));
    panel.add(group, BorderLayout.SOUTH);

    getContentPane().add(panel);
View Full Code Here

    for (final Entry<Worker, Task> pair : workers.entrySet()) {
      containerTask.add(createTaskPane(pair.getValue()));
    }

    getContentPane().add(new PaneScroll(containerTask));
    pack();
  }
View Full Code Here

TOP

Related Classes of net.laubenberger.bogatyr.view.swing.pane.PaneScroll

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.