Search in sources :

Example 1 with DetailedCharacterStatsPanelController

use of delta.games.lotro.gui.character.stats.details.DetailedCharacterStatsPanelController in project lotro-companion by dmorcellet.

the class MainTestDetailedCharacterStatsPanelController method doIt.

private void doIt() {
    CharacterData meva = loadCharacter("meva");
    CharacterData giswald = loadCharacter("giswald");
    BasicStatsSet stats = giswald.getStats();
    BasicStatsSet reference = meva.getStats();
    DetailedCharacterStatsPanelController panelCtrl = new DetailedCharacterStatsPanelController(null);
    JPanel panel = panelCtrl.getPanel();
    panelCtrl.setStats(reference, stats);
    JFrame frame = new JFrame();
    frame.add(panel);
    frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
    frame.pack();
    frame.setVisible(true);
}
Also used : JPanel(javax.swing.JPanel) CharacterData(delta.games.lotro.character.CharacterData) JFrame(javax.swing.JFrame) BasicStatsSet(delta.games.lotro.character.stats.BasicStatsSet) DetailedCharacterStatsPanelController(delta.games.lotro.gui.character.stats.details.DetailedCharacterStatsPanelController)

Aggregations

CharacterData (delta.games.lotro.character.CharacterData)1 BasicStatsSet (delta.games.lotro.character.stats.BasicStatsSet)1 DetailedCharacterStatsPanelController (delta.games.lotro.gui.character.stats.details.DetailedCharacterStatsPanelController)1 JFrame (javax.swing.JFrame)1 JPanel (javax.swing.JPanel)1