Package games.stendhal.client.gui.stats

Examples of games.stendhal.client.gui.stats.StatsPanelController$MoneyChangeListener


   *
   * @return A component containing the components left of the game screen
   */
  private JComponent createLeftPanel() {
    minimap = new MapPanelController(client);
    final StatsPanelController stats = StatsPanelController.get();
    final BuddyPanelController buddies = new BuddyPanelController();
    ScrolledViewport buddyScroll = new ScrolledViewport((JComponent) buddies.getComponent());
    buddyScroll.setScrollingSpeed(SCROLLING_SPEED);
    final JComponent buddyPane = buddyScroll.getComponent();
    buddyPane.setBorder(null);

    final JComponent leftColumn = SBoxLayout.createContainer(SBoxLayout.VERTICAL);
    leftColumn.add(minimap.getComponent(), SBoxLayout.constraint(SLayout.EXPAND_X));
    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));
View Full Code Here


 
  public UserController() {
    pcs.addPropertyChangeListener("buddies", BuddyPanelController.get());
    pcs.addPropertyChangeListener("features", KarmaIndicator.get());

    StatsPanelController stats = StatsPanelController.get();
    stats.registerListeners(pcs);
  }
View Full Code Here

TOP

Related Classes of games.stendhal.client.gui.stats.StatsPanelController$MoneyChangeListener

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.