コード例 #1
0
  private JPanel pracownikPanel() {
    FormLayout layout3 = new FormLayout("734", "15px, 485px");

    pracownikPanel = new JPanel(layout3);
    // pracownikPanel= new FormDebugPanel(layout3);
    CellConstraints cc = new CellConstraints();
    JLabel labell = new JLabel("Wyloguj");
    labell.addMouseListener(
        new MouseAdapter() {
          public void mousePressed(MouseEvent me) {
            CardLayout c1 = (CardLayout) (utworzPanel.getLayout());
            c1.show(utworzPanel, "card1");
            tx1.setText("");
            tx2.setText("");
          }
        });

    Color c = new Color(153, 180, 209);
    pracownikPanel.setBackground(c);
    tabbedPane2 = new JTabbedPane(JTabbedPane.LEFT);
    tabbedPane2.setBorder(null);
    tabbedPane2.addTab("Raport", new ImageIcon("images/spotkania.png"), new Raport());
    Font font = new Font("Arial", Font.BOLD, 15);
    tabbedPane2.setFont(font);

    tabbedPane2.setBackground(c);

    pracownikPanel.add(tabbedPane2, cc.xy(1, 2));
    pracownikPanel.add(labell, cc.xy(1, 1, CellConstraints.RIGHT, CellConstraints.TOP));
    return pracownikPanel;
  }
コード例 #2
0
 private JPanel kibicPanel() {
   FormLayout layout3 = new FormLayout("730", "15px, 485px");
   kibicPanel = new JPanel(layout3);
   // kibicPanel = new FormDebugPanel(layout3);
   CellConstraints cc = new CellConstraints();
   JLabel labell = new JLabel("Wyloguj");
   labell.addMouseListener(
       new MouseAdapter() {
         public void mousePressed(MouseEvent me) {
           CardLayout c1 = (CardLayout) (utworzPanel.getLayout());
           c1.show(utworzPanel, "card1");
           tx1.setText("");
           tx2.setText("");
         }
       });
   Color c = new Color(153, 180, 209);
   kibicPanel.setBackground(c);
   tabbedPane = new JTabbedPane(JTabbedPane.LEFT);
   tabbedPane.setBorder(null);
   tabbedPane.addTab("Spotkania", new ImageIcon("images/spotkania.png"), new Spotkania());
   Font font = new Font("Arial", Font.BOLD, 15);
   tabbedPane.setFont(font);
   tabbedPane.addTab("Król strzelców", new ImageIcon("images/krol.png"), new KrolStrzelcow());
   tabbedPane.addTab("Ranking drużyn", new ImageIcon("images/ranking.png"), new RankingDruzyn());
   // tabbedPane.addTab("")
   tabbedPane.setBackground(c);
   kibicPanel.add(tabbedPane, cc.xy(1, 2));
   kibicPanel.add(labell, cc.xy(1, 1, CellConstraints.RIGHT, CellConstraints.TOP));
   return kibicPanel;
 }
コード例 #3
0
ファイル: OpFooter.java プロジェクト: RobertoQ/LightZone
  OpFooter(OpControl control, List<LayerMode> layerModes) {
    super(BoxLayout.X_AXIS);

    layerControls = new LayerControls(control, layerModes, pcs);
    invertRegionSwitch = new InvertRegionCheckBox(control, pcs);
    colorControls = new ColorSelectionControls(control, pcs);

    Box blendBox = Box.createVerticalBox();
    blendBox.add(Box.createVerticalStrut(5));
    blendBox.add(layerControls);
    blendBox.add(invertRegionSwitch);
    blendBox.setBackground(LightZoneSkin.Colors.ToolPanesBackground);
    layerControls.setAlignmentX(Component.LEFT_ALIGNMENT);
    invertRegionSwitch.setAlignmentX(Component.LEFT_ALIGNMENT);

    tabPane = new JTabbedPane();
    tabPane.setFont(LightZoneSkin.fontSet.getSmallFont());
    tabPane.add(LOCALE.get("ToolSettingsTabName"), blendBox);
    tabPane.add(LOCALE.get("ColorSelectionTabName"), colorControls);

    tabPane.setIconAt(0, getThemeIcon(orangeScheme, true));
    tabPane.setIconAt(1, getThemeIcon(orangeScheme, false));

    add(tabPane, BorderLayout.NORTH);

    setBackground(LightZoneSkin.Colors.ToolPanesBackground);

    pcs.addPropertyChangeListener(this);
  }
コード例 #4
0
 TabPanel() {
   tabPane = new JTabbedPane();
   this.add(tabPane);
   tabPane.setBounds(0, 0, 631, 630);
   tabPane.addTab("会员信息", icon_info, membPane);
   tabPane.addTab("流水管理", icon_order, busiPane);
   tabPane.addTab("财务状态", icon_order, finaPane);
   tabPane.setFont(font);
 }
コード例 #5
0
ファイル: Editor.java プロジェクト: TouK/soapuii
  public Editor(T document) {
    super(new BorderLayout());
    this.document = document;

    setBackground(Color.LIGHT_GRAY);
    inputTabs = new JTabbedPane(JTabbedPane.LEFT, JTabbedPane.SCROLL_TAB_LAYOUT);
    inputTabs.setUI(new VerticalTabbedPaneUI());

    inputTabs.setFont(inputTabs.getFont().deriveFont(8));
    inputTabsChangeListener = new InputTabsChangeListener();
    inputTabs.addChangeListener(inputTabsChangeListener);

    inspectorPanel = JInspectorPanelFactory.build(inputTabs);
    add(inspectorPanel.getComponent(), BorderLayout.CENTER);
  }