Package javax.swing.table

Examples of javax.swing.table.DefaultTableModel.addRow()


        final DefaultTableModel model = new DefaultTableModel();
        model.addColumn("Node Id");
        model.addColumn("Node status");
        model.addColumn("Node Address");
        for (Node n : nodes) {
            model.addRow(new Object[]{n.getNodeId(), n.getNodeStatus(), n.getConfig().getRmiRegistryAddress()});
        }

        SwingUtilities.invokeLater(
                new Runnable() {
View Full Code Here


      dtm.addColumn("Duration of all combats");
      dtm.addColumn("Damage done");
      dtm.addColumn("DPS");
      for(Iterator<Participant> it=parser.getData().getDPSSortedParticipantList().iterator();it.hasNext();) {
        Participant p=it.next();
        dtm.addRow(new Object[]{p.getName(),p.getCombats(),p.getCombatDuration(),p.getDamageDone(),p.getDPS()});
      }
      dtm.fireTableDataChanged();
      allDPSO.revalidate();
      allDPSO.repaint();
     
View Full Code Here

      dtm.addColumn("Duration of all combats");
      dtm.addColumn("Healing done");
      dtm.addColumn("HPS");
      for(Iterator<Participant> it=parser.getData().getHPSSortedParticipantList().iterator();it.hasNext();) {
        Participant p=it.next();
        dtm.addRow(new Object[]{p.getName(),p.getCombats(),p.getCombatDuration(),p.getHealingDone(),p.getHPS()});
      }
      dtm.fireTableDataChanged();
      allHPS.revalidate();
      allHPS.repaint();
     
View Full Code Here

      dtm.addColumn("Duration of all combats");
      dtm.addColumn("Damage taken");
      dtm.addColumn("DTPS");
      for(Iterator<Participant> it=parser.getData().getDTPSSortedParticipantList().iterator();it.hasNext();) {
        Participant p=it.next();
        dtm.addRow(new Object[]{p.getName(),p.getCombats(),p.getCombatDuration(),p.getDamageTaken(),p.getDTPS()});
      }
      dtm.fireTableDataChanged();
      allDPST.revalidate();
      allDPST.repaint();
    }
View Full Code Here

      int marked=3;
      XYSeriesCollection dps_dataset=new XYSeriesCollection();
      for(Iterator<CombatParticipant> it=c.getSortedDPSParticipantList().iterator();it.hasNext();) {
        CombatParticipant cp=it.next();
        ((DefaultListModel)cParticipants.getModel()).addElement(cp.getName());
        dtm.addRow(new Object[]{(marked>0),cp.getName(),cp.getDpsRealTimeStats().getDamage(),cp.getDpsRealTimeStats().getDPS(c.getCombatDuration()),cp.getDpsRealTimeStats().getDPSe(),cp.getDpsRealTimeStats().getActivity(c.getCombatDuration())});
        if(marked>0)
          dps_dataset.addSeries(createDPSSeries(c,cp));
        marked--;
      }
      dpsoChart=ChartFactory.createXYLineChart("Real time DPS", "Seconds of combat", "DPS", dps_dataset, PlotOrientation.VERTICAL, true, true, false);
View Full Code Here

      htm.addColumn("Activity");
      marked=3;
      XYSeriesCollection hps_dataset=new XYSeriesCollection();
      for(Iterator<CombatParticipant> it=c.getSortedHPSParticipantList().iterator();it.hasNext();) {
        CombatParticipant cp=it.next();
        htm.addRow(new Object[]{(marked>0),cp.getName(),cp.getHpsRealTimeStats().getHealingDone(),cp.getHpsRealTimeStats().getOverhealingDone(),cp.getHpsRealTimeStats().getHPS(c.getCombatDuration()),cp.getHpsRealTimeStats().getHPSe(),cp.getHpsRealTimeStats().getActivity(c.getCombatDuration())});
        if(marked>0)
          hps_dataset.addSeries(createHPSSeries(c,cp));
        marked--;
      }
      hpsChart=ChartFactory.createXYLineChart("Real time HPS", "Seconds of combat", "HPS", hps_dataset, PlotOrientation.VERTICAL, true, true, false);
View Full Code Here

      dttm.addColumn("Activity");
      marked=3;
      XYSeriesCollection dtps_dataset=new XYSeriesCollection();
      for(Iterator<CombatParticipant> it=c.getSortedDTPSParticipantList().iterator();it.hasNext();) {
        CombatParticipant cp=it.next();
        dttm.addRow(new Object[]{(marked>0),cp.getName(),cp.getDtpsRealTimeStats().getDamage(),cp.getDtpsRealTimeStats().getDPS(c.getCombatDuration()),cp.getDtpsRealTimeStats().getDPSe(),cp.getDtpsRealTimeStats().getActivity(c.getCombatDuration())});
        if(marked>0)
          dtps_dataset.addSeries(createDTPSSeries(c,cp));
        marked--;
      }
      dpstChart=ChartFactory.createXYLineChart("Real time damage taken", "Seconds of combat", "DTPS", dtps_dataset, PlotOrientation.VERTICAL, true, true, false);
View Full Code Here

      dtm.addColumn("Duration of all combats");
      dtm.addColumn("Damage done");
      dtm.addColumn("DPS");
      for(Iterator<Participant> it=parser.getData().getDPSSortedParticipantList().iterator();it.hasNext();) {
        Participant p=it.next();
        dtm.addRow(new Object[]{p.getName(),p.getCombats(),p.getCombatDuration(),p.getDamageDone(),p.getDPS()});
      }
      dtm.fireTableDataChanged();
      allDPSO.revalidate();
      allDPSO.repaint();
     
View Full Code Here

      dtm.addColumn("Duration of all combats");
      dtm.addColumn("Healing done");
      dtm.addColumn("HPS");
      for(Iterator<Participant> it=parser.getData().getHPSSortedParticipantList().iterator();it.hasNext();) {
        Participant p=it.next();
        dtm.addRow(new Object[]{p.getName(),p.getCombats(),p.getCombatDuration(),p.getHealingDone(),p.getHPS()});
      }
      dtm.fireTableDataChanged();
      allHPS.revalidate();
      allHPS.repaint();
     
View Full Code Here

      dtm.addColumn("Duration of all combats");
      dtm.addColumn("Damage taken");
      dtm.addColumn("DTPS");
      for(Iterator<Participant> it=parser.getData().getDTPSSortedParticipantList().iterator();it.hasNext();) {
        Participant p=it.next();
        dtm.addRow(new Object[]{p.getName(),p.getCombats(),p.getCombatDuration(),p.getDamageTaken(),p.getDTPS()});
      }
      dtm.fireTableDataChanged();
      allDPST.revalidate();
      allDPST.repaint();
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.