Package com.kolakcc.loljclient.view.ui

Examples of com.kolakcc.loljclient.view.ui.LocalizedJLabel


   
    JPanel bottomPanel = new JPanel(new BorderLayout());
    JPanel formPanel = new JPanel(new GridLayout(6, 1));
   
    JPanel regionPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));
    regionPanel.add(new LocalizedJLabel(loginViewMessages, "region"));
    formPanel.add(regionPanel);
   
    this.regionField = new JComboBox<String>();
    formPanel.add(regionField);

    JPanel usernamePanel = new JPanel(new FlowLayout(FlowLayout.LEFT));
    usernamePanel.add(new LocalizedJLabel(loginViewMessages, "username"));
    rememberUsername = new LocalizedJCheckBox(loginViewMessages, "remember");
    usernamePanel.add(rememberUsername);
    formPanel.add(usernamePanel);
   
    this.usernameField = new JTextField(20);
    formPanel.add(usernameField);

    JPanel passwordPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));
    passwordPanel.add(new LocalizedJLabel(loginViewMessages, "password"));
    rememberPassword = new LocalizedJCheckBox(loginViewMessages, "remember");
    passwordPanel.add(rememberPassword);
    formPanel.add(passwordPanel);
   
    this.passwordField = new JPasswordField(20);
View Full Code Here


    this.championIcon = new ChampionBox();
    topPanel.add(championIcon,BorderLayout.WEST);
   
    JPanel nameTitlePanel = new JPanel(new BorderLayout());

    this.championName = new LocalizedJLabel();
    this.championName.setAlignmentX(JLabel.CENTER);
    this.championName.setFont(FontUtils.emSize(championName.getFont(), Font.BOLD, 2));
    nameTitlePanel.add(this.championName, BorderLayout.NORTH);

    this.championTitle = new LocalizedJLabel();
    this.championTitle.setAlignmentX(JLabel.CENTER);
    nameTitlePanel.add(this.championTitle, BorderLayout.CENTER);

    topPanel.add(nameTitlePanel, BorderLayout.CENTER);
    this.add(topPanel, BorderLayout.NORTH);

    JTabbedPane tabbedPane = new JTabbedPane();

    this.skinsPanel = new JPanel(new WrapLayout());
    JScrollPane skinScroller = new VerticalJScrollPane(this.skinsPanel);
    skinScroller.getVerticalScrollBar().setUnitIncrement(16);
    tabbedPane.addTab(championDetailedViewMessages.getString("skins"), skinScroller);
   
   
    this.statsPanel = new JEditorPane();
    this.statsPanel.setContentType("text/html");
    this.statsPanel.setEditable(false);
   
    JScrollPane statsScroller = new VerticalJScrollPane(this.statsPanel);
    statsScroller.getVerticalScrollBar().setUnitIncrement(16);
    tabbedPane.addTab(championDetailedViewMessages.getString("Stats"), statsScroller);

    this.loreTabPanel = new JEditorPane();
    this.loreTabPanel.setContentType("text/html");

    this.loreTabPanel.setEditable(false);

    JScrollPane loreScroller = new VerticalJScrollPane(this.loreTabPanel);
    loreScroller.getVerticalScrollBar().setUnitIncrement(16);

    tabbedPane.addTab(championDetailedViewMessages.getString("lore"), loreScroller);

    JPanel videoPanel = new JPanel();
    this.selectionAudioButton = new LocalizedJButton(championDetailedViewMessages, "selection audio");
    videoPanel.add(this.selectionAudioButton);

    JScrollPane scrollerVideo = new VerticalJScrollPane(videoPanel);
    skinScroller.getVerticalScrollBar().setUnitIncrement(16);
    tabbedPane.addTab(championDetailedViewMessages.getString("audio_video"), scrollerVideo);

    JPanel tipsTabBox = new JPanel();
    tipsTabBox.setLayout(new BoxLayout(tipsTabBox, BoxLayout.Y_AXIS));

    JPanel playingAsPanel = new JPanel();
    playingAsPanel
        .setLayout(new BoxLayout(playingAsPanel, BoxLayout.Y_AXIS));

    tipsPlayingTitle = new LocalizedJLabel();
    playingAsPanel.add(this.tipsPlayingTitle);

    this.tipsPlayingTips = new LocalizedJLabel();
    playingAsPanel.add(this.tipsPlayingTips);

    tipsTabBox.add(playingAsPanel);

    JPanel playingAgainstPanel = new JPanel();
    playingAgainstPanel.setLayout(new BoxLayout(playingAgainstPanel,
        BoxLayout.Y_AXIS));

    this.tipsPlayingAgainstTitle = new LocalizedJLabel();
    this.tipsPlayingAgainstTitle.setAlignmentX(JLabel.CENTER);
    playingAgainstPanel.add(this.tipsPlayingAgainstTitle);

    this.tipsPlayingAgainstTips = new LocalizedJLabel();
    playingAgainstPanel.add(this.tipsPlayingAgainstTips);

    tipsTabBox.add(playingAgainstPanel);

    tabbedPane.addTab(championDetailedViewMessages.getString("tips"), tipsTabBox);
