Package games.stendhal.client.gui.layout

Examples of games.stendhal.client.gui.layout.SBoxLayout


  private final StatusIconPanel statusIcons;
  private final KarmaIndicator karmaIndicator;
 
  StatsPanel() {
    super();
    setLayout(new SBoxLayout(SBoxLayout.VERTICAL));
   
    statusIcons = new StatusIconPanel();
    add(statusIcons);
   
    karmaIndicator = new KarmaIndicator();
View Full Code Here


  final JLabel eating, choking, poison;
  final AnimatedIcon away, grumpy;
 
  protected StatusIconPanel() {
    setLayout(new SBoxLayout(SBoxLayout.HORIZONTAL));
    setOpaque(false);
   
    eating = new JLabel(eatingIcon);
    add(eating);
    eating.setVisible(false);
View Full Code Here

   
    /**
     * Create a new page.
     */
    public Page() {
      this.setLayout(new SBoxLayout(SBoxLayout.VERTICAL));
      JComponent panels = SBoxLayout.createContainer(SBoxLayout.HORIZONTAL, SBoxLayout.COMMON_PADDING);
      add(panels, SBoxLayout.constraint(SLayout.EXPAND_X,
          SLayout.EXPAND_Y));
     
      indexArea = new PrettyEditorPane();
View Full Code Here

    //
    // contentPane
    //
    int padding = SBoxLayout.COMMON_PADDING;
    contentPane = (JPanel) this.getContentPane();
    contentPane.setLayout(new SBoxLayout(SBoxLayout.VERTICAL, padding));
    contentPane.setBorder(BorderFactory.createEmptyBorder(padding, padding, padding, padding));
   
    JComponent grid = new JComponent() {private static final long serialVersionUID = 1L;};
    grid.setLayout(new GridLayout(6, 2, padding, padding));
    contentPane.add(grid, SBoxLayout.constraint(SLayout.EXPAND_X, SLayout.EXPAND_Y));
View Full Code Here

        onClose();
      }
    });
   
    int pad = SBoxLayout.COMMON_PADDING;
    setLayout(new SBoxLayout(SBoxLayout.VERTICAL, pad));
    Container content = getContentPane();
    if (content instanceof JComponent) {
      ((JComponent) content).setBorder(BorderFactory.createEmptyBorder(pad, pad, pad, pad));
    }
   
View Full Code Here

    leftColumn.add(stats.getComponent(), SBoxLayout.constraint(SLayout.EXPAND_X));

    // Add a background for the tabs. The column itself has none.
    JPanel tabBackground = new JPanel();
    tabBackground.setBorder(null);
    tabBackground.setLayout(new SBoxLayout(SBoxLayout.VERTICAL));
    JTabbedPane tabs = new JTabbedPane(JTabbedPane.BOTTOM);
    // Adjust the Tab Width, if we can. The default is pretty if there's
    // space, but in the column there are no pixels to waste.
    TabbedPaneUI ui = tabs.getUI();
    if (ui instanceof StyledTabbedPaneUI) {
View Full Code Here

   */
  public SettingsDialog(Frame parent) {
    super(parent, "Settings");
    setDefaultCloseOperation(DISPOSE_ON_CLOSE);
    int pad = SBoxLayout.COMMON_PADDING;
    setLayout(new SBoxLayout(SBoxLayout.VERTICAL, pad));
    tabs = new JTabbedPane();
    add(tabs);
    tabs.add("General", new GeneralSettings().getComponent());
    tabs.add("Sound", new SoundSettings().getComponent());
    setResizable(false);
View Full Code Here

  /**
   * Creates a new instance of SettingsPanel.
   */
  public SettingsPanel() {
    setLayout(new SBoxLayout(SBoxLayout.HORIZONTAL, SPACING));
    setBorder(BorderFactory.createEmptyBorder(SPACING, SPACING, SPACING, SPACING));
  }
View Full Code Here

  /**
   * Create a ContainerPanel.
   */
  public ContainerPanel() {
    panel = new JPanel();
    panel.setLayout(new SBoxLayout(SBoxLayout.VERTICAL));
    setViewportView(panel);
    setBorder(null);
  }
View Full Code Here

  public InternalWindow(String title) {
    setLayout(new BorderLayout());
   
    titleBar = new TitleBar();
    add(titleBar, BorderLayout.NORTH);
    titleBar.setLayout(new SBoxLayout(SBoxLayout.HORIZONTAL, TITLEBAR_PADDING));
    titleLabel = new JLabel();
    setTitle(title);
    // Squeeze the label if there's not enough space
    titleLabel.setMinimumSize(new Dimension(0, 0));
    titleBar.add(titleLabel);
View Full Code Here

TOP

Related Classes of games.stendhal.client.gui.layout.SBoxLayout

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.