Java tutorial
package com.craftcosta.jailrules.rpgcraftcosta; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Dimension; import javax.swing.JOptionPane; import org.jfree.chart.ChartFactory; import org.jfree.chart.ChartPanel; import org.jfree.chart.JFreeChart; import org.jfree.data.xy.XYDataset; import org.jfree.data.xy.XYSeries; import org.jfree.data.xy.XYSeriesCollection; /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * * @author Jail */ public class GUI extends javax.swing.JFrame { /** * Creates new form RPGCraftCosta */ public GUI() { initComponents(); } /** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { buttonGroup2 = new javax.swing.ButtonGroup(); jTabbedPane1 = new javax.swing.JTabbedPane(); inicioPanel = new javax.swing.JPanel(); jPanel2 = new javax.swing.JPanel(); ClassManager = new javax.swing.JPanel(); jComboBox1 = new javax.swing.JComboBox(); createNewClassbtn = new javax.swing.JButton(); editClassbtn = new javax.swing.JButton(); deleteClassbtn = new javax.swing.JButton(); classEditorPanel = new javax.swing.JPanel(); classNameLbl = new javax.swing.JLabel(); BaseClassPanel = new javax.swing.JPanel(); baseHealthLbl = new javax.swing.JLabel(); baseManaLbl = new javax.swing.JLabel(); basePhyAttLbl = new javax.swing.JLabel(); basePhyDefLbl = new javax.swing.JLabel(); basePhyHRLbl = new javax.swing.JLabel(); basePhyEvaLbl = new javax.swing.JLabel(); baseMagAttLbl = new javax.swing.JLabel(); baseMagDefLbl = new javax.swing.JLabel(); baseMagHRLbl = new javax.swing.JLabel(); baseMagEvaLbl = new javax.swing.JLabel(); baseHealthTxt = new javax.swing.JTextField(); baseManaTxt = new javax.swing.JTextField(); basePhyAttTxt = new javax.swing.JTextField(); basePhyDefTxt = new javax.swing.JTextField(); basePhyHRTxt = new javax.swing.JTextField(); basePhyEvaTxt = new javax.swing.JTextField(); baseMagAttTxt = new javax.swing.JTextField(); baseMagDefTxt = new javax.swing.JTextField(); baseMagHRTxt = new javax.swing.JTextField(); baseMagEvaTxt = new javax.swing.JTextField(); baseCritLbl = new javax.swing.JLabel(); baseDeadLbl = new javax.swing.JLabel(); baseCritTxt = new javax.swing.JTextField(); baseDeadTxt = new javax.swing.JTextField(); classNameTxt = new javax.swing.JTextField(); enabledClassCheck = new javax.swing.JCheckBox(); saveNewClass_btn = new javax.swing.JButton(); resetValues_btn = new javax.swing.JButton(); LvlUpPanel = new javax.swing.JPanel(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); jLabel7 = new javax.swing.JLabel(); jLabel8 = new javax.swing.JLabel(); jLabel9 = new javax.swing.JLabel(); jLabel10 = new javax.swing.JLabel(); jLabel11 = new javax.swing.JLabel(); jLabel12 = new javax.swing.JLabel(); jLabel13 = new javax.swing.JLabel(); jTextField2 = new javax.swing.JTextField(); jTextField3 = new javax.swing.JTextField(); jTextField4 = new javax.swing.JTextField(); jTextField5 = new javax.swing.JTextField(); jTextField6 = new javax.swing.JTextField(); jTextField7 = new javax.swing.JTextField(); jTextField8 = new javax.swing.JTextField(); jTextField9 = new javax.swing.JTextField(); jTextField10 = new javax.swing.JTextField(); jTextField11 = new javax.swing.JTextField(); jTextField12 = new javax.swing.JTextField(); jTextField13 = new javax.swing.JTextField(); SkillPointsPanel = new javax.swing.JPanel(); jPanel19 = new javax.swing.JPanel(); jLabel26 = new javax.swing.JLabel(); jLabel27 = new javax.swing.JLabel(); jTextField26 = new javax.swing.JTextField(); jTextField27 = new javax.swing.JTextField(); jPanel20 = new javax.swing.JPanel(); jLabel28 = new javax.swing.JLabel(); jLabel29 = new javax.swing.JLabel(); jTextField28 = new javax.swing.JTextField(); jTextField29 = new javax.swing.JTextField(); jPanel21 = new javax.swing.JPanel(); jLabel30 = new javax.swing.JLabel(); jLabel31 = new javax.swing.JLabel(); jTextField30 = new javax.swing.JTextField(); jTextField31 = new javax.swing.JTextField(); jPanel22 = new javax.swing.JPanel(); jLabel32 = new javax.swing.JLabel(); jLabel33 = new javax.swing.JLabel(); jTextField32 = new javax.swing.JTextField(); jTextField33 = new javax.swing.JTextField(); jLabel34 = new javax.swing.JLabel(); jLabel35 = new javax.swing.JLabel(); jPanel23 = new javax.swing.JPanel(); jLabel36 = new javax.swing.JLabel(); jLabel37 = new javax.swing.JLabel(); jLabel38 = new javax.swing.JLabel(); jLabel39 = new javax.swing.JLabel(); validate_function = new javax.swing.JButton(); save_validated_function = new javax.swing.JButton(); jLabel40 = new javax.swing.JLabel(); jLabel41 = new javax.swing.JLabel(); draw_graph_btn = new javax.swing.JButton(); graph_panel = new javax.swing.JPanel(); jLabel42 = new javax.swing.JLabel(); max_level = new javax.swing.JFormattedTextField(); value_c = new javax.swing.JFormattedTextField(); value_b = new javax.swing.JFormattedTextField(); value_a = new javax.swing.JFormattedTextField(); jPanel5 = new javax.swing.JPanel(); jSeparator1 = new javax.swing.JSeparator(); jPanel3 = new javax.swing.JPanel(); jComboBox2 = new javax.swing.JComboBox(); jButton1 = new javax.swing.JButton(); jButton3 = new javax.swing.JButton(); jButton6 = new javax.swing.JButton(); classEditorPanel1 = new javax.swing.JPanel(); classNameLbl1 = new javax.swing.JLabel(); BaseClassPanel1 = new javax.swing.JPanel(); baseHealthLbl1 = new javax.swing.JLabel(); baseManaLbl1 = new javax.swing.JLabel(); basePhyAttLbl1 = new javax.swing.JLabel(); basePhyDefLbl1 = new javax.swing.JLabel(); basePhyHRLbl1 = new javax.swing.JLabel(); basePhyEvaLbl1 = new javax.swing.JLabel(); baseHealthTxt1 = new javax.swing.JTextField(); baseManaTxt1 = new javax.swing.JTextField(); basePhyAttTxt1 = new javax.swing.JTextField(); basePhyDefTxt1 = new javax.swing.JTextField(); basePhyHRTxt1 = new javax.swing.JTextField(); basePhyEvaTxt1 = new javax.swing.JTextField(); classNameTxt1 = new javax.swing.JTextField(); saveNewClass_btn1 = new javax.swing.JButton(); resetValues_btn1 = new javax.swing.JButton(); LvlUpPanel1 = new javax.swing.JPanel(); jLabel14 = new javax.swing.JLabel(); jLabel15 = new javax.swing.JLabel(); jLabel16 = new javax.swing.JLabel(); jLabel17 = new javax.swing.JLabel(); jLabel18 = new javax.swing.JLabel(); jLabel19 = new javax.swing.JLabel(); jLabel20 = new javax.swing.JLabel(); jLabel21 = new javax.swing.JLabel(); jLabel22 = new javax.swing.JLabel(); jLabel23 = new javax.swing.JLabel(); jLabel24 = new javax.swing.JLabel(); jLabel25 = new javax.swing.JLabel(); jTextField14 = new javax.swing.JTextField(); jTextField15 = new javax.swing.JTextField(); jTextField16 = new javax.swing.JTextField(); jTextField17 = new javax.swing.JTextField(); jTextField18 = new javax.swing.JTextField(); jTextField19 = new javax.swing.JTextField(); jTextField20 = new javax.swing.JTextField(); jTextField21 = new javax.swing.JTextField(); jTextField22 = new javax.swing.JTextField(); jTextField23 = new javax.swing.JTextField(); jTextField24 = new javax.swing.JTextField(); jTextField25 = new javax.swing.JTextField(); SkillPointsPanel1 = new javax.swing.JPanel(); jPanel24 = new javax.swing.JPanel(); jLabel43 = new javax.swing.JLabel(); jLabel44 = new javax.swing.JLabel(); jTextField34 = new javax.swing.JTextField(); jTextField35 = new javax.swing.JTextField(); jPanel25 = new javax.swing.JPanel(); jLabel45 = new javax.swing.JLabel(); jLabel46 = new javax.swing.JLabel(); jTextField36 = new javax.swing.JTextField(); jTextField37 = new javax.swing.JTextField(); jPanel26 = new javax.swing.JPanel(); jLabel47 = new javax.swing.JLabel(); jLabel48 = new javax.swing.JLabel(); jTextField38 = new javax.swing.JTextField(); jTextField39 = new javax.swing.JTextField(); jPanel27 = new javax.swing.JPanel(); jLabel49 = new javax.swing.JLabel(); jLabel50 = new javax.swing.JLabel(); jTextField40 = new javax.swing.JTextField(); jTextField41 = new javax.swing.JTextField(); classNameLbl2 = new javax.swing.JLabel(); classNameTxt2 = new javax.swing.JTextField(); classNameLbl3 = new javax.swing.JLabel(); jComboBox3 = new javax.swing.JComboBox(); BaseClassPanel2 = new javax.swing.JPanel(); jPanel4 = new javax.swing.JPanel(); jPanel6 = new javax.swing.JPanel(); jPanel7 = new javax.swing.JPanel(); jPanel8 = new javax.swing.JPanel(); jPanel9 = new javax.swing.JPanel(); jPanel11 = new javax.swing.JPanel(); jPanel1 = new javax.swing.JPanel(); jButton2 = new javax.swing.JButton(); jButton4 = new javax.swing.JButton(); jButton5 = new javax.swing.JButton(); jTabbedPane3 = new javax.swing.JTabbedPane(); jPanel12 = new javax.swing.JPanel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setPreferredSize(new java.awt.Dimension(800, 600)); jTabbedPane1.setTabLayoutPolicy(javax.swing.JTabbedPane.SCROLL_TAB_LAYOUT); jTabbedPane1.setTabPlacement(javax.swing.JTabbedPane.LEFT); jTabbedPane1.setToolTipText(""); jTabbedPane1.setAutoscrolls(true); jTabbedPane1.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR)); inicioPanel.setPreferredSize(new java.awt.Dimension(800, 600)); javax.swing.GroupLayout inicioPanelLayout = new javax.swing.GroupLayout(inicioPanel); inicioPanel.setLayout(inicioPanelLayout); inicioPanelLayout.setHorizontalGroup(inicioPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 681, Short.MAX_VALUE)); inicioPanelLayout.setVerticalGroup(inicioPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 595, Short.MAX_VALUE)); jTabbedPane1.addTab("inicio", inicioPanel); jPanel2.setPreferredSize(new java.awt.Dimension(800, 600)); javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup(jPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 681, Short.MAX_VALUE)); jPanel2Layout.setVerticalGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 595, Short.MAX_VALUE)); jTabbedPane1.addTab("general", jPanel2); ClassManager.setAutoscrolls(true); ClassManager.setName(""); // NOI18N ClassManager.setPreferredSize(new java.awt.Dimension(800, 600)); jComboBox1.setModel( new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" })); createNewClassbtn.setText("Add"); editClassbtn.setText("Edit"); editClassbtn.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { editClassbtnActionPerformed(evt); } }); deleteClassbtn.setText("Delete"); classEditorPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Class Editor")); classEditorPanel.setName("Class Editor"); // NOI18N classNameLbl.setText("Class name"); BaseClassPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Class Base Attributes")); baseHealthLbl.setText("Base Health"); baseManaLbl.setText("Base Mana"); basePhyAttLbl.setText("Base Physical Attack"); basePhyDefLbl.setText("Base Physical Defense"); basePhyHRLbl.setText("Base Physical Hit Rate"); basePhyEvaLbl.setText("Base Physical Evasion"); baseMagAttLbl.setText("Base Magical Attack"); baseMagDefLbl.setText("Base Magical Defense"); baseMagHRLbl.setText("Base Magical Hit Rate"); baseMagEvaLbl.setText("Base Magical Evasion"); baseHealthTxt.setText("jTextField14"); baseManaTxt.setText("jTextField15"); basePhyAttTxt.setText("jTextField16"); basePhyDefTxt.setText("jTextField17"); basePhyHRTxt.setText("jTextField18"); basePhyEvaTxt.setText("jTextField19"); baseMagAttTxt.setText("jTextField20"); baseMagDefTxt.setText("jTextField21"); baseMagHRTxt.setText("jTextField22"); baseMagEvaTxt.setText("jTextField23"); baseCritLbl.setText("Base Critical"); baseDeadLbl.setText("Base Deadly"); baseCritTxt.setText("jTextField24"); baseDeadTxt.setText("jTextField25"); javax.swing.GroupLayout BaseClassPanelLayout = new javax.swing.GroupLayout(BaseClassPanel); BaseClassPanel.setLayout(BaseClassPanelLayout); BaseClassPanelLayout.setHorizontalGroup( BaseClassPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(BaseClassPanelLayout.createSequentialGroup().addGroup(BaseClassPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(baseHealthLbl).addComponent(baseManaLbl).addComponent(basePhyAttLbl) .addComponent(basePhyDefLbl).addComponent(basePhyHRLbl).addComponent(basePhyEvaLbl) .addComponent(baseMagAttLbl).addComponent(baseMagDefLbl).addComponent(baseMagHRLbl) .addComponent(baseMagEvaLbl).addComponent(baseCritLbl).addComponent(baseDeadLbl)) .addGap(11, 11, 11) .addGroup(BaseClassPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(baseHealthTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(baseManaTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(basePhyAttTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(basePhyDefTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(basePhyHRTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(basePhyEvaTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(baseMagAttTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(baseMagDefTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(baseMagHRTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(baseMagEvaTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(baseCritTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(baseDeadTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(0, 0, Short.MAX_VALUE))); BaseClassPanelLayout.setVerticalGroup( BaseClassPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(BaseClassPanelLayout.createSequentialGroup().addContainerGap() .addGroup(BaseClassPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(baseHealthLbl).addComponent(baseHealthTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(BaseClassPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(baseManaLbl).addComponent(baseManaTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(BaseClassPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(basePhyAttLbl) .addComponent(basePhyAttTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(BaseClassPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(basePhyDefLbl) .addComponent(basePhyDefTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(BaseClassPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(basePhyHRLbl).addComponent(basePhyHRTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(BaseClassPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(basePhyEvaLbl) .addComponent(basePhyEvaTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(BaseClassPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(baseMagAttLbl).addComponent(baseMagAttTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(BaseClassPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(baseMagDefLbl).addComponent(baseMagDefTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(BaseClassPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(baseMagHRLbl) .addComponent(baseMagHRTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(BaseClassPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(baseMagEvaLbl).addComponent(baseMagEvaTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(BaseClassPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(baseCritLbl).addComponent(baseCritTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(BaseClassPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(baseDeadLbl).addComponent(baseDeadTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); classNameTxt.setText("jTextField1"); enabledClassCheck.setText("Enabled"); enabledClassCheck.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { enabledClassCheckActionPerformed(evt); } }); saveNewClass_btn.setText("Save"); saveNewClass_btn.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { saveNewClass_btnActionPerformed(evt); } }); resetValues_btn.setText("Reset"); LvlUpPanel.setBorder(javax.swing.BorderFactory.createTitledBorder("Level Up Attributes Increment")); jLabel2.setText("Health Increment"); jLabel3.setText("Mana Increment"); jLabel4.setText("Physical Attack Inc."); jLabel5.setText("Physical Defense Inc."); jLabel6.setText("Physical Hit Rate Inc."); jLabel7.setText("Physical Evasion Inc."); jLabel8.setText("Magical Attack Inc."); jLabel9.setText("Magical Defense Inc."); jLabel10.setText("Magical Hit Rate Inc."); jLabel11.setText("Magical Evasion Inc."); jLabel12.setText("Critical Increment"); jLabel13.setText("Deadly Increment"); jTextField2.setText("jTextField2"); jTextField3.setText("jTextField3"); jTextField4.setText("jTextField4"); jTextField5.setText("jTextField5"); jTextField6.setText("jTextField6"); jTextField7.setText("jTextField7"); jTextField8.setText("jTextField8"); jTextField9.setText("jTextField9"); jTextField10.setText("jTextField10"); jTextField11.setText("jTextField11"); jTextField12.setText("jTextField12"); jTextField13.setText("jTextField13"); javax.swing.GroupLayout LvlUpPanelLayout = new javax.swing.GroupLayout(LvlUpPanel); LvlUpPanel.setLayout(LvlUpPanelLayout); LvlUpPanelLayout.setHorizontalGroup(LvlUpPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(LvlUpPanelLayout.createSequentialGroup() .addGroup(LvlUpPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel2).addComponent(jLabel3).addComponent(jLabel4) .addComponent(jLabel5).addComponent(jLabel6).addComponent(jLabel7) .addComponent(jLabel8).addComponent(jLabel11).addComponent(jLabel12) .addComponent(jLabel13).addComponent(jLabel9).addComponent(jLabel10)) .addGap(18, 18, 18) .addGroup(LvlUpPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(0, 0, Short.MAX_VALUE))); LvlUpPanelLayout.setVerticalGroup(LvlUpPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(LvlUpPanelLayout.createSequentialGroup().addContainerGap().addGroup(LvlUpPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jLabel2) .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(LvlUpPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel3).addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(LvlUpPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel4).addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(LvlUpPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel5).addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(LvlUpPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel6).addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(LvlUpPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel7).addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(LvlUpPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel8).addComponent(jTextField8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(LvlUpPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel9).addComponent(jTextField9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(LvlUpPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel10) .addComponent(jTextField10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(LvlUpPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel11).addComponent(jTextField11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(LvlUpPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel12).addComponent(jTextField12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(LvlUpPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel13).addComponent(jTextField13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); SkillPointsPanel .setBorder(javax.swing.BorderFactory.createTitledBorder("Attributes Increment per Skill Point")); jPanel19.setBorder(javax.swing.BorderFactory.createTitledBorder("Strenght Skill Point")); jLabel26.setText("Health Increment"); jLabel27.setText("Physical Attack"); jTextField26.setText("jTextField26"); jTextField27.setText("jTextField27"); javax.swing.GroupLayout jPanel19Layout = new javax.swing.GroupLayout(jPanel19); jPanel19.setLayout(jPanel19Layout); jPanel19Layout.setHorizontalGroup(jPanel19Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel19Layout.createSequentialGroup() .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel26).addComponent(jLabel27)) .addGap(22, 22, 22) .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jTextField27, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField26, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(0, 0, Short.MAX_VALUE))); jPanel19Layout.setVerticalGroup(jPanel19Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel19Layout.createSequentialGroup().addGroup(jPanel19Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jLabel26) .addComponent(jTextField26, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel27).addComponent(jTextField27, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))); jPanel20.setBorder(javax.swing.BorderFactory.createTitledBorder("Constitution Skill Point")); jLabel28.setText("Health Increment"); jLabel29.setText("Mana Increment"); jTextField28.setText("jTextField28"); jTextField29.setText("jTextField29"); javax.swing.GroupLayout jPanel20Layout = new javax.swing.GroupLayout(jPanel20); jPanel20.setLayout(jPanel20Layout); jPanel20Layout.setHorizontalGroup(jPanel20Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel20Layout.createSequentialGroup() .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel28).addComponent(jLabel29)) .addGap(22, 22, 22) .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jTextField28, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField29, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(0, 0, Short.MAX_VALUE))); jPanel20Layout.setVerticalGroup(jPanel20Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel20Layout.createSequentialGroup().addGroup(jPanel20Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jLabel28) .addComponent(jTextField28, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel29).addComponent(jTextField29, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))); jPanel21.setBorder(javax.swing.BorderFactory.createTitledBorder(" Intelligence Skill Point")); jLabel30.setText("Mana Increment"); jLabel31.setText("Magical Attack Inc."); jTextField30.setText("jTextField30"); jTextField31.setText("jTextField31"); javax.swing.GroupLayout jPanel21Layout = new javax.swing.GroupLayout(jPanel21); jPanel21.setLayout(jPanel21Layout); jPanel21Layout.setHorizontalGroup(jPanel21Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel21Layout.createSequentialGroup() .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel30).addComponent(jLabel31)) .addGap(14, 14, 14) .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jTextField30, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField31, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(0, 0, Short.MAX_VALUE))); jPanel21Layout.setVerticalGroup(jPanel21Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel21Layout.createSequentialGroup().addGroup(jPanel21Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jLabel30) .addComponent(jTextField30, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel31).addComponent(jTextField31, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))); jPanel22.setBorder(javax.swing.BorderFactory.createTitledBorder("Dextery Skill Point")); jLabel32.setText("Critical Increment"); jLabel33.setText("Deadly Increment"); jTextField32.setText("jTextField32"); jTextField33.setText("jTextField33"); javax.swing.GroupLayout jPanel22Layout = new javax.swing.GroupLayout(jPanel22); jPanel22.setLayout(jPanel22Layout); jPanel22Layout.setHorizontalGroup(jPanel22Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel22Layout.createSequentialGroup() .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel32).addComponent(jLabel33)) .addGap(21, 21, 21) .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jTextField32, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField33, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(0, 0, Short.MAX_VALUE))); jPanel22Layout.setVerticalGroup(jPanel22Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel22Layout.createSequentialGroup().addGroup(jPanel22Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jLabel32) .addComponent(jTextField32, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel33).addComponent(jTextField33)))); javax.swing.GroupLayout SkillPointsPanelLayout = new javax.swing.GroupLayout(SkillPointsPanel); SkillPointsPanel.setLayout(SkillPointsPanelLayout); SkillPointsPanelLayout.setHorizontalGroup(SkillPointsPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel19, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel20, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel21, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel22, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)); SkillPointsPanelLayout.setVerticalGroup(SkillPointsPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(SkillPointsPanelLayout.createSequentialGroup() .addComponent(jPanel19, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel20, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel21, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel22, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(14, 14, 14))); javax.swing.GroupLayout classEditorPanelLayout = new javax.swing.GroupLayout(classEditorPanel); classEditorPanel.setLayout(classEditorPanelLayout); classEditorPanelLayout.setHorizontalGroup(classEditorPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(classEditorPanelLayout.createSequentialGroup().addGroup(classEditorPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(classEditorPanelLayout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(saveNewClass_btn).addGap(37, 37, 37).addComponent(resetValues_btn) .addGap(149, 149, 149)) .addGroup(classEditorPanelLayout.createSequentialGroup().addContainerGap() .addGroup(classEditorPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(classEditorPanelLayout.createSequentialGroup() .addComponent(BaseClassPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(LvlUpPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(SkillPointsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(classEditorPanelLayout.createSequentialGroup() .addComponent(classNameLbl) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(classNameTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(enabledClassCheck, javax.swing.GroupLayout.PREFERRED_SIZE, 78, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(10, 10, 10))))) .addContainerGap())); classEditorPanelLayout.setVerticalGroup(classEditorPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(classEditorPanelLayout.createSequentialGroup().addGroup(classEditorPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(classNameLbl) .addComponent(classNameTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(enabledClassCheck)).addGap(11, 11, 11) .addGroup(classEditorPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(LvlUpPanel, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(BaseClassPanel, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(SkillPointsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 9, Short.MAX_VALUE) .addGroup(classEditorPanelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(saveNewClass_btn).addComponent(resetValues_btn)))); jLabel34.setText("Click to add new class"); jLabel35.setText("Select class to preview:"); javax.swing.GroupLayout ClassManagerLayout = new javax.swing.GroupLayout(ClassManager); ClassManager.setLayout(ClassManagerLayout); ClassManagerLayout.setHorizontalGroup(ClassManagerLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(ClassManagerLayout.createSequentialGroup().addContainerGap().addGroup(ClassManagerLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(ClassManagerLayout.createSequentialGroup() .addComponent(classEditorPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE)) .addGroup(ClassManagerLayout.createSequentialGroup().addComponent(jLabel34) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(createNewClassbtn, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel35) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 177, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(editClassbtn, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(deleteClassbtn, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap())); ClassManagerLayout.setVerticalGroup(ClassManagerLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(ClassManagerLayout.createSequentialGroup().addContainerGap().addGroup(ClassManagerLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(ClassManagerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(editClassbtn).addComponent(deleteClassbtn).addComponent(jLabel35)) .addGroup(ClassManagerLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel34).addComponent(createNewClassbtn))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(classEditorPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); jTabbedPane1.addTab("clases", ClassManager); jPanel23.setPreferredSize(new java.awt.Dimension(800, 600)); jLabel36.setText("x+"); jLabel37.setText("x+"); jLabel38.setText("x"); jLabel39.setText("f(x)="); validate_function.setText("Validate"); validate_function.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { validate_functionActionPerformed(evt); } }); save_validated_function.setText("Save"); save_validated_function.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { save_validated_functionActionPerformed(evt); } }); jLabel40.setText( "In order to create a leveling formule, we need to set up the experience we need to get a new level:"); jLabel41.setText("The result f(x) represents the total of player experience need to level in a X level"); draw_graph_btn.setText("Draw graph"); draw_graph_btn.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { draw_graph_btnActionPerformed(evt); } }); graph_panel.setBorder(javax.swing.BorderFactory.createTitledBorder("Graph")); javax.swing.GroupLayout graph_panelLayout = new javax.swing.GroupLayout(graph_panel); graph_panel.setLayout(graph_panelLayout); graph_panelLayout.setHorizontalGroup(graph_panelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 0, Short.MAX_VALUE)); graph_panelLayout.setVerticalGroup(graph_panelLayout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 444, Short.MAX_VALUE)); jLabel42.setText("Select max level you want to preview"); max_level.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory( new javax.swing.text.NumberFormatter(new java.text.DecimalFormat("#0")))); max_level.setName(""); // NOI18N max_level.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { max_levelActionPerformed(evt); } }); value_c.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory( new javax.swing.text.NumberFormatter(new java.text.DecimalFormat("#0.###")))); value_c.addPropertyChangeListener(new java.beans.PropertyChangeListener() { public void propertyChange(java.beans.PropertyChangeEvent evt) { value_cPropertyChange(evt); } }); value_b.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory( new javax.swing.text.NumberFormatter(new java.text.DecimalFormat("#0.###")))); value_b.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { value_bActionPerformed(evt); } }); value_b.addPropertyChangeListener(new java.beans.PropertyChangeListener() { public void propertyChange(java.beans.PropertyChangeEvent evt) { value_bPropertyChange(evt); } }); value_a.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory( new javax.swing.text.NumberFormatter(new java.text.DecimalFormat("#0.###")))); value_a.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { value_aActionPerformed(evt); } }); value_a.addPropertyChangeListener(new java.beans.PropertyChangeListener() { public void propertyChange(java.beans.PropertyChangeEvent evt) { value_aPropertyChange(evt); } }); jPanel5.setBorder(javax.swing.BorderFactory.createTitledBorder("Experience Table")); javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5); jPanel5.setLayout(jPanel5Layout); jPanel5Layout.setHorizontalGroup(jPanel5Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 138, Short.MAX_VALUE)); jPanel5Layout.setVerticalGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 0, Short.MAX_VALUE)); javax.swing.GroupLayout jPanel23Layout = new javax.swing.GroupLayout(jPanel23); jPanel23.setLayout(jPanel23Layout); jPanel23Layout.setHorizontalGroup(jPanel23Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel23Layout.createSequentialGroup().addGroup(jPanel23Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel23Layout.createSequentialGroup().addGap(12, 12, 12) .addGroup(jPanel23Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel41, javax.swing.GroupLayout.PREFERRED_SIZE, 479, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanel23Layout.createSequentialGroup().addComponent(jLabel39) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(value_b, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel36) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(value_a, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel37, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(value_c, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel38, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(validate_function) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(draw_graph_btn) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(save_validated_function)))) .addGroup(jPanel23Layout.createSequentialGroup().addContainerGap().addComponent(jLabel42) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(max_level, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel23Layout.createSequentialGroup().addContainerGap().addComponent(jLabel40, javax.swing.GroupLayout.PREFERRED_SIZE, 479, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel23Layout.createSequentialGroup().addContainerGap().addComponent(graph_panel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))); jPanel23Layout.setVerticalGroup(jPanel23Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel23Layout.createSequentialGroup().addGap(11, 11, 11).addComponent(jLabel40) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jLabel41) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel36).addComponent(jLabel37).addComponent(jLabel38) .addComponent(jLabel39).addComponent(validate_function) .addComponent(save_validated_function).addComponent(draw_graph_btn) .addComponent(value_c, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(value_b, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(value_a, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel42).addComponent(max_level, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(graph_panel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGap(22, 22, 22)) .addGroup(jPanel23Layout.createSequentialGroup().addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap())); jTabbedPane1.addTab("Leveling", jPanel23); jPanel3.setPreferredSize(new java.awt.Dimension(800, 600)); jComboBox2.setModel( new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" })); jButton1.setText("Add"); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); jButton3.setText("Edit"); jButton3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton3ActionPerformed(evt); } }); jButton6.setText("Delete"); jButton6.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton6ActionPerformed(evt); } }); classEditorPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Mob Editor")); classEditorPanel1.setName("Class Editor"); // NOI18N classNameLbl1.setText("DisplayName"); BaseClassPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Mob Base Attributes")); baseHealthLbl1.setText("damage"); baseManaLbl1.setText("ranged damage"); basePhyAttLbl1.setText("movement speed"); basePhyDefLbl1.setText("attack speed"); basePhyHRLbl1.setText("knockback"); basePhyEvaLbl1.setText("follow range"); baseHealthTxt1.setText("jTextField14"); baseManaTxt1.setText("jTextField15"); basePhyAttTxt1.setText("jTextField16"); basePhyDefTxt1.setText("jTextField17"); basePhyHRTxt1.setText("jTextField18"); basePhyEvaTxt1.setText("jTextField19"); javax.swing.GroupLayout BaseClassPanel1Layout = new javax.swing.GroupLayout(BaseClassPanel1); BaseClassPanel1.setLayout(BaseClassPanel1Layout); BaseClassPanel1Layout.setHorizontalGroup(BaseClassPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(BaseClassPanel1Layout.createSequentialGroup().addGroup(BaseClassPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(baseHealthLbl1) .addComponent(baseManaLbl1).addComponent(basePhyAttLbl1).addComponent(basePhyDefLbl1) .addComponent(basePhyHRLbl1).addComponent(basePhyEvaLbl1)).addGap(33, 33, 33).addGroup( BaseClassPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(baseHealthTxt1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(baseManaTxt1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(basePhyAttTxt1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(basePhyDefTxt1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(basePhyHRTxt1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(basePhyEvaTxt1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))); BaseClassPanel1Layout.setVerticalGroup( BaseClassPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(BaseClassPanel1Layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(BaseClassPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(baseHealthLbl1).addComponent(baseHealthTxt1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(BaseClassPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(baseManaLbl1).addComponent(baseManaTxt1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(BaseClassPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(basePhyAttLbl1).addComponent(basePhyAttTxt1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(BaseClassPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(basePhyDefLbl1).addComponent(basePhyDefTxt1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(BaseClassPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(basePhyHRLbl1).addComponent(basePhyHRTxt1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(BaseClassPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(basePhyEvaLbl1).addComponent(basePhyEvaTxt1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))); classNameTxt1.setText("jTextField1"); saveNewClass_btn1.setText("Save"); saveNewClass_btn1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { saveNewClass_btn1ActionPerformed(evt); } }); resetValues_btn1.setText("Reset"); LvlUpPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Level Up Attributes Increment")); jLabel14.setText("Health Increment"); jLabel15.setText("Mana Increment"); jLabel16.setText("Physical Attack Inc."); jLabel17.setText("Physical Defense Inc."); jLabel18.setText("Physical Hit Rate Inc."); jLabel19.setText("Physical Evasion Inc."); jLabel20.setText("Magical Attack Inc."); jLabel21.setText("Magical Defense Inc."); jLabel22.setText("Magical Hit Rate Inc."); jLabel23.setText("Magical Evasion Inc."); jLabel24.setText("Critical Increment"); jLabel25.setText("Deadly Increment"); jTextField14.setText("jTextField2"); jTextField15.setText("jTextField3"); jTextField16.setText("jTextField4"); jTextField17.setText("jTextField5"); jTextField18.setText("jTextField6"); jTextField19.setText("jTextField7"); jTextField20.setText("jTextField8"); jTextField21.setText("jTextField9"); jTextField22.setText("jTextField10"); jTextField23.setText("jTextField11"); jTextField24.setText("jTextField12"); jTextField25.setText("jTextField13"); javax.swing.GroupLayout LvlUpPanel1Layout = new javax.swing.GroupLayout(LvlUpPanel1); LvlUpPanel1.setLayout(LvlUpPanel1Layout); LvlUpPanel1Layout.setHorizontalGroup(LvlUpPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(LvlUpPanel1Layout.createSequentialGroup() .addGroup(LvlUpPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel14).addComponent(jLabel15).addComponent(jLabel16) .addComponent(jLabel17).addComponent(jLabel18).addComponent(jLabel19) .addComponent(jLabel20).addComponent(jLabel23).addComponent(jLabel24) .addComponent(jLabel25).addComponent(jLabel21).addComponent(jLabel22)) .addGap(18, 18, 18) .addGroup(LvlUpPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jTextField14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField18, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField19, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField20, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField21, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField22, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField23, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField24, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField25, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(0, 0, Short.MAX_VALUE))); LvlUpPanel1Layout.setVerticalGroup(LvlUpPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(LvlUpPanel1Layout.createSequentialGroup().addContainerGap().addGroup(LvlUpPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jLabel14) .addComponent(jTextField14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(LvlUpPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel15).addComponent(jTextField15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(LvlUpPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel16).addComponent(jTextField16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(LvlUpPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel17).addComponent(jTextField17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(LvlUpPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel18).addComponent(jTextField18, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(LvlUpPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel19).addComponent(jTextField19, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(LvlUpPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel20).addComponent(jTextField20, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(LvlUpPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel21).addComponent(jTextField21, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(LvlUpPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel22) .addComponent(jTextField22, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(LvlUpPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel23).addComponent(jTextField23, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(LvlUpPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel24).addComponent(jTextField24, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(LvlUpPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel25).addComponent(jTextField25, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))); SkillPointsPanel1 .setBorder(javax.swing.BorderFactory.createTitledBorder("Attributes Increment per Skill Point")); jPanel24.setBorder(javax.swing.BorderFactory.createTitledBorder("Strenght Skill Point")); jLabel43.setText("Health Increment"); jLabel44.setText("Physical Attack"); jTextField34.setText("jTextField26"); jTextField35.setText("jTextField27"); javax.swing.GroupLayout jPanel24Layout = new javax.swing.GroupLayout(jPanel24); jPanel24.setLayout(jPanel24Layout); jPanel24Layout.setHorizontalGroup(jPanel24Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel24Layout.createSequentialGroup() .addGroup(jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel43).addComponent(jLabel44)) .addGap(22, 22, 22) .addGroup(jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jTextField35, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField34, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(0, 0, Short.MAX_VALUE))); jPanel24Layout.setVerticalGroup(jPanel24Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel24Layout.createSequentialGroup().addGroup(jPanel24Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jLabel43) .addComponent(jTextField34, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel44).addComponent(jTextField35, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))); jPanel25.setBorder(javax.swing.BorderFactory.createTitledBorder("Constitution Skill Point")); jLabel45.setText("Health Increment"); jLabel46.setText("Mana Increment"); jTextField36.setText("jTextField28"); jTextField37.setText("jTextField29"); javax.swing.GroupLayout jPanel25Layout = new javax.swing.GroupLayout(jPanel25); jPanel25.setLayout(jPanel25Layout); jPanel25Layout.setHorizontalGroup(jPanel25Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel25Layout.createSequentialGroup() .addGroup(jPanel25Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel45).addComponent(jLabel46)) .addGap(22, 22, 22) .addGroup(jPanel25Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jTextField36, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField37, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(0, 0, Short.MAX_VALUE))); jPanel25Layout.setVerticalGroup(jPanel25Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel25Layout.createSequentialGroup().addGroup(jPanel25Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jLabel45) .addComponent(jTextField36, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel25Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel46).addComponent(jTextField37, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))); jPanel26.setBorder(javax.swing.BorderFactory.createTitledBorder(" Intelligence Skill Point")); jLabel47.setText("Mana Increment"); jLabel48.setText("Magical Attack Inc."); jTextField38.setText("jTextField30"); jTextField39.setText("jTextField31"); javax.swing.GroupLayout jPanel26Layout = new javax.swing.GroupLayout(jPanel26); jPanel26.setLayout(jPanel26Layout); jPanel26Layout.setHorizontalGroup(jPanel26Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel26Layout.createSequentialGroup() .addGroup(jPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel47).addComponent(jLabel48)) .addGap(14, 14, 14) .addGroup(jPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jTextField38, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField39, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(0, 0, Short.MAX_VALUE))); jPanel26Layout.setVerticalGroup(jPanel26Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel26Layout.createSequentialGroup().addGroup(jPanel26Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jLabel47) .addComponent(jTextField38, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel48).addComponent(jTextField39, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))); jPanel27.setBorder(javax.swing.BorderFactory.createTitledBorder("Dextery Skill Point")); jLabel49.setText("Critical Increment"); jLabel50.setText("Deadly Increment"); jTextField40.setText("jTextField32"); jTextField41.setText("jTextField33"); javax.swing.GroupLayout jPanel27Layout = new javax.swing.GroupLayout(jPanel27); jPanel27.setLayout(jPanel27Layout); jPanel27Layout.setHorizontalGroup(jPanel27Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel27Layout.createSequentialGroup() .addGroup(jPanel27Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel49).addComponent(jLabel50)) .addGap(21, 21, 21) .addGroup(jPanel27Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER) .addComponent(jTextField40, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextField41, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(0, 0, Short.MAX_VALUE))); jPanel27Layout.setVerticalGroup(jPanel27Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel27Layout.createSequentialGroup().addGroup(jPanel27Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(jLabel49) .addComponent(jTextField40, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel27Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel50).addComponent(jTextField41)))); javax.swing.GroupLayout SkillPointsPanel1Layout = new javax.swing.GroupLayout(SkillPointsPanel1); SkillPointsPanel1.setLayout(SkillPointsPanel1Layout); SkillPointsPanel1Layout.setHorizontalGroup(SkillPointsPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel24, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel25, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel26, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel27, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)); SkillPointsPanel1Layout.setVerticalGroup(SkillPointsPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(SkillPointsPanel1Layout.createSequentialGroup() .addComponent(jPanel24, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel25, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel26, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel27, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(14, 14, 14))); classNameLbl2.setText("Level"); classNameTxt2.setText("jTextField1"); classNameLbl3.setText("Type"); jComboBox3.setModel( new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" })); BaseClassPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder("Attack Type")); javax.swing.GroupLayout BaseClassPanel2Layout = new javax.swing.GroupLayout(BaseClassPanel2); BaseClassPanel2.setLayout(BaseClassPanel2Layout); BaseClassPanel2Layout.setHorizontalGroup(BaseClassPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 182, Short.MAX_VALUE)); BaseClassPanel2Layout.setVerticalGroup(BaseClassPanel2Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 99, Short.MAX_VALUE)); javax.swing.GroupLayout classEditorPanel1Layout = new javax.swing.GroupLayout(classEditorPanel1); classEditorPanel1.setLayout(classEditorPanel1Layout); classEditorPanel1Layout.setHorizontalGroup(classEditorPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(classEditorPanel1Layout.createSequentialGroup().addContainerGap() .addGroup(classEditorPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(classEditorPanel1Layout.createSequentialGroup() .addComponent(classNameLbl1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(classNameTxt1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(classNameLbl2) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(classNameTxt2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(classNameLbl3) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jComboBox3, javax.swing.GroupLayout.PREFERRED_SIZE, 162, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(classEditorPanel1Layout.createSequentialGroup() .addGroup(classEditorPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(BaseClassPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(classEditorPanel1Layout.createSequentialGroup() .addComponent(BaseClassPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(classEditorPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, classEditorPanel1Layout.createSequentialGroup() .addComponent(LvlUpPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap( javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(SkillPointsPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, classEditorPanel1Layout.createSequentialGroup() .addComponent(saveNewClass_btn1).addGap(37, 37, 37) .addComponent(resetValues_btn1) .addGap(149, 149, 149))))) .addContainerGap())); classEditorPanel1Layout.setVerticalGroup(classEditorPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(classEditorPanel1Layout.createSequentialGroup().addGroup(classEditorPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE).addComponent(classNameLbl1) .addComponent(classNameTxt1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(classNameLbl2) .addComponent(classNameTxt2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(classNameLbl3) .addComponent(jComboBox3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(13, 13, 13) .addGroup(classEditorPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(classEditorPanel1Layout.createSequentialGroup() .addComponent(BaseClassPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(BaseClassPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(LvlUpPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(SkillPointsPanel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(classEditorPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(saveNewClass_btn1).addComponent(resetValues_btn1)))); javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3); jPanel3.setLayout(jPanel3Layout); jPanel3Layout .setHorizontalGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup().addGap(70, 70, 70) .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, 162, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButton6, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(69, 69, 69)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(classEditorPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap())); jPanel3Layout.setVerticalGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup().addContainerGap().addGroup(jPanel3Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton1).addComponent(jButton3).addComponent(jButton6)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(classEditorPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(119, Short.MAX_VALUE))); jTabbedPane1.addTab("monstruos", jPanel3); jPanel4.setPreferredSize(new java.awt.Dimension(800, 600)); javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4); jPanel4.setLayout(jPanel4Layout); jPanel4Layout.setHorizontalGroup(jPanel4Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 681, Short.MAX_VALUE)); jPanel4Layout.setVerticalGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 595, Short.MAX_VALUE)); jTabbedPane1.addTab("npcs", jPanel4); jPanel6.setPreferredSize(new java.awt.Dimension(800, 600)); javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6); jPanel6.setLayout(jPanel6Layout); jPanel6Layout.setHorizontalGroup(jPanel6Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 681, Short.MAX_VALUE)); jPanel6Layout.setVerticalGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 595, Short.MAX_VALUE)); jTabbedPane1.addTab("armaduras", jPanel6); jPanel7.setPreferredSize(new java.awt.Dimension(800, 600)); javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7); jPanel7.setLayout(jPanel7Layout); jPanel7Layout.setHorizontalGroup(jPanel7Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 681, Short.MAX_VALUE)); jPanel7Layout.setVerticalGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 595, Short.MAX_VALUE)); jTabbedPane1.addTab("armas", jPanel7); jPanel8.setPreferredSize(new java.awt.Dimension(800, 600)); javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8); jPanel8.setLayout(jPanel8Layout); jPanel8Layout.setHorizontalGroup(jPanel8Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 681, Short.MAX_VALUE)); jPanel8Layout.setVerticalGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 595, Short.MAX_VALUE)); jTabbedPane1.addTab("mapa", jPanel8); jPanel9.setPreferredSize(new java.awt.Dimension(800, 600)); javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9); jPanel9.setLayout(jPanel9Layout); jPanel9Layout.setHorizontalGroup(jPanel9Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 681, Short.MAX_VALUE)); jPanel9Layout.setVerticalGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 595, Short.MAX_VALUE)); jTabbedPane1.addTab("objetos", jPanel9); jPanel11.setPreferredSize(new java.awt.Dimension(800, 600)); javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11); jPanel11.setLayout(jPanel11Layout); jPanel11Layout.setHorizontalGroup(jPanel11Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 681, Short.MAX_VALUE)); jPanel11Layout.setVerticalGroup(jPanel11Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 595, Short.MAX_VALUE)); jTabbedPane1.addTab("quests", jPanel11); jPanel1.setPreferredSize(new java.awt.Dimension(800, 600)); jButton2.setText("jButton2"); jButton4.setText("jButton4"); jButton5.setText("jButton5"); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup(jPanel1Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup().addContainerGap().addComponent(jButton2) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jButton4) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED).addComponent(jButton5) .addContainerGap(440, Short.MAX_VALUE))); jPanel1Layout.setVerticalGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addContainerGap(442, Short.MAX_VALUE) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jButton2).addComponent(jButton5).addComponent(jButton4)) .addGap(130, 130, 130))); jTabbedPane1.addTab("reinos", jPanel1); jTabbedPane3.setPreferredSize(new java.awt.Dimension(800, 600)); jTabbedPane1.addTab("Scoreboards", jTabbedPane3); jPanel12.setPreferredSize(new java.awt.Dimension(800, 600)); javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12); jPanel12.setLayout(jPanel12Layout); jPanel12Layout.setHorizontalGroup(jPanel12Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 681, Short.MAX_VALUE)); jPanel12Layout.setVerticalGroup(jPanel12Layout .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addGap(0, 595, Short.MAX_VALUE)); jTabbedPane1.addTab("miscelanea", jPanel12); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 762, Short.MAX_VALUE) .addGap(0, 0, Short.MAX_VALUE))); layout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent( jTabbedPane1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 600, Short.MAX_VALUE)); pack(); }// </editor-fold>//GEN-END:initComponents private void value_aPropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_value_aPropertyChange // TODO add your handling code here: // if (!evt.getNewValue().equals(evt.getOldValue())) { // draw_graph_btn.setEnabled(false); // save_validated_function.setEnabled(false); // max_level.setEnabled(false); // } }//GEN-LAST:event_value_aPropertyChange private void value_aActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_value_aActionPerformed // TODO add your handling code here: }//GEN-LAST:event_value_aActionPerformed private void value_bPropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_value_bPropertyChange // if (!evt.getNewValue().equals(evt.getOldValue())) { // draw_graph_btn.setEnabled(false); // save_validated_function.setEnabled(false); // max_level.setEnabled(false); // } }//GEN-LAST:event_value_bPropertyChange private void value_bActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_value_bActionPerformed // TODO add your handling code here: }//GEN-LAST:event_value_bActionPerformed private void value_cPropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_value_cPropertyChange // TODO add your handling code here: // if (!evt.getNewValue().equals(evt.getOldValue())) { // draw_graph_btn.setEnabled(false); // save_validated_function.setEnabled(false); // max_level.setEnabled(false); // } }//GEN-LAST:event_value_cPropertyChange private void max_levelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_max_levelActionPerformed // TODO add your handling code here: }//GEN-LAST:event_max_levelActionPerformed private void draw_graph_btnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_draw_graph_btnActionPerformed int level; boolean error; try { graph_panel.removeAll(); if (max_level.getText().equals("")) { this.max_level.setBackground(Color.red); throw new Exception("Rellena el campo nivel mximo"); } else { level = Integer.parseInt(max_level.getText()); if (level <= 0) { this.max_level.setBackground(Color.red); throw new Exception("Selecciona un nivel mayor que 0 para continuar"); } else { this.max_level.setBackground(Color.white); //dibujar grafico XYDataset dataset = createDataset(level); JFreeChart chart = ChartFactory.createXYLineChart("Level Progression", "level", "experience needed", dataset); ChartPanel chartPanel = new ChartPanel(chart); chartPanel.setPreferredSize(new Dimension(800, 500)); chartPanel.setMouseWheelEnabled(true); graph_panel.setLayout(new java.awt.BorderLayout()); graph_panel.add(chartPanel, BorderLayout.CENTER); graph_panel.validate(); graph_panel.repaint(); } } } catch (NumberFormatException e) { JOptionPane.showMessageDialog(rootPane, e.getMessage(), "Error en nivel maximo", JOptionPane.ERROR_MESSAGE); e.printStackTrace(); } catch (Exception e) { JOptionPane.showMessageDialog(rootPane, e.getMessage(), "Error en nivel maximo", JOptionPane.ERROR_MESSAGE); e.printStackTrace(); } }//GEN-LAST:event_draw_graph_btnActionPerformed private void save_validated_functionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_save_validated_functionActionPerformed // TODO add your handling code here: }//GEN-LAST:event_save_validated_functionActionPerformed private void validate_functionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_validate_functionActionPerformed double a; double b; double c; boolean error = false; boolean error_c = false; double auxres = 0.00; try { a = Double.parseDouble(value_a.getText().replace(",", ".")); b = Double.parseDouble(value_b.getText().replace(",", ".")); c = Double.parseDouble(value_c.getText().replace(",", ".")); if (a < 0) { value_a.setBackground(Color.red); error = true; } if (b < 0) { value_b.setBackground(Color.red); error = true; } if (c <= 0) { value_c.setBackground(Color.red); error_c = true; } if ((a > 0 || b > 0) && c == 0) { //mirar este error error_c = false; } if (error) { throw new Exception("Los valores no pueden ser negativos"); } else if (error_c) { throw new Exception("Al menos el ultimo componente debe ser positivo y mayor que cero"); } else { //habilitar botones Draw y save value_a.setBackground(Color.white); value_b.setBackground(Color.white); value_c.setBackground(Color.white); save_validated_function.setEnabled(true); draw_graph_btn.setEnabled(true); max_level.setEnabled(true); } } catch (NullPointerException e) { JOptionPane.showMessageDialog(rootPane, "No pueden existir campos sin dato...", "Error en la validacin", JOptionPane.ERROR_MESSAGE); } catch (NumberFormatException e) { JOptionPane.showMessageDialog(rootPane, "Solucione los errores en la formula para continuar...", "Error en la validacin", JOptionPane.ERROR_MESSAGE); } catch (Exception ex) { JOptionPane.showMessageDialog(rootPane, ex.getMessage(), "Error en la validacin", JOptionPane.ERROR_MESSAGE); } }//GEN-LAST:event_validate_functionActionPerformed private void saveNewClass_btnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_saveNewClass_btnActionPerformed // TODO add your handling code here: }//GEN-LAST:event_saveNewClass_btnActionPerformed private void enabledClassCheckActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_enabledClassCheckActionPerformed // TODO add your handling code here: }//GEN-LAST:event_enabledClassCheckActionPerformed private void editClassbtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_editClassbtnActionPerformed // TODO add your handling code here: }//GEN-LAST:event_editClassbtnActionPerformed private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_jButton1ActionPerformed private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_jButton3ActionPerformed private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton6ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_jButton6ActionPerformed private void saveNewClass_btn1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_saveNewClass_btn1ActionPerformed // TODO add your handling code here: }//GEN-LAST:event_saveNewClass_btn1ActionPerformed /** * @param args the command line arguments */ public static void main(String args[]) { /* Set the Nimbus look and feel */ //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html */ try { for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { if ("Nimbus".equals(info.getName())) { javax.swing.UIManager.setLookAndFeel(info.getClassName()); break; } } } catch (ClassNotFoundException ex) { java.util.logging.Logger.getLogger(RPGCraftCosta.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (InstantiationException ex) { java.util.logging.Logger.getLogger(RPGCraftCosta.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { java.util.logging.Logger.getLogger(RPGCraftCosta.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (javax.swing.UnsupportedLookAndFeelException ex) { java.util.logging.Logger.getLogger(RPGCraftCosta.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } //</editor-fold> /* Create and display the form */ java.awt.EventQueue.invokeLater(new Runnable() { @Override public void run() { new GUI().setVisible(true); } }); } // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JPanel BaseClassPanel; private javax.swing.JPanel BaseClassPanel1; private javax.swing.JPanel BaseClassPanel2; private javax.swing.JPanel ClassManager; private javax.swing.JPanel LvlUpPanel; private javax.swing.JPanel LvlUpPanel1; private javax.swing.JPanel SkillPointsPanel; private javax.swing.JPanel SkillPointsPanel1; private javax.swing.JLabel baseCritLbl; private javax.swing.JTextField baseCritTxt; private javax.swing.JLabel baseDeadLbl; private javax.swing.JTextField baseDeadTxt; private javax.swing.JLabel baseHealthLbl; private javax.swing.JLabel baseHealthLbl1; private javax.swing.JTextField baseHealthTxt; private javax.swing.JTextField baseHealthTxt1; private javax.swing.JLabel baseMagAttLbl; private javax.swing.JTextField baseMagAttTxt; private javax.swing.JLabel baseMagDefLbl; private javax.swing.JTextField baseMagDefTxt; private javax.swing.JLabel baseMagEvaLbl; private javax.swing.JTextField baseMagEvaTxt; private javax.swing.JLabel baseMagHRLbl; private javax.swing.JTextField baseMagHRTxt; private javax.swing.JLabel baseManaLbl; private javax.swing.JLabel baseManaLbl1; private javax.swing.JTextField baseManaTxt; private javax.swing.JTextField baseManaTxt1; private javax.swing.JLabel basePhyAttLbl; private javax.swing.JLabel basePhyAttLbl1; private javax.swing.JTextField basePhyAttTxt; private javax.swing.JTextField basePhyAttTxt1; private javax.swing.JLabel basePhyDefLbl; private javax.swing.JLabel basePhyDefLbl1; private javax.swing.JTextField basePhyDefTxt; private javax.swing.JTextField basePhyDefTxt1; private javax.swing.JLabel basePhyEvaLbl; private javax.swing.JLabel basePhyEvaLbl1; private javax.swing.JTextField basePhyEvaTxt; private javax.swing.JTextField basePhyEvaTxt1; private javax.swing.JLabel basePhyHRLbl; private javax.swing.JLabel basePhyHRLbl1; private javax.swing.JTextField basePhyHRTxt; private javax.swing.JTextField basePhyHRTxt1; private javax.swing.ButtonGroup buttonGroup2; private javax.swing.JPanel classEditorPanel; private javax.swing.JPanel classEditorPanel1; private javax.swing.JLabel classNameLbl; private javax.swing.JLabel classNameLbl1; private javax.swing.JLabel classNameLbl2; private javax.swing.JLabel classNameLbl3; private javax.swing.JTextField classNameTxt; private javax.swing.JTextField classNameTxt1; private javax.swing.JTextField classNameTxt2; private javax.swing.JButton createNewClassbtn; private javax.swing.JButton deleteClassbtn; private javax.swing.JButton draw_graph_btn; private javax.swing.JButton editClassbtn; private javax.swing.JCheckBox enabledClassCheck; private javax.swing.JPanel graph_panel; private javax.swing.JPanel inicioPanel; private javax.swing.JButton jButton1; private javax.swing.JButton jButton2; private javax.swing.JButton jButton3; private javax.swing.JButton jButton4; private javax.swing.JButton jButton5; private javax.swing.JButton jButton6; private javax.swing.JComboBox jComboBox1; private javax.swing.JComboBox jComboBox2; private javax.swing.JComboBox jComboBox3; private javax.swing.JLabel jLabel10; private javax.swing.JLabel jLabel11; private javax.swing.JLabel jLabel12; private javax.swing.JLabel jLabel13; private javax.swing.JLabel jLabel14; private javax.swing.JLabel jLabel15; private javax.swing.JLabel jLabel16; private javax.swing.JLabel jLabel17; private javax.swing.JLabel jLabel18; private javax.swing.JLabel jLabel19; private javax.swing.JLabel jLabel2; private javax.swing.JLabel jLabel20; private javax.swing.JLabel jLabel21; private javax.swing.JLabel jLabel22; private javax.swing.JLabel jLabel23; private javax.swing.JLabel jLabel24; private javax.swing.JLabel jLabel25; private javax.swing.JLabel jLabel26; private javax.swing.JLabel jLabel27; private javax.swing.JLabel jLabel28; private javax.swing.JLabel jLabel29; private javax.swing.JLabel jLabel3; private javax.swing.JLabel jLabel30; private javax.swing.JLabel jLabel31; private javax.swing.JLabel jLabel32; private javax.swing.JLabel jLabel33; private javax.swing.JLabel jLabel34; private javax.swing.JLabel jLabel35; private javax.swing.JLabel jLabel36; private javax.swing.JLabel jLabel37; private javax.swing.JLabel jLabel38; private javax.swing.JLabel jLabel39; private javax.swing.JLabel jLabel4; private javax.swing.JLabel jLabel40; private javax.swing.JLabel jLabel41; private javax.swing.JLabel jLabel42; private javax.swing.JLabel jLabel43; private javax.swing.JLabel jLabel44; private javax.swing.JLabel jLabel45; private javax.swing.JLabel jLabel46; private javax.swing.JLabel jLabel47; private javax.swing.JLabel jLabel48; private javax.swing.JLabel jLabel49; private javax.swing.JLabel jLabel5; private javax.swing.JLabel jLabel50; private javax.swing.JLabel jLabel6; private javax.swing.JLabel jLabel7; private javax.swing.JLabel jLabel8; private javax.swing.JLabel jLabel9; private javax.swing.JPanel jPanel1; private javax.swing.JPanel jPanel11; private javax.swing.JPanel jPanel12; private javax.swing.JPanel jPanel19; private javax.swing.JPanel jPanel2; private javax.swing.JPanel jPanel20; private javax.swing.JPanel jPanel21; private javax.swing.JPanel jPanel22; private javax.swing.JPanel jPanel23; private javax.swing.JPanel jPanel24; private javax.swing.JPanel jPanel25; private javax.swing.JPanel jPanel26; private javax.swing.JPanel jPanel27; private javax.swing.JPanel jPanel3; private javax.swing.JPanel jPanel4; private javax.swing.JPanel jPanel5; private javax.swing.JPanel jPanel6; private javax.swing.JPanel jPanel7; private javax.swing.JPanel jPanel8; private javax.swing.JPanel jPanel9; private javax.swing.JSeparator jSeparator1; private javax.swing.JTabbedPane jTabbedPane1; private javax.swing.JTabbedPane jTabbedPane3; private javax.swing.JTextField jTextField10; private javax.swing.JTextField jTextField11; private javax.swing.JTextField jTextField12; private javax.swing.JTextField jTextField13; private javax.swing.JTextField jTextField14; private javax.swing.JTextField jTextField15; private javax.swing.JTextField jTextField16; private javax.swing.JTextField jTextField17; private javax.swing.JTextField jTextField18; private javax.swing.JTextField jTextField19; private javax.swing.JTextField jTextField2; private javax.swing.JTextField jTextField20; private javax.swing.JTextField jTextField21; private javax.swing.JTextField jTextField22; private javax.swing.JTextField jTextField23; private javax.swing.JTextField jTextField24; private javax.swing.JTextField jTextField25; private javax.swing.JTextField jTextField26; private javax.swing.JTextField jTextField27; private javax.swing.JTextField jTextField28; private javax.swing.JTextField jTextField29; private javax.swing.JTextField jTextField3; private javax.swing.JTextField jTextField30; private javax.swing.JTextField jTextField31; private javax.swing.JTextField jTextField32; private javax.swing.JTextField jTextField33; private javax.swing.JTextField jTextField34; private javax.swing.JTextField jTextField35; private javax.swing.JTextField jTextField36; private javax.swing.JTextField jTextField37; private javax.swing.JTextField jTextField38; private javax.swing.JTextField jTextField39; private javax.swing.JTextField jTextField4; private javax.swing.JTextField jTextField40; private javax.swing.JTextField jTextField41; private javax.swing.JTextField jTextField5; private javax.swing.JTextField jTextField6; private javax.swing.JTextField jTextField7; private javax.swing.JTextField jTextField8; private javax.swing.JTextField jTextField9; private javax.swing.JFormattedTextField max_level; private javax.swing.JButton resetValues_btn; private javax.swing.JButton resetValues_btn1; private javax.swing.JButton saveNewClass_btn; private javax.swing.JButton saveNewClass_btn1; private javax.swing.JButton save_validated_function; private javax.swing.JButton validate_function; private javax.swing.JFormattedTextField value_a; private javax.swing.JFormattedTextField value_b; private javax.swing.JFormattedTextField value_c; // End of variables declaration//GEN-END:variables private XYDataset createDataset(int max_lvl) { // create the dataset... XYSeries series = new XYSeries("nivel"); double res = 0.0; for (int i = 0; i <= max_lvl; i++) { res = Double.parseDouble(value_a.getText().replace(",", ".")) * Math.pow(i, 3) + Double.parseDouble(value_b.getText().replace(",", ".")) * Math.pow(i, 2) + Double.parseDouble(value_a.getText().replace(",", ".")) * i; series.add(i, res); } XYSeriesCollection data = new XYSeriesCollection(series); return data; } }