View Full Code Here

    setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
    setLayout(new BorderLayout());
    setTitle("Profile");
   
    JPanel topPanel = new JPanel(new BorderLayout());
    summonerNameLabel = new LocalizedJLabel();
    summonerNameLabel.setFont(FontUtils.emSize(summonerNameLabel.getFont(), 2.0));
    topPanel.add(summonerNameLabel,BorderLayout.WEST);
   
    JPanel searchPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT));
    searchField = new JTextField(15);
    searchPanel.add(searchField);
    searchButton = new LocalizedJButton(profileViewMessages, "search");
    searchPanel.add(searchButton);
    topPanel.add(searchPanel,BorderLayout.EAST);
   
    add(topPanel,BorderLayout.NORTH);
   
    JTabbedPane tabPane = new JTabbedPane();
    JPanel recentGamesTabPanel = new JPanel(new BorderLayout());

    JPanel westPanel = new JPanel(new BorderLayout());
    JPanel recentMatchesPanel = new JPanel(new BorderLayout());
    recentMatchesList = new JList<RecentGame>();
    recentMatchesList.setCellRenderer(new RecentGameListItemRenderer());
    DefaultListModel<RecentGame> temp = new DefaultListModel<RecentGame>();
    recentMatchesList.setModel(temp);
   
    gamesNumber = new LocalizedJLabel();
    westPanel.add(gamesNumber, BorderLayout.NORTH);
    westPanel.add(new JScrollPane(recentMatchesList), BorderLayout.CENTER);
    recentMatchesPanel.add(westPanel, BorderLayout.WEST);
   
    gameInfo = new JPanel(new BorderLayout());
    JPanel topGamePanel = new JPanel(new BorderLayout());
   
    JPanel championAndName = new JPanel(new FlowLayout());
    currentGameChampion = new ChampionBox();
    championAndName.add(currentGameChampion);
    currentGameChampionName = new LocalizedJLabel();
    championAndName.add(currentGameChampionName);
    topGamePanel.add(championAndName, BorderLayout.NORTH);
   
    itemsPanel = new JPanel(new FlowLayout());
    item1Label = new ItemImageLabel(); itemsPanel.add(item1Label);
View Full Code Here

   
    statsPanel.removeAll();
    for (Map.Entry<String, Integer> entry : game.getStatistics().entrySet()) {
      String key = entry.getKey();
      if (key.startsWith("ITEM") || key.startsWith("WIN") || key.startsWith("LOSE")) continue;
      statsPanel.add(new LocalizedJLabel(statsMessages, entry.getKey()));
      statsPanel.add(new JLabel(entry.getValue().toString()));
    }
    try { currentGameChampion.setChampion(Champion.getChampionFromID(game.getChampionID())); }
    catch (Exception e) { e.printStackTrace(); }
    currentGameChampionName.setText(Champion.getChampionFromID(game.getChampionID()).getDisplayName());
View Full Code Here

    this.setTitle("lol-jclient");
    this.setSize(800, 600);

    JPanel topPanel = new JPanel();

    topPanel.add(new LocalizedJLabel(mainViewMessages, "ip"));
    this.IPBalance = new LocalizedJLabel();
    topPanel.add(this.IPBalance);

    topPanel.add(new LocalizedJLabel(mainViewMessages, "rp"));
    this.RPBalance = new LocalizedJLabel();
    topPanel.add(this.RPBalance);

    this.customGameButton = new LocalizedJButton(mainViewMessages, "custom games");
    topPanel.add(this.customGameButton);
View Full Code Here

    this.setLayout(new BorderLayout());
    JSplitPane splitter = new JSplitPane();
    splitter.setResizeWeight(0.5);

    JPanel topPanel = new JPanel(new BorderLayout());
    topPanel.add(new LocalizedJLabel(friendsListViewMessages, "online"), BorderLayout.NORTH);
    this.onlineList = new JList<RosterEntry>();
    this.onlineList.setCellRenderer(new FriendListItemRenderer());
    topPanel.add(new JScrollPane(this.onlineList), BorderLayout.CENTER);

    JPanel bottomPanel = new JPanel(new BorderLayout());
    bottomPanel.add(new LocalizedJLabel(friendsListViewMessages, "offline"), BorderLayout.NORTH);
    this.offlineList = new JList<RosterEntry>();
    this.offlineList.setCellRenderer(new FriendListItemRenderer());
    bottomPanel.add(new JScrollPane(this.offlineList), BorderLayout.CENTER);

    splitter.setTopComponent(topPanel);
View Full Code Here

TOP

Related Classes of com.kolakcc.loljclient.view.ui.LocalizedJLabel

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.