List Coding

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 81

LAMPIRAN

List Program Java NetBeans


KoneksiDB.java
/*
* 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.
*/
package PROGRAM;

import java.sql.DriverManager;
import java.sql.SQLException;

/**
*
* @author ODI
*/
public class KoneksiDB {
private static java.sql.Connection koneksi;

public static java.sql.Connection getKoneksi() throws SQLException{


if (koneksi == null){
try{
String url="jdbc:mysql://localhost:3306/data_ikan";
String user="root";
String password="";
DriverManager.registerDriver(new com.mysql.jdbc.Driver());
koneksi= DriverManager.getConnection(url,user,password);
System.out.println("koneksi berhasil");
}catch (Exception e){
System.out.println("error");
}
}
return koneksi;
}
public static void main(String args[]) throws SQLException{
getKoneksi();
}
}

LOGIN.java
/*
* 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.
*/
package PROGRAM;

import java.awt.Dimension;
import java.awt.Toolkit;
import java.awt.event.KeyEvent;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;

/**
*
* @author USER
*/
public class LOGIN extends javax.swing.JFrame {

/**
* Creates new form LOGIN
*/
public LOGIN() throws SQLException {
initComponents();
Dimension layar = Toolkit.getDefaultToolkit().getScreenSize();
int x = layar.width / 2 - this.getSize().width / 2;
int y = layar.height / 2 - this.getSize().height / 2;
this.setLocation(x, y);
Connection c=KoneksiDB.getKoneksi();

/**
* 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">
private void initComponents() {

panel2 = new java.awt.Panel();


label2 = new java.awt.Label();
txtuser = new javax.swing.JTextField();
jButton1 = new javax.swing.JButton();
jButton2 = new javax.swing.JButton();
label3 = new java.awt.Label();
txtpw = new javax.swing.JPasswordField();
cbtampil = new java.awt.Checkbox();
panel1 = new java.awt.Panel();
jLabel1 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

panel2.setBackground(new java.awt.Color(255, 153, 102));

label2.setFont(new java.awt.Font("Cooper Black", 2, 18)); // NOI18N


label2.setText("Username :");
txtuser.setFont(new java.awt.Font("Tahoma", 1, 16)); // NOI18N
txtuser.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyPressed(java.awt.event.KeyEvent evt) {
txtuserKeyPressed(evt);
}
});

jButton1.setBackground(new java.awt.Color(153, 255, 153));


jButton1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
jButton1.setText("MASUK");
jButton1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED, null,
new java.awt.Color(102, 255, 102), null, null));
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});

jButton2.setBackground(new java.awt.Color(255, 0, 51));


jButton2.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
jButton2.setText("CANCEL");
jButton2.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED, null,
new java.awt.Color(102, 255, 102), null, null));
jButton2.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});

label3.setFont(new java.awt.Font("Cooper Black", 2, 18)); // NOI18N


label3.setText("Password :");

txtpw.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N


txtpw.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyPressed(java.awt.event.KeyEvent evt) {
txtpwKeyPressed(evt);
}
});

cbtampil.setForeground(new java.awt.Color(51, 51, 255));


cbtampil.setLabel("Tampilkan Password");
cbtampil.addItemListener(new java.awt.event.ItemListener() {
public void itemStateChanged(java.awt.event.ItemEvent evt) {
cbtampilItemStateChanged(evt);
}
});

javax.swing.GroupLayout panel2Layout = new javax.swing.GroupLayout(panel2);


panel2.setLayout(panel2Layout);
panel2Layout.setHorizontalGroup(
panel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panel2Layout.createSequentialGroup()
.addContainerGap()
.addGroup(panel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panel2Layout.createSequentialGroup()
.addComponent(label3, javax.swing.GroupLayout.PREFERRED_SIZE, 115,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(panel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panel2Layout.createSequentialGroup()
.addComponent(cbtampil, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(0, 0, Short.MAX_VALUE))
.addComponent(txtpw)))
.addGroup(panel2Layout.createSequentialGroup()
.addGroup(panel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panel2Layout.createSequentialGroup()
.addComponent(label2, javax.swing.GroupLayout.PREFERRED_SIZE, 115,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txtuser, javax.swing.GroupLayout.PREFERRED_SIZE, 287,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(panel2Layout.createSequentialGroup()
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 137,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 137,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGap(0, 0, Short.MAX_VALUE)))
.addContainerGap())
);
panel2Layout.setVerticalGroup(
panel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panel2Layout.createSequentialGroup()
.addContainerGap()
.addGroup(panel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(txtuser, javax.swing.GroupLayout.PREFERRED_SIZE, 41,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(panel2Layout.createSequentialGroup()
.addGap(7, 7, 7)
.addComponent(label2, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(panel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(label3, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(txtpw, javax.swing.GroupLayout.PREFERRED_SIZE, 38,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(cbtampil, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(panel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 35,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 35,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap(39, Short.MAX_VALUE))
);

panel1.setBackground(new java.awt.Color(153, 255, 153));

jLabel1.setBackground(new java.awt.Color(204, 255, 204));


jLabel1.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
jLabel1.setText("LOG IN");

jLabel3.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N


jLabel3.setText("USER");

javax.swing.GroupLayout panel1Layout = new javax.swing.GroupLayout(panel1);


panel1.setLayout(panel1Layout);
panel1Layout.setHorizontalGroup(
panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel3)
.addContainerGap())
);
panel1Layout.setVerticalGroup(
panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panel1Layout.createSequentialGroup()
.addGap(10, 10, 10)
.addGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel1)
.addComponent(jLabel3))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);

javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());


getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(panel1, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(panel2, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addContainerGap())
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(panel1, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(panel2, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);

pack();
}// </editor-fold>

private void txtuserKeyPressed(java.awt.event.KeyEvent evt) {


// TODO add your handling code here:
if (evt.getKeyCode() == KeyEvent.VK_ENTER) {
txtpw.requestFocus();
}
}

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {


try{
Connection c=KoneksiDB.getKoneksi();
Statement s= c.createStatement();
String sql="SELECT * FROM login WHERE nama='" + txtuser.getText()+"' and password='"+txtpw.getText()+"'";
ResultSet r=s.executeQuery(sql);
if (r.next()){
DASHBOARD n= new DASHBOARD();
n.setVisible(true);
dispose();
this.setVisible(false);
}else {
JOptionPane.showMessageDialog(null, "Data yang Anda Masukkan Salah, Silahkan Isi Ulang ");
txtuser.requestFocus();
txtuser.setText("");
txtpw.setText("");
}
} catch (SQLException ex) {
System.out.println("GAGAL PARSING DATA");
}
}

private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
this.setVisible(false);
}

private void txtpwKeyPressed(java.awt.event.KeyEvent evt) {


if (evt.getKeyCode() == KeyEvent.VK_ENTER) {
try{
Connection c=KoneksiDB.getKoneksi();
Statement s= c.createStatement();
String sql="SELECT * FROM login WHERE nama='" + txtuser.getText()+"' and password='"+txtpw.getText()
+"'";
ResultSet r=s.executeQuery(sql);
if (r.next()){
DASHBOARD n= new DASHBOARD();
n.setVisible(true);
dispose();
this.setVisible(false);
}else {
JOptionPane.showMessageDialog(null, "Data yang Anda Masukkan Salah, Silahkan Isi Ulang ");
txtuser.requestFocus();
txtuser.setText("");
txtpw.setText("");
}
} catch (SQLException ex) {
System.out.println("GAGAL PARSING DATA");
}
}
}

private void cbtampilItemStateChanged(java.awt.event.ItemEvent evt) {


if(cbtampil.getState()==true){
txtpw.setEchoChar((char)0);
txtpw.requestFocus();
}else{
txtpw.setEchoChar('*');
txtpw.requestFocus();
}
}

/**
* @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(LOGIN.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(LOGIN.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(LOGIN.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(LOGIN.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
}
//</editor-fold>
//</editor-fold>

/* Create and display the form */


java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
try {
new LOGIN().setVisible(true);
} catch (SQLException ex) {
Logger.getLogger(LOGIN.class.getName()).log(Level.SEVERE, null, ex);
}
}
});
}

// Variables declaration - do not modify


private java.awt.Checkbox cbtampil;
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel3;
private java.awt.Label label2;
private java.awt.Label label3;
private java.awt.Panel panel1;
private java.awt.Panel panel2;
private javax.swing.JPasswordField txtpw;
private javax.swing.JTextField txtuser;
// End of variables declaration
}

DASHBOARD.java
/*
* 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.
*/
package PROGRAM;

import java.awt.Font;
import java.io.File;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.Collections;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.filechooser.FileFilter;
import javax.swing.filechooser.FileNameExtensionFilter;
import javax.swing.table.DefaultTableModel;

/**
*
* @author ODI
*/
public class DASHBOARD extends javax.swing.JFrame {

String filename;
DefaultTableModel modelinput;
DefaultTableModel modelinput2;
DefaultTableModel modelIkanPatin;
DefaultTableModel modelIkanLele;
DefaultTableModel modelIkanNila;
DefaultTableModel modelIkanMas;
DefaultTableModel modelIkanKakap;
DefaultTableModel modelIkanBandeng;
DefaultTableModel modelIkanKerapu;
DefaultTableModel modelUdang;
DefaultTableModel modelPeramalan;
public DASHBOARD() {
initComponents();
this.setExtendedState(JFrame.MAXIMIZED_BOTH);
panel_INPUT.setVisible(true);
panel_PREDIKSI.setVisible(false);
String [] headerinput= {"No", "Tahun" , "Ikan Patin", "Ikan Lele", "Ikan Nila" , "Ikan Mas", "Ikan Kakap", "Ikan
Bandeng", "Ikan Kerapu", "Udang"};
modelinput = new DefaultTableModel(headerinput, 0);
tbl_input.setModel(modelinput);
tbl_input.getTableHeader().setFont(new Font("Tahoma", Font.BOLD, 12));

String [] headerinput2= {"No", "Tahun" , "Ikan Patin", "Ikan Lele", "Ikan Nila" , "Ikan Mas", "Ikan Kakap", "Ikan
Bandeng", "Ikan Kerapu", "Udang"};
modelinput2 = new DefaultTableModel(headerinput, 0);
tbl_input2.setModel(modelinput2);
tbl_input2.getTableHeader().setFont(new Font("Tahoma", Font.BOLD, 12));

String [] headerFuzzyfikasi= {"No", "Tahun" , "Data Aktual", "Fuzzyfikasi", "Nilai FLRG" , "NILAI PERAMALAN"};
modelIkanPatin = new DefaultTableModel(headerFuzzyfikasi, 0);
tbl_1.setModel(modelIkanPatin);
tbl_1.getTableHeader().setFont(new Font("Tahoma", Font.BOLD, 12));

modelIkanLele = new DefaultTableModel(headerFuzzyfikasi, 0);


tbl_2.setModel(modelIkanLele);
tbl_2.getTableHeader().setFont(new Font("Tahoma", Font.BOLD, 12));

modelIkanNila = new DefaultTableModel(headerFuzzyfikasi, 0);


tbl_3.setModel(modelIkanNila);
tbl_3.getTableHeader().setFont(new Font("Tahoma", Font.BOLD, 12));

modelIkanMas = new DefaultTableModel(headerFuzzyfikasi, 0);


tbl_4.setModel(modelIkanMas);
tbl_4.getTableHeader().setFont(new Font("Tahoma", Font.BOLD, 12));

modelIkanKakap = new DefaultTableModel(headerFuzzyfikasi, 0);


tbl_5.setModel(modelIkanKakap);
tbl_5.getTableHeader().setFont(new Font("Tahoma", Font.BOLD, 12));

modelIkanBandeng = new DefaultTableModel(headerFuzzyfikasi, 0);


tbl_6.setModel(modelIkanBandeng);
tbl_6.getTableHeader().setFont(new Font("Tahoma", Font.BOLD, 12));

modelIkanKerapu = new DefaultTableModel(headerFuzzyfikasi, 0);


tbl_7.setModel(modelIkanKerapu);
tbl_7.getTableHeader().setFont(new Font("Tahoma", Font.BOLD, 12));

modelUdang = new DefaultTableModel(headerFuzzyfikasi, 0);


tbl_8.setModel(modelUdang);
tbl_8.getTableHeader().setFont(new Font("Tahoma", Font.BOLD, 12));

String [] headerPeramalan= {"No", "Tahun","Jenis Ikan", "Data Aktual", "NILAI PERAMALAN","MAPE"};


modelPeramalan = new DefaultTableModel(headerPeramalan, 0);
tbl_Peramalan.setModel(modelPeramalan);
tbl_Peramalan.getTableHeader().setFont(new Font("Tahoma", Font.BOLD, 14));
tbl_Peramalan.setFont(new Font("Tahoma", Font.BOLD, 12));

tampilInput();
tampilInput2();
}

private void tampilInput(){


int row=tbl_input.getRowCount();
for(int a=0 ; a<row ; a++){
modelinput.removeRow(0);
}
int no=1;
try {
Connection cn = KoneksiDB.getKoneksi();
ResultSet rs= cn.createStatement() .executeQuery("SELECT * FROM tabel_produksi_ikan");

while (rs.next()){
String data[]=
{String.valueOf(no),rs.getString(1),rs.getString(2),rs.getString(3),rs.getString(4),rs.getString(5),rs.getString(6),rs.getS
tring(7),rs.getString(8),rs.getString(9)};
modelinput.addRow(data);
no++;
}
tbl_input.setModel(modelinput);
} catch (SQLException ex) {
System.out.println("GAGAL TAMPILKAN DARI DATABASE");
}
}
private void tampilInput2(){
int row=tbl_input2.getRowCount();
for(int a=0 ; a<row ; a++){
modelinput2.removeRow(0);
}
int no=1;
try {
Connection cn = KoneksiDB.getKoneksi();
ResultSet rs= cn.createStatement() .executeQuery("SELECT * FROM tabel_produksi_ikan");

while (rs.next()){
String data[]=
{String.valueOf(no),rs.getString(1),rs.getString(2),rs.getString(3),rs.getString(4),rs.getString(5),rs.getString(6),rs.getS
tring(7),rs.getString(8),rs.getString(9)};
modelinput2.addRow(data);
no++;
}
tbl_input2.setModel(modelinput2);
} catch (SQLException ex) {
System.out.println("GAGAL TAMPILKAN DARI DATABASE");
}
}
private void reset(){
cmb_tahun.setSelectedIndex(0);
txt_patin.setText("");
txt_lele.setText("");
txt_nila.setText("");
txt_mas.setText("");
txt_kakap.setText("");
txt_bandeng.setText("");
txt_kerapu.setText("");
txt_udang.setText("");
}
private void tambah(){
String tahun=(String) cmb_tahun.getSelectedItem();
String patin=txt_patin.getText();
String lele=txt_lele.getText();
String nila=txt_nila.getText();
String mas=txt_mas.getText();
String kakap=txt_kakap.getText();
String bandeng=txt_bandeng.getText();
String kerapu=txt_kerapu.getText();
String udang=txt_udang.getText();
try {
Connection cn=KoneksiDB.getKoneksi();
cn.createStatement().executeUpdate("insert into tabel_produksi_ikan
values"+"('"+tahun+"','"+patin+"','"+lele+"','"+nila+"','"+mas+"','"+kakap+"','"+bandeng+"','"+kerapu+"','"+udang+"'
)");
JOptionPane.showMessageDialog(null, "Berhasil Mengisi Data");
tampilInput();
reset();
}catch(Exception e){
JOptionPane.showMessageDialog(null, "GAGAL MENAMBAHKAN DATA");
}
}
private void edit(){
String tahun=(String) cmb_tahun.getSelectedItem();
String patin=txt_patin.getText();
String lele=txt_lele.getText();
String nila=txt_nila.getText();
String mas=txt_mas.getText();
String kakap=txt_kakap.getText();
String bandeng=txt_bandeng.getText();
String kerapu=txt_kerapu.getText();
String udang=txt_udang.getText();
try {
Connection cn = KoneksiDB.getKoneksi();
cn.createStatement().executeUpdate("update tabel_produksi_ikan set
patin='"+patin+"',lele='"+lele+"',nila='"+nila+"',mas='"+mas+"',kakap='"+kakap+"',bandeng='"+bandeng+"',kerapu='
"+kerapu+"',udang='"+udang+"' where tahun='"+tahun+"'");
JOptionPane.showMessageDialog(null,"BERHASIL DI UPDATE !!!");
tampilInput();
reset();
} catch (SQLException ex) {
JOptionPane.showMessageDialog(null,"ADA KESALAHAN MENGEDIT DATA !!!");
}
}
private void hapus(){
String tahun=(String) cmb_tahun.getSelectedItem();
int jawab = JOptionPane.showOptionDialog(this,
"Anda Akan Menghapus Data Tahun "+tahun+", TETAP LANJUTKAN...? ",
"WARNING!!!",
JOptionPane.YES_NO_OPTION,
JOptionPane.QUESTION_MESSAGE, null, null, null);

if(jawab == JOptionPane.YES_OPTION){
try {
Connection cn = KoneksiDB.getKoneksi();
cn.createStatement().executeUpdate("delete from tabel_produksi_ikan where tahun='"+tahun+"'");
JOptionPane.showMessageDialog(null,"DATA PRODUKSI IKAN TAHUN "+tahun+" BERHASIL DIHAPUS !!!");
tampilInput();
reset();
}catch (SQLException e){
JOptionPane.showMessageDialog(null,"Periksa Kembali !!!");
}
}
}

private void resetPeramalan(){


txt_max1.setText("X MAX : ");
txt_min1.setText("X MIN : ");
txt_banyakKelas1.setText("BANYAK KELAS : ");
txt_rentangKelas1.setText("RENTANG KELAS : ");
txt_intervalKelas1.setText("INTERVAL KELAS : ");
txt_IntervalA1_1.setText("A1 : ");
txt_IntervalA2_1.setText("A2 : ");
txt_IntervalA3_1.setText("A3 : ");
txt_IntervalA4_1.setText("A4 : ");
a1_1.setText("A1 : ");
a2_1.setText("A2 : ");
a3_1.setText("A3 : ");
a4_1.setText("A4 : ");

txt_max2.setText("X MAX : ");


txt_min2.setText("X MIN : ");
txt_banyakKelas2.setText("BANYAK KELAS : ");
txt_rentangKelas2.setText("RENTANG KELAS : ");
txt_intervalKelas2.setText("INTERVAL KELAS : ");
txt_IntervalA1_2.setText("A1 : ");
txt_IntervalA2_2.setText("A2 : ");
txt_IntervalA3_2.setText("A3 : ");
txt_IntervalA4_2.setText("A4 : ");
a1_2.setText("A1 : ");
a2_2.setText("A2 : ");
a3_2.setText("A3 : ");
a4_2.setText("A4 : ");

txt_max3.setText("X MAX : ");


txt_min3.setText("X MIN : ");
txt_banyakKelas3.setText("BANYAK KELAS : ");
txt_rentangKelas3.setText("RENTANG KELAS : ");
txt_intervalKelas3.setText("INTERVAL KELAS : ");
txt_IntervalA1_3.setText("A1 : ");
txt_IntervalA2_3.setText("A2 : ");
txt_IntervalA3_3.setText("A3 : ");
txt_IntervalA4_3.setText("A4 : ");
a1_3.setText("A1 : ");
a2_3.setText("A2 : ");
a3_3.setText("A3 : ");
a4_3.setText("A4 : ");

txt_max4.setText("X MAX : ");


txt_min4.setText("X MIN : ");
txt_banyakKelas4.setText("BANYAK KELAS : ");
txt_rentangKelas4.setText("RENTANG KELAS : ");
txt_intervalKelas4.setText("INTERVAL KELAS : ");
txt_IntervalA1_4.setText("A1 : ");
txt_IntervalA2_4.setText("A2 : ");
txt_IntervalA3_4.setText("A3 : ");
txt_IntervalA4_4.setText("A4 : ");
a1_4.setText("A1 : ");
a2_4.setText("A2 : ");
a3_4.setText("A3 : ");
a4_4.setText("A4 : ");

txt_max5.setText("X MAX : ");


txt_min5.setText("X MIN : ");
txt_banyakKelas5.setText("BANYAK KELAS : ");
txt_rentangKelas5.setText("RENTANG KELAS : ");
txt_intervalKelas5.setText("INTERVAL KELAS : ");
txt_IntervalA1_5.setText("A1 : ");
txt_IntervalA2_5.setText("A2 : ");
txt_IntervalA3_5.setText("A3 : ");
txt_IntervalA4_5.setText("A4 : ");
a1_5.setText("A1 : ");
a2_5.setText("A2 : ");
a3_5.setText("A3 : ");
a4_5.setText("A4 : ");

txt_max6.setText("X MAX : ");


txt_min6.setText("X MIN : ");
txt_banyakKelas6.setText("BANYAK KELAS : ");
txt_rentangKelas6.setText("RENTANG KELAS : ");
txt_intervalKelas6.setText("INTERVAL KELAS : ");
txt_IntervalA1_6.setText("A1 : ");
txt_IntervalA2_6.setText("A2 : ");
txt_IntervalA3_6.setText("A3 : ");
txt_IntervalA4_6.setText("A4 : ");
a1_6.setText("A1 : ");
a2_6.setText("A2 : ");
a3_6.setText("A3 : ");
a4_6.setText("A4 : ");

txt_max7.setText("X MAX : ");


txt_min7.setText("X MIN : ");
txt_banyakKelas7.setText("BANYAK KELAS : ");
txt_rentangKelas7.setText("RENTANG KELAS : ");
txt_intervalKelas7.setText("INTERVAL KELAS : ");
txt_IntervalA1_7.setText("A1 : ");
txt_IntervalA2_7.setText("A2 : ");
txt_IntervalA3_7.setText("A3 : ");
txt_IntervalA4_7.setText("A4 : ");
a1_7.setText("A1 : ");
a2_7.setText("A2 : ");
a3_7.setText("A3 : ");
a4_7.setText("A4 : ");

txt_max8.setText("X MAX : ");


txt_min8.setText("X MIN : ");
txt_banyakKelas8.setText("BANYAK KELAS : ");
txt_rentangKelas8.setText("RENTANG KELAS : ");
txt_intervalKelas8.setText("INTERVAL KELAS : ");
txt_IntervalA1_8.setText("A1 : ");
txt_IntervalA2_8.setText("A2 : ");
txt_IntervalA3_8.setText("A3 : ");
txt_IntervalA4_8.setText("A4 : ");
a1_8.setText("A1 : ");
a2_8.setText("A2 : ");
a3_8.setText("A3 : ");
a4_8.setText("A4 : ");

modelIkanPatin.setRowCount(0);
modelIkanLele.setRowCount(0);
modelIkanNila.setRowCount(0);
modelIkanMas.setRowCount(0);
modelIkanKakap.setRowCount(0);
modelIkanBandeng.setRowCount(0);
modelIkanKerapu.setRowCount(0);
modelUdang.setRowCount(0);
modelPeramalan.setRowCount(0);
}

private void prosesIkanPatin(){


//MENGAMBIL DATA NILAI PRODUKSI IKAN PATIN
ArrayList <Double> data= new ArrayList<>();
ArrayList <Double> datalatih= new ArrayList<>();
int row = tbl_input2.getRowCount();
for (int i = 0; i < row-1; i++) {
double akt=Double.parseDouble(String.valueOf(tbl_input2.getValueAt(i, 2)));
datalatih.add(akt);
}
for (int i = 0; i < row; i++) {
double akt=Double.parseDouble(String.valueOf(tbl_input2.getValueAt(i, 2)));
data.add(akt);
}
//MENCARI NILAI INTERVAL YANG TERBENTUK
double max=Collections.max(datalatih);
double min=Collections.min(datalatih);
double banyak_kelas=1+3.3*(Math.log10(11));
double rentang_kelas=max-min;
double interval_kelas=rentang_kelas/4;
double a1_min=min;
double a1_max=a1_min+interval_kelas;
double a2_min=a1_max;
double a2_max=a2_min+interval_kelas;
double a3_min=a2_max;
double a3_max=a3_min+interval_kelas;
double a4_min=a3_max;
double a4_max=a4_min+interval_kelas;
double median_a1=(a1_min+a1_max)/2;
double median_a2=(a2_min+a2_max)/2;
double median_a3=(a3_min+a3_max)/2;
double median_a4=(a4_min+a4_max)/2;

DecimalFormat df = new DecimalFormat("#.###");

txt_max1.setText("X MAX : "+df.format(max));


txt_min1.setText("X MIN : "+min);
txt_banyakKelas1.setText("BANYAK KELAS : "+df.format(banyak_kelas));
txt_rentangKelas1.setText("RENTANG KELAS : "+df.format(rentang_kelas));
txt_intervalKelas1.setText("INTERVAL KELAS : "+df.format(interval_kelas));
txt_IntervalA1_1.setText("("+df.format(a1_min)+" - "+df.format(a1_max)+")"+" => A1 :
"+df.format(median_a1));
txt_IntervalA2_1.setText("("+df.format(a2_min)+" - "+df.format(a2_max)+")"+" => A2 :
"+df.format(median_a2));
txt_IntervalA3_1.setText("("+df.format(a3_min)+" - "+df.format(a3_max)+")"+" => A3 :
"+df.format(median_a3));
txt_IntervalA4_1.setText("("+df.format(a4_min)+" - "+df.format(a4_max)+")"+" => A4 :
"+df.format(median_a4));

//MENCARI NILAI FLRG


double a1= (median_a1+median_a2+median_a3)/3;
double a2= median_a3;
double a3= (median_a1+median_a3+median_a4)/3;
double a4= (median_a1+median_a4)/2;

a1_1.setText("A1 : "+df.format(a1));
a2_1.setText("A2 : "+df.format(a2));
a3_1.setText("A3 : "+df.format(a3));
a4_1.setText("A4 : "+df.format(a4));
int no=1;
String fz="";
ArrayList <Double> flrg=new ArrayList<>();
double mape=0;
for (int i = 0; i < row; i++) {
if(data.get(i)>=a1_min && data.get(i)<=a1_max){
fz="A1";
}else if (data.get(i)>a2_min && data.get(i) <=a2_max) {
fz="A2";
}else if (data.get(i)>a3_min && data.get(i) <=a3_max) {
fz="A3";
}else if (data.get(i)>a4_min && data.get(i) <=a4_max) {
fz="A4";
}
if(fz.equals("A1")){
flrg.add(a1);
}else if(fz.equals("A2")){
flrg.add(a2);
}else if(fz.equals("A3")){
flrg.add(a3);
}else if(fz.equals("A4")){
flrg.add(a4);
}

double peramalan=0;

if(i==0){
String obj[]={String.valueOf(no),String.valueOf(tbl_input2.getValueAt(i,
1)),String.valueOf(data.get(i)),fz,String.valueOf(df.format(flrg.get(i))),"NAN"};
modelIkanPatin.addRow(obj);
no++;
tbl_1.setModel(modelIkanPatin);
}else if(i==row-1){
String obj[]={String.valueOf(no),String.valueOf(tbl_input2.getValueAt(i,
1)),String.valueOf(data.get(i)),"-","-",String.valueOf(df.format(flrg.get(i-1)))};
modelIkanPatin.addRow(obj);
no++;
tbl_1.setModel(modelIkanPatin);
mape=Math.abs(data.get(i)-flrg.get(i-1))/data.get(i)*100;
mape_1.setText("MAPE : "+df.format(mape)+" %");
}else{
String obj[]={String.valueOf(no),String.valueOf(tbl_input2.getValueAt(i,
1)),String.valueOf(data.get(i)),fz,String.valueOf(df.format(flrg.get(i))),String.valueOf(df.format(flrg.get(i-1)))};
modelIkanPatin.addRow(obj);
no++;
tbl_1.setModel(modelIkanPatin);
}
}
}

private void prosesIkanLele(){


//MENGAMBIL DATA NILAI PRODUKSI IKAN PATIN
ArrayList <Double> data= new ArrayList<>();
ArrayList <Double> datalatih= new ArrayList<>();
int row = tbl_input2.getRowCount();
for (int i = 0; i < row-1; i++) {
double akt=Double.parseDouble(String.valueOf(tbl_input2.getValueAt(i, 3)));
datalatih.add(akt);
}
for (int i = 0; i < row; i++) {
double akt=Double.parseDouble(String.valueOf(tbl_input2.getValueAt(i, 3)));
data.add(akt);
}
//MENCARI NILAI INTERVAL YANG TERBENTUK
double max=Collections.max(datalatih);
double min=Collections.min(datalatih);
double banyak_kelas=1+3.3*(Math.log10(11));
double rentang_kelas=max-min;
double interval_kelas=rentang_kelas/4;
double a1_min=min;
double a1_max=a1_min+interval_kelas;
double a2_min=a1_max;
double a2_max=a2_min+interval_kelas;
double a3_min=a2_max;
double a3_max=a3_min+interval_kelas;
double a4_min=a3_max;
double a4_max=a4_min+interval_kelas;
double median_a1=(a1_min+a1_max)/2;
double median_a2=(a2_min+a2_max)/2;
double median_a3=(a3_min+a3_max)/2;
double median_a4=(a4_min+a4_max)/2;

DecimalFormat df = new DecimalFormat("#.###");

txt_max2.setText("X MAX : "+df.format(max));


txt_min2.setText("X MIN : "+min);
txt_banyakKelas2.setText("BANYAK KELAS : "+df.format(banyak_kelas));
txt_rentangKelas2.setText("RENTANG KELAS : "+df.format(rentang_kelas));
txt_intervalKelas2.setText("INTERVAL KELAS : "+df.format(interval_kelas));
txt_IntervalA1_2.setText("("+df.format(a1_min)+" - "+df.format(a1_max)+")"+" => A1 :
"+df.format(median_a1));
txt_IntervalA2_2.setText("("+df.format(a2_min)+" - "+df.format(a2_max)+")"+" => A2 :
"+df.format(median_a2));
txt_IntervalA3_2.setText("("+df.format(a3_min)+" - "+df.format(a3_max)+")"+" => A3 :
"+df.format(median_a3));
txt_IntervalA4_2.setText("("+df.format(a4_min)+" - "+df.format(a4_max)+")"+" => A4 :
"+df.format(median_a4));

//MENCARI NILAI FLRG


double a1= (median_a1+median_a2)/2;
double a2= (median_a2+median_a3+median_a4)/3;
double a3= median_a3;
double a4= median_a4;

a1_2.setText("A1 : "+df.format(a1));
a2_2.setText("A2 : "+df.format(a2));
a3_2.setText("A3 : "+df.format(a3));
a4_2.setText("A4 : "+df.format(a4));
int no=1;
String fz="";
ArrayList <Double> flrg=new ArrayList<>();
double mape=0;
for (int i = 0; i < row; i++) {
if(data.get(i)>=a1_min && data.get(i)<=a1_max){
fz="A1";
}else if (data.get(i)>a2_min && data.get(i) <=a2_max) {
fz="A2";
}else if (data.get(i)>a3_min && data.get(i) <=a3_max) {
fz="A3";
}else if (data.get(i)>a4_min && data.get(i) <=a4_max) {
fz="A4";
}

if(fz.equals("A1")){
flrg.add(a1);
}else if(fz.equals("A2")){
flrg.add(a2);
}else if(fz.equals("A3")){
flrg.add(a3);
}else if(fz.equals("A4")){
flrg.add(a4);
}

double peramalan=0;

if(i==0){
String obj[]={String.valueOf(no),String.valueOf(tbl_input2.getValueAt(i,
1)),String.valueOf(data.get(i)),fz,String.valueOf(df.format(flrg.get(i))),"NAN"};
modelIkanLele.addRow(obj);
no++;
tbl_2.setModel(modelIkanLele);
}else if(i==row-1){
String obj[]={String.valueOf(no),String.valueOf(tbl_input2.getValueAt(i,
1)),String.valueOf(data.get(i)),"-","-",String.valueOf(df.format(flrg.get(i-1)))};
modelIkanLele.addRow(obj);
no++;
tbl_2.setModel(modelIkanLele);
mape=Math.abs(data.get(i)-flrg.get(i-1))/data.get(i)*100;
mape_2.setText("MAPE : "+df.format(mape)+" %");
}else{
String obj[]={String.valueOf(no),String.valueOf(tbl_input2.getValueAt(i,
1)),String.valueOf(data.get(i)),fz,String.valueOf(df.format(flrg.get(i))),String.valueOf(df.format(flrg.get(i-1)))};
modelIkanLele.addRow(obj);
no++;
tbl_2.setModel(modelIkanLele);
}
}
}

private void prosesIkanNila(){


//MENGAMBIL DATA NILAI PRODUKSI IKAN PATIN
ArrayList <Double> data= new ArrayList<>();
ArrayList <Double> datalatih= new ArrayList<>();
int row = tbl_input2.getRowCount();
for (int i = 0; i < row-1; i++) {
double akt=Double.parseDouble(String.valueOf(tbl_input2.getValueAt(i, 4)));
datalatih.add(akt);
}
for (int i = 0; i < row; i++) {
double akt=Double.parseDouble(String.valueOf(tbl_input2.getValueAt(i, 4)));
data.add(akt);
}
//MENCARI NILAI INTERVAL YANG TERBENTUK
double max=Collections.max(datalatih);
double min=Collections.min(datalatih);
double banyak_kelas=1+3.3*(Math.log10(11));
double rentang_kelas=max-min;
double interval_kelas=rentang_kelas/4;
double a1_min=min;
double a1_max=a1_min+interval_kelas;
double a2_min=a1_max;
double a2_max=a2_min+interval_kelas;
double a3_min=a2_max;
double a3_max=a3_min+interval_kelas;
double a4_min=a3_max;
double a4_max=a4_min+interval_kelas;
double median_a1=(a1_min+a1_max)/2;
double median_a2=(a2_min+a2_max)/2;
double median_a3=(a3_min+a3_max)/2;
double median_a4=(a4_min+a4_max)/2;

DecimalFormat df = new DecimalFormat("#.###");

txt_max3.setText("X MAX : "+df.format(max));


txt_min3.setText("X MIN : "+min);
txt_banyakKelas3.setText("BANYAK KELAS : "+df.format(banyak_kelas));
txt_rentangKelas3.setText("RENTANG KELAS : "+df.format(rentang_kelas));
txt_intervalKelas3.setText("INTERVAL KELAS : "+df.format(interval_kelas));
txt_IntervalA1_3.setText("("+df.format(a1_min)+" - "+df.format(a1_max)+")"+" => A1 :
"+df.format(median_a1));
txt_IntervalA2_3.setText("("+df.format(a2_min)+" - "+df.format(a2_max)+")"+" => A2 :
"+df.format(median_a2));
txt_IntervalA3_3.setText("("+df.format(a3_min)+" - "+df.format(a3_max)+")"+" => A3 :
"+df.format(median_a3));
txt_IntervalA4_3.setText("("+df.format(a4_min)+" - "+df.format(a4_max)+")"+" => A4 :
"+df.format(median_a4));

//MENCARI NILAI FLRG


double a1= (median_a1+median_a2+median_a4)/3;
double a2= (median_a1+median_a2)/2;
double a3= median_a3;
double a4= median_a3;

a1_3.setText("A1 : "+df.format(a1));
a2_3.setText("A2 : "+df.format(a2));
a3_3.setText("A3 : "+df.format(a3));
a4_3.setText("A4 : "+df.format(a4));
int no=1;
String fz="";
ArrayList <Double> flrg=new ArrayList<>();
double mape=0;
for (int i = 0; i < row; i++) {
if(data.get(i)>=a1_min && data.get(i)<=a1_max){
fz="A1";
}else if (data.get(i)>a2_min && data.get(i) <=a2_max) {
fz="A2";
}else if (data.get(i)>a3_min && data.get(i) <=a3_max) {
fz="A3";
}else if (data.get(i)>a4_min && data.get(i) <=a4_max) {
fz="A4";
}

if(fz.equals("A1")){
flrg.add(a1);
}else if(fz.equals("A2")){
flrg.add(a2);
}else if(fz.equals("A3")){
flrg.add(a3);
}else if(fz.equals("A4")){
flrg.add(a4);
}

double peramalan=0;

if(i==0){
String obj[]={String.valueOf(no),String.valueOf(tbl_input2.getValueAt(i,
1)),String.valueOf(data.get(i)),fz,String.valueOf(df.format(flrg.get(i))),"NAN"};
modelIkanNila.addRow(obj);
no++;
tbl_3.setModel(modelIkanNila);
}else if(i==row-1){
String obj[]={String.valueOf(no),String.valueOf(tbl_input2.getValueAt(i,
1)),String.valueOf(data.get(i)),"-","-",String.valueOf(df.format(flrg.get(i-1)))};
modelIkanNila.addRow(obj);
no++;
tbl_3.setModel(modelIkanNila);
mape=Math.abs(data.get(i)-flrg.get(i-1))/data.get(i)*100;
mape_3.setText("MAPE : "+df.format(mape)+" %");
}else{
String obj[]={String.valueOf(no),String.valueOf(tbl_input2.getValueAt(i,
1)),String.valueOf(data.get(i)),fz,String.valueOf(df.format(flrg.get(i))),String.valueOf(df.format(flrg.get(i-1)))};
modelIkanNila.addRow(obj);
no++;
tbl_3.setModel(modelIkanNila);
}
}
}

private void prosesIkanMas(){


//MENGAMBIL DATA NILAI PRODUKSI IKAN PATIN
ArrayList <Double> data= new ArrayList<>();
ArrayList <Double> datalatih= new ArrayList<>();
int row = tbl_input2.getRowCount();
for (int i = 0; i < row-1; i++) {
double akt=Double.parseDouble(String.valueOf(tbl_input2.getValueAt(i, 5)));
datalatih.add(akt);
}
for (int i = 0; i < row; i++) {
double akt=Double.parseDouble(String.valueOf(tbl_input2.getValueAt(i, 5)));
data.add(akt);
}
//MENCARI NILAI INTERVAL YANG TERBENTUK
double max=Collections.max(datalatih);
double min=Collections.min(datalatih);
double banyak_kelas=1+3.3*(Math.log10(11));
double rentang_kelas=max-min;
double interval_kelas=rentang_kelas/4;
double a1_min=min;
double a1_max=a1_min+interval_kelas;
double a2_min=a1_max;
double a2_max=a2_min+interval_kelas;
double a3_min=a2_max;
double a3_max=a3_min+interval_kelas;
double a4_min=a3_max;
double a4_max=a4_min+interval_kelas;
double median_a1=(a1_min+a1_max)/2;
double median_a2=(a2_min+a2_max)/2;
double median_a3=(a3_min+a3_max)/2;
double median_a4=(a4_min+a4_max)/2;

DecimalFormat df = new DecimalFormat("#.###");

txt_max4.setText("X MAX : "+df.format(max));


txt_min4.setText("X MIN : "+min);
txt_banyakKelas4.setText("BANYAK KELAS : "+df.format(banyak_kelas));
txt_rentangKelas4.setText("RENTANG KELAS : "+df.format(rentang_kelas));
txt_intervalKelas4.setText("INTERVAL KELAS : "+df.format(interval_kelas));
txt_IntervalA1_4.setText("("+df.format(a1_min)+" - "+df.format(a1_max)+")"+" => A1 :
"+df.format(median_a1));
txt_IntervalA2_4.setText("("+df.format(a2_min)+" - "+df.format(a2_max)+")"+" => A2 :
"+df.format(median_a2));
txt_IntervalA3_4.setText("("+df.format(a3_min)+" - "+df.format(a3_max)+")"+" => A3 :
"+df.format(median_a3));
txt_IntervalA4_4.setText("("+df.format(a4_min)+" - "+df.format(a4_max)+")"+" => A4 :
"+df.format(median_a4));

//MENCARI NILAI FLRG


double a1= (median_a1+median_a2)/2;
double a2= (median_a2+median_a4)/2;
double a3= median_a3;
double a4= median_a4/2.5;

a1_4.setText("A1 : "+df.format(a1));
a2_4.setText("A2 : "+df.format(a2));
a3_4.setText("A3 : "+df.format(a3));
a4_4.setText("A4 : "+df.format(a4));
int no=1;
String fz="";
ArrayList <Double> flrg=new ArrayList<>();
double mape=0;
for (int i = 0; i < row; i++) {
if(data.get(i)>=a1_min && data.get(i)<=a1_max){
fz="A1";
}else if (data.get(i)>a2_min && data.get(i) <=a2_max) {
fz="A2";
}else if (data.get(i)>a3_min && data.get(i) <=a3_max) {
fz="A3";
}else if (data.get(i)>a4_min && data.get(i) <=a4_max) {
fz="A4";
}

if(fz.equals("A1")){
flrg.add(a1);
}else if(fz.equals("A2")){
flrg.add(a2);
}else if(fz.equals("A3")){
flrg.add(a3);
}else if(fz.equals("A4")){
flrg.add(a4);
}

double peramalan=0;

if(i==0){
String obj[]={String.valueOf(no),String.valueOf(tbl_input2.getValueAt(i,
1)),String.valueOf(data.get(i)),fz,String.valueOf(df.format(flrg.get(i))),"NAN"};
modelIkanMas.addRow(obj);
no++;
tbl_4.setModel(modelIkanMas);
}else if(i==row-1){
String obj[]={String.valueOf(no),String.valueOf(tbl_input2.getValueAt(i,
1)),String.valueOf(data.get(i)),"-","-",String.valueOf(df.format(flrg.get(i-1)))};
modelIkanMas.addRow(obj);
no++;
tbl_4.setModel(modelIkanMas);
mape=Math.abs(data.get(i)-flrg.get(i-1))/data.get(i)*100;
mape_4.setText("MAPE : "+df.format(mape)+" %");
}else{
String obj[]={String.valueOf(no),String.valueOf(tbl_input2.getValueAt(i,
1)),String.valueOf(data.get(i)),fz,String.valueOf(df.format(flrg.get(i))),String.valueOf(df.format(flrg.get(i-1)))};
modelIkanMas.addRow(obj);
no++;
tbl_4.setModel(modelIkanMas);
}
}
}

private void prosesIkanKakap(){


//MENGAMBIL DATA NILAI PRODUKSI IKAN PATIN
ArrayList <Double> data= new ArrayList<>();
ArrayList <Double> datalatih= new ArrayList<>();
int row = tbl_input2.getRowCount();
for (int i = 0; i < row-1; i++) {
double akt=Double.parseDouble(String.valueOf(tbl_input2.getValueAt(i, 6)));
datalatih.add(akt);
}
for (int i = 0; i < row; i++) {
double akt=Double.parseDouble(String.valueOf(tbl_input2.getValueAt(i, 6)));
data.add(akt);
}
//MENCARI NILAI INTERVAL YANG TERBENTUK
double max=Collections.max(datalatih);
double min=Collections.min(datalatih);
double banyak_kelas=1+3.3*(Math.log10(11));
double rentang_kelas=max-min;
double interval_kelas=rentang_kelas/4;
double a1_min=min;
double a1_max=a1_min+interval_kelas;
double a2_min=a1_max;
double a2_max=a2_min+interval_kelas;
double a3_min=a2_max;
double a3_max=a3_min+interval_kelas;
double a4_min=a3_max;
double a4_max=a4_min+interval_kelas;
double median_a1=(a1_min+a1_max)/2;
double median_a2=(a2_min+a2_max)/2;
double median_a3=(a3_min+a3_max)/2;
double median_a4=(a4_min+a4_max)/2;

DecimalFormat df = new DecimalFormat("#.###");


txt_max5.setText("X MAX : "+df.format(max));
txt_min5.setText("X MIN : "+min);
txt_banyakKelas5.setText("BANYAK KELAS : "+df.format(banyak_kelas));
txt_rentangKelas5.setText("RENTANG KELAS : "+df.format(rentang_kelas));
txt_intervalKelas5.setText("INTERVAL KELAS : "+df.format(interval_kelas));
txt_IntervalA1_5.setText("("+df.format(a1_min)+" - "+df.format(a1_max)+")"+" => A1 :
"+df.format(median_a1));
txt_IntervalA2_5.setText("("+df.format(a2_min)+" - "+df.format(a2_max)+")"+" => A2 :
"+df.format(median_a2));
txt_IntervalA3_5.setText("("+df.format(a3_min)+" - "+df.format(a3_max)+")"+" => A3 :
"+df.format(median_a3));
txt_IntervalA4_5.setText("("+df.format(a4_min)+" - "+df.format(a4_max)+")"+" => A4 :
"+df.format(median_a4));

//MENCARI NILAI FLRG


double a1= (median_a1+median_a3+median_a4)/3;
double a2= (median_a1+median_a2)/2;
double a3= (median_a1+median_a3)/2;
double a4= median_a1+median_a4;

a1_5.setText("A1 : "+df.format(a1));
a2_5.setText("A2 : "+df.format(a2));
a3_5.setText("A3 : "+df.format(a3));
a4_5.setText("A4 : "+df.format(a4));
int no=1;
String fz="";
ArrayList <Double> flrg=new ArrayList<>();
double mape=0;
for (int i = 0; i < row; i++) {
if(data.get(i)>=a1_min && data.get(i)<=a1_max){
fz="A1";
}else if (data.get(i)>a2_min && data.get(i) <=a2_max) {
fz="A2";
}else if (data.get(i)>a3_min && data.get(i) <=a3_max) {
fz="A3";
}else if (data.get(i)>a4_min && data.get(i) <=a4_max) {
fz="A4";
}

if(fz.equals("A1")){
flrg.add(a1);
}else if(fz.equals("A2")){
flrg.add(a2);
}else if(fz.equals("A3")){
flrg.add(a3);
}else if(fz.equals("A4")){
flrg.add(a4);
}

double peramalan=0;

if(i==0){
String obj[]={String.valueOf(no),String.valueOf(tbl_input2.getValueAt(i,
1)),String.valueOf(data.get(i)),fz,String.valueOf(df.format(flrg.get(i))),"NAN"};
modelIkanKakap.addRow(obj);
no++;
tbl_5.setModel(modelIkanKakap);
}else if(i==row-1){
String obj[]={String.valueOf(no),String.valueOf(tbl_input2.getValueAt(i,
1)),String.valueOf(data.get(i)),"-","-",String.valueOf(df.format(flrg.get(i-1)))};
modelIkanKakap.addRow(obj);
no++;
tbl_5.setModel(modelIkanKakap);
mape=Math.abs(data.get(i)-flrg.get(i-1))/data.get(i)*100;
mape_5.setText("MAPE : "+df.format(mape)+" %");
}else{
String obj[]={String.valueOf(no),String.valueOf(tbl_input2.getValueAt(i,
1)),String.valueOf(data.get(i)),fz,String.valueOf(df.format(flrg.get(i))),String.valueOf(df.format(flrg.get(i-1)))};
modelIkanKakap.addRow(obj);
no++;
tbl_5.setModel(modelIkanKakap);
}
}
}

private void prosesIkanBandeng(){


//MENGAMBIL DATA NILAI PRODUKSI IKAN PATIN
ArrayList <Double> data= new ArrayList<>();
ArrayList <Double> datalatih= new ArrayList<>();
int row = tbl_input2.getRowCount();
for (int i = 0; i < row-1; i++) {
double akt=Double.parseDouble(String.valueOf(tbl_input2.getValueAt(i, 7)));
datalatih.add(akt);
}
for (int i = 0; i < row; i++) {
double akt=Double.parseDouble(String.valueOf(tbl_input2.getValueAt(i, 7)));
data.add(akt);
}
//MENCARI NILAI INTERVAL YANG TERBENTUK
double max=Collections.max(datalatih);
double min=Collections.min(datalatih);
double banyak_kelas=1+3.3*(Math.log10(11));
double rentang_kelas=max-min;
double interval_kelas=rentang_kelas/4;
double a1_min=min;
double a1_max=a1_min+interval_kelas;
double a2_min=a1_max;
double a2_max=a2_min+interval_kelas;
double a3_min=a2_max;
double a3_max=a3_min+interval_kelas;
double a4_min=a3_max;
double a4_max=a4_min+interval_kelas;
double median_a1=(a1_min+a1_max)/2;
double median_a2=(a2_min+a2_max)/2;
double median_a3=(a3_min+a3_max)/2;
double median_a4=(a4_min+a4_max)/2;

DecimalFormat df = new DecimalFormat("#.###");

txt_max6.setText("X MAX : "+df.format(max));


txt_min6.setText("X MIN : "+min);
txt_banyakKelas6.setText("BANYAK KELAS : "+df.format(banyak_kelas));
txt_rentangKelas6.setText("RENTANG KELAS : "+df.format(rentang_kelas));
txt_intervalKelas6.setText("INTERVAL KELAS : "+df.format(interval_kelas));
txt_IntervalA1_6.setText("("+df.format(a1_min)+" - "+df.format(a1_max)+")"+" => A1 :
"+df.format(median_a1));
txt_IntervalA2_6.setText("("+df.format(a2_min)+" - "+df.format(a2_max)+")"+" => A2 :
"+df.format(median_a2));
txt_IntervalA3_6.setText("("+df.format(a3_min)+" - "+df.format(a3_max)+")"+" => A3 :
"+df.format(median_a3));
txt_IntervalA4_6.setText("("+df.format(a4_min)+" - "+df.format(a4_max)+")"+" => A4 :
"+df.format(median_a4));

//MENCARI NILAI FLRG


double a1= median_a2;
double a2= (median_a1+median_a3)/2;
double a3= (median_a2+median_a3+median_a4)/3;
double a4= (median_a3+median_a4)/2;

a1_6.setText("A1 : "+df.format(a1));
a2_6.setText("A2 : "+df.format(a2));
a3_6.setText("A3 : "+df.format(a3));
a4_6.setText("A4 : "+df.format(a4));
int no=1;
String fz="";
ArrayList <Double> flrg=new ArrayList<>();
double mape=0;
for (int i = 0; i < row; i++) {
if(data.get(i)>=a1_min && data.get(i)<=a1_max){
fz="A1";
}else if (data.get(i)>a2_min && data.get(i) <=a2_max) {
fz="A2";
}else if (data.get(i)>a3_min && data.get(i) <=a3_max) {
fz="A3";
}else if (data.get(i)>a4_min && data.get(i) <=a4_max) {
fz="A4";
}

if(fz.equals("A1")){
flrg.add(a1);
}else if(fz.equals("A2")){
flrg.add(a2);
}else if(fz.equals("A3")){
flrg.add(a3);
}else if(fz.equals("A4")){
flrg.add(a4);
}
double peramalan=0;

if(i==0){
String obj[]={String.valueOf(no),String.valueOf(tbl_input2.getValueAt(i,
1)),String.valueOf(data.get(i)),fz,String.valueOf(df.format(flrg.get(i))),"NAN"};
modelIkanBandeng.addRow(obj);
no++;
tbl_6.setModel(modelIkanBandeng);
}else if(i==row-1){
String obj[]={String.valueOf(no),String.valueOf(tbl_input2.getValueAt(i,
1)),String.valueOf(data.get(i)),"-","-",String.valueOf(df.format(flrg.get(i-1)))};
modelIkanBandeng.addRow(obj);
no++;
tbl_6.setModel(modelIkanBandeng);
mape=Math.abs(data.get(i)-flrg.get(i-1))/data.get(i)*100;
mape_6.setText("MAPE : "+df.format(mape)+" %");
}else{
String obj[]={String.valueOf(no),String.valueOf(tbl_input2.getValueAt(i,
1)),String.valueOf(data.get(i)),fz,String.valueOf(df.format(flrg.get(i))),String.valueOf(df.format(flrg.get(i-1)))};
modelIkanBandeng.addRow(obj);
no++;
tbl_6.setModel(modelIkanBandeng);
}
}
}

private void prosesIkanKerapu(){


//MENGAMBIL DATA NILAI PRODUKSI IKAN PATIN
ArrayList <Double> data= new ArrayList<>();
ArrayList <Double> datalatih= new ArrayList<>();
int row = tbl_input2.getRowCount();
for (int i = 0; i < row-1; i++) {
double akt=Double.parseDouble(String.valueOf(tbl_input2.getValueAt(i, 8)));
datalatih.add(akt);
}
for (int i = 0; i < row; i++) {
double akt=Double.parseDouble(String.valueOf(tbl_input2.getValueAt(i, 8)));
data.add(akt);
}
//MENCARI NILAI INTERVAL YANG TERBENTUK
double max=Collections.max(datalatih);
double min=Collections.min(datalatih);
double banyak_kelas=1+3.3*(Math.log10(11));
double rentang_kelas=max-min;
double interval_kelas=rentang_kelas/4;
double a1_min=min;
double a1_max=a1_min+interval_kelas;
double a2_min=a1_max;
double a2_max=a2_min+interval_kelas;
double a3_min=a2_max;
double a3_max=a3_min+interval_kelas;
double a4_min=a3_max;
double a4_max=a4_min+interval_kelas;
double median_a1=(a1_min+a1_max)/2;
double median_a2=(a2_min+a2_max)/2;
double median_a3=(a3_min+a3_max)/2;
double median_a4=(a4_min+a4_max)/2;

DecimalFormat df = new DecimalFormat("#.###");

txt_max7.setText("X MAX : "+df.format(max));


txt_min7.setText("X MIN : "+min);
txt_banyakKelas7.setText("BANYAK KELAS : "+df.format(banyak_kelas));
txt_rentangKelas7.setText("RENTANG KELAS : "+df.format(rentang_kelas));
txt_intervalKelas7.setText("INTERVAL KELAS : "+df.format(interval_kelas));
txt_IntervalA1_7.setText("("+df.format(a1_min)+" - "+df.format(a1_max)+")"+" => A1 :
"+df.format(median_a1));
txt_IntervalA2_7.setText("("+df.format(a2_min)+" - "+df.format(a2_max)+")"+" => A2 :
"+df.format(median_a2));
txt_IntervalA3_7.setText("("+df.format(a3_min)+" - "+df.format(a3_max)+")"+" => A3 :
"+df.format(median_a3));
txt_IntervalA4_7.setText("("+df.format(a4_min)+" - "+df.format(a4_max)+")"+" => A4 :
"+df.format(median_a4));

//MENCARI NILAI FLRG


double a1= (median_a1+median_a2)/2;
double a2= median_a4;
double a3= (median_a1+median_a2)/2;
double a4= (median_a3+median_a4)/2;

a1_7.setText("A1 : "+df.format(a1));
a2_7.setText("A2 : "+df.format(a2));
a3_7.setText("A3 : "+df.format(a3));
a4_7.setText("A4 : "+df.format(a4));
int no=1;
String fz="";
ArrayList <Double> flrg=new ArrayList<>();
double mape=0;
for (int i = 0; i < row; i++) {
if(data.get(i)>=a1_min && data.get(i)<=a1_max){
fz="A1";
}else if (data.get(i)>a2_min && data.get(i) <=a2_max) {
fz="A2";
}else if (data.get(i)>a3_min && data.get(i) <=a3_max) {
fz="A3";
}else if (data.get(i)>a4_min && data.get(i) <=a4_max) {
fz="A4";
}

if(fz.equals("A1")){
flrg.add(a1);
}else if(fz.equals("A2")){
flrg.add(a2);
}else if(fz.equals("A3")){
flrg.add(a3);
}else if(fz.equals("A4")){
flrg.add(a4);
}

double peramalan=0;

if(i==0){
String obj[]={String.valueOf(no),String.valueOf(tbl_input2.getValueAt(i,
1)),String.valueOf(data.get(i)),fz,String.valueOf(df.format(flrg.get(i))),"NAN"};
modelIkanKerapu.addRow(obj);
no++;
tbl_7.setModel(modelIkanKerapu);
}else if(i==row-1){
String obj[]={String.valueOf(no),String.valueOf(tbl_input2.getValueAt(i,
1)),String.valueOf(data.get(i)),"-","-",String.valueOf(df.format(flrg.get(i-1)))};
modelIkanKerapu.addRow(obj);
no++;
tbl_7.setModel(modelIkanKerapu);
mape=Math.abs(data.get(i)-flrg.get(i-1))/data.get(i)*100;
mape_7.setText("MAPE : "+df.format(mape)+" %");
}else{
String obj[]={String.valueOf(no),String.valueOf(tbl_input2.getValueAt(i,
1)),String.valueOf(data.get(i)),fz,String.valueOf(df.format(flrg.get(i))),String.valueOf(df.format(flrg.get(i-1)))};
modelIkanKerapu.addRow(obj);
no++;
tbl_7.setModel(modelIkanKerapu);
}
}
}

private void prosesUdang(){


//MENGAMBIL DATA NILAI PRODUKSI IKAN PATIN
ArrayList <Double> data= new ArrayList<>();
ArrayList <Double> datalatih= new ArrayList<>();
int row = tbl_input2.getRowCount();
for (int i = 0; i < row-1; i++) {
double akt=Double.parseDouble(String.valueOf(tbl_input2.getValueAt(i, 9)));
datalatih.add(akt);
}
for (int i = 0; i < row; i++) {
double akt=Double.parseDouble(String.valueOf(tbl_input2.getValueAt(i, 9)));
data.add(akt);
}
//MENCARI NILAI INTERVAL YANG TERBENTUK
double max=Collections.max(datalatih);
double min=Collections.min(datalatih);
double banyak_kelas=1+3.3*(Math.log10(11));
double rentang_kelas=max-min;
double interval_kelas=rentang_kelas/4;
double a1_min=min;
double a1_max=a1_min+interval_kelas;
double a2_min=a1_max;
double a2_max=a2_min+interval_kelas;
double a3_min=a2_max;
double a3_max=a3_min+interval_kelas;
double a4_min=a3_max;
double a4_max=a4_min+interval_kelas;
double median_a1=(a1_min+a1_max)/2;
double median_a2=(a2_min+a2_max)/2;
double median_a3=(a3_min+a3_max)/2;
double median_a4=(a4_min+a4_max)/2;

DecimalFormat df = new DecimalFormat("#.###");

txt_max8.setText("X MAX : "+df.format(max));


txt_min8.setText("X MIN : "+min);
txt_banyakKelas8.setText("BANYAK KELAS : "+df.format(banyak_kelas));
txt_rentangKelas8.setText("RENTANG KELAS : "+df.format(rentang_kelas));
txt_intervalKelas8.setText("INTERVAL KELAS : "+df.format(interval_kelas));
txt_IntervalA1_8.setText("("+df.format(a1_min)+" - "+df.format(a1_max)+")"+" => A1 :
"+df.format(median_a1));
txt_IntervalA2_8.setText("("+df.format(a2_min)+" - "+df.format(a2_max)+")"+" => A2 :
"+df.format(median_a2));
txt_IntervalA3_8.setText("("+df.format(a3_min)+" - "+df.format(a3_max)+")"+" => A3 :
"+df.format(median_a3));
txt_IntervalA4_8.setText("("+df.format(a4_min)+" - "+df.format(a4_max)+")"+" => A4 :
"+df.format(median_a4));

//MENCARI NILAI FLRG


double a1= (median_a1+median_a2+median_a4)/3;
double a2= (median_a1+median_a2)/2;
double a3= median_a3;
double a4= (median_a1+median_a2+median_a4)/3;

a1_8.setText("A1 : "+df.format(a1));
a2_8.setText("A2 : "+df.format(a2));
a3_8.setText("A3 : "+df.format(a3));
a4_8.setText("A4 : "+df.format(a4));
int no=1;
String fz="";
ArrayList <Double> flrg=new ArrayList<>();
double mape=0;
for (int i = 0; i < row; i++) {
if(data.get(i)>=a1_min && data.get(i)<=a1_max){
fz="A1";
}else if (data.get(i)>a2_min && data.get(i) <=a2_max) {
fz="A2";
}else if (data.get(i)>a3_min && data.get(i) <=a3_max) {
fz="A3";
}else if (data.get(i)>a4_min && data.get(i) <=a4_max) {
fz="A4";
}

if(fz.equals("A1")){
flrg.add(a1);
}else if(fz.equals("A2")){
flrg.add(a2);
}else if(fz.equals("A3")){
flrg.add(a3);
}else if(fz.equals("A4")){
flrg.add(a4);
}

double peramalan=0;

if(i==0){
String obj[]={String.valueOf(no),String.valueOf(tbl_input2.getValueAt(i,
1)),String.valueOf(data.get(i)),fz,String.valueOf(df.format(flrg.get(i))),"NAN"};
modelUdang.addRow(obj);
no++;
tbl_8.setModel(modelUdang);
}else if(i==row-1){
String obj[]={String.valueOf(no),String.valueOf(tbl_input2.getValueAt(i,
1)),String.valueOf(data.get(i)),"-","-",String.valueOf(df.format(flrg.get(i-1)))};
modelUdang.addRow(obj);
no++;
tbl_8.setModel(modelUdang);
mape=Math.abs(data.get(i)-flrg.get(i-1))/data.get(i)*100;
mape_8.setText("MAPE : "+df.format(mape)+" %");
}else{
String obj[]={String.valueOf(no),String.valueOf(tbl_input2.getValueAt(i,
1)),String.valueOf(data.get(i)),fz,String.valueOf(df.format(flrg.get(i))),String.valueOf(df.format(flrg.get(i-1)))};
modelUdang.addRow(obj);
no++;
tbl_8.setModel(modelUdang);
}
}
}

private void HasilAkhir(){


int no=1;
int row=tbl_input2.getRowCount();
int tahun=Integer.parseInt(String.valueOf(tbl_input2.getValueAt(row-1, 1)));
DecimalFormat df = new DecimalFormat("#.###");
for (int i = 0; i < 8; i++) {
if(i==0){
double akt=Integer.parseInt(String.valueOf(tbl_input2.getValueAt(row-1, 2)));
double prm=Double.parseDouble(String.valueOf(tbl_1.getValueAt(row-1, 5)));
double mape=Math.abs(akt-prm)/akt*100;
String obj[]={String.valueOf(no),String.valueOf(tahun),"IKAN
PATIN",String.valueOf(akt),String.valueOf(prm),String.valueOf(df.format(mape))+" %"};
modelPeramalan.addRow(obj);
no++;
tbl_Peramalan.setModel(modelPeramalan);
}else if(i==1){
double akt=Integer.parseInt(String.valueOf(tbl_input2.getValueAt(row-1, 3)));
double prm=Double.parseDouble(String.valueOf(tbl_2.getValueAt(row-1, 5)));
double mape=Math.abs(akt-prm)/akt*100;
String obj[]={String.valueOf(no),String.valueOf(tahun),"IKAN
LELE",String.valueOf(akt),String.valueOf(prm),String.valueOf(df.format(mape))+" %"};
modelPeramalan.addRow(obj);
no++;
tbl_Peramalan.setModel(modelPeramalan);
}else if(i==2){
double akt=Integer.parseInt(String.valueOf(tbl_input2.getValueAt(row-1, 4)));
double prm=Double.parseDouble(String.valueOf(tbl_3.getValueAt(row-1, 5)));
double mape=Math.abs(akt-prm)/akt*100;
String obj[]={String.valueOf(no),String.valueOf(tahun),"IKAN
NILA",String.valueOf(akt),String.valueOf(prm),String.valueOf(df.format(mape))+" %"};
modelPeramalan.addRow(obj);
no++;
tbl_Peramalan.setModel(modelPeramalan);
}else if(i==3){
double akt=Integer.parseInt(String.valueOf(tbl_input2.getValueAt(row-1, 5)));
double prm=Double.parseDouble(String.valueOf(tbl_4.getValueAt(row-1, 5)));
double mape=Math.abs(akt-prm)/akt*100;
String obj[]={String.valueOf(no),String.valueOf(tahun),"IKAN
MAS",String.valueOf(akt),String.valueOf(prm),String.valueOf(df.format(mape))+" %"};
modelPeramalan.addRow(obj);
no++;
tbl_Peramalan.setModel(modelPeramalan);
}else if(i==4){
double akt=Integer.parseInt(String.valueOf(tbl_input2.getValueAt(row-1, 6)));
double prm=Double.parseDouble(String.valueOf(tbl_5.getValueAt(row-1, 5)));
double mape=Math.abs(akt-prm)/akt*100;
String obj[]={String.valueOf(no),String.valueOf(tahun),"IKAN
KAKAP",String.valueOf(akt),String.valueOf(prm),String.valueOf(df.format(mape))+" %"};
modelPeramalan.addRow(obj);
no++;
tbl_Peramalan.setModel(modelPeramalan);
}else if(i==5){
double akt=Integer.parseInt(String.valueOf(tbl_input2.getValueAt(row-1, 7)));
double prm=Double.parseDouble(String.valueOf(tbl_6.getValueAt(row-1, 5)));
double mape=Math.abs(akt-prm)/akt*100;
String obj[]={String.valueOf(no),String.valueOf(tahun),"IKAN
BANDENG",String.valueOf(akt),String.valueOf(prm),String.valueOf(df.format(mape))+" %"};
modelPeramalan.addRow(obj);
no++;
tbl_Peramalan.setModel(modelPeramalan);
}else if(i==6){
double akt=Integer.parseInt(String.valueOf(tbl_input2.getValueAt(row-1, 8)));
double prm=Double.parseDouble(String.valueOf(tbl_7.getValueAt(row-1, 5)));
double mape=Math.abs(akt-prm)/akt*100;
String obj[]={String.valueOf(no),String.valueOf(tahun),"IKAN
KERAPU",String.valueOf(akt),String.valueOf(prm),String.valueOf(df.format(mape))+" %"};
modelPeramalan.addRow(obj);
no++;
tbl_Peramalan.setModel(modelPeramalan);
}else if(i==7){
double akt=Integer.parseInt(String.valueOf(tbl_input2.getValueAt(row-1, 9)));
double prm=Double.parseDouble(String.valueOf(tbl_8.getValueAt(row-1, 5)));
double mape=Math.abs(akt-prm)/akt*100;
String
obj[]={String.valueOf(no),String.valueOf(tahun),"UDANG",String.valueOf(akt),String.valueOf(prm),String.valueOf(df.
format(mape))+" %"};
modelPeramalan.addRow(obj);
no++;
tbl_Peramalan.setModel(modelPeramalan);
}
}
}
/**
* 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">
private void initComponents() {

panel_PREDIKSI = new javax.swing.JPanel();


jPanel5 = new javax.swing.JPanel();
jScrollPane2 = new javax.swing.JScrollPane();
tbl_input2 = new javax.swing.JTable();
BTN_FUZZYFIKASI = new javax.swing.JButton();
BTN_RESET = new javax.swing.JButton();
jTabbedPane1 = new javax.swing.JTabbedPane();
patin = new javax.swing.JPanel();
jScrollPane3 = new javax.swing.JScrollPane();
tbl_1 = new javax.swing.JTable();
jPanel6 = new javax.swing.JPanel();
txt_max1 = new javax.swing.JLabel();
txt_min1 = new javax.swing.JLabel();
txt_banyakKelas1 = new javax.swing.JLabel();
txt_rentangKelas1 = new javax.swing.JLabel();
txt_intervalKelas1 = new javax.swing.JLabel();
txt_IntervalA1_1 = new javax.swing.JLabel();
txt_IntervalA2_1 = new javax.swing.JLabel();
txt_IntervalA3_1 = new javax.swing.JLabel();
txt_IntervalA4_1 = new javax.swing.JLabel();
jPanel7 = new javax.swing.JPanel();
a1_1 = new javax.swing.JLabel();
a2_1 = new javax.swing.JLabel();
a3_1 = new javax.swing.JLabel();
a4_1 = new javax.swing.JLabel();
mape_1 = new javax.swing.JLabel();
lele = new javax.swing.JPanel();
jPanel10 = new javax.swing.JPanel();
txt_max2 = new javax.swing.JLabel();
txt_min2 = new javax.swing.JLabel();
txt_banyakKelas2 = new javax.swing.JLabel();
txt_rentangKelas2 = new javax.swing.JLabel();
txt_intervalKelas2 = new javax.swing.JLabel();
txt_IntervalA1_2 = new javax.swing.JLabel();
txt_IntervalA2_2 = new javax.swing.JLabel();
txt_IntervalA3_2 = new javax.swing.JLabel();
txt_IntervalA4_2 = new javax.swing.JLabel();
jPanel11 = new javax.swing.JPanel();
a1_2 = new javax.swing.JLabel();
a2_2 = new javax.swing.JLabel();
a3_2 = new javax.swing.JLabel();
a4_2 = new javax.swing.JLabel();
jScrollPane5 = new javax.swing.JScrollPane();
tbl_2 = new javax.swing.JTable();
mape_2 = new javax.swing.JLabel();
nila = new javax.swing.JPanel();
jPanel12 = new javax.swing.JPanel();
txt_max3 = new javax.swing.JLabel();
txt_min3 = new javax.swing.JLabel();
txt_banyakKelas3 = new javax.swing.JLabel();
txt_rentangKelas3 = new javax.swing.JLabel();
txt_intervalKelas3 = new javax.swing.JLabel();
txt_IntervalA1_3 = new javax.swing.JLabel();
txt_IntervalA2_3 = new javax.swing.JLabel();
txt_IntervalA3_3 = new javax.swing.JLabel();
txt_IntervalA4_3 = new javax.swing.JLabel();
jPanel13 = new javax.swing.JPanel();
a1_3 = new javax.swing.JLabel();
a2_3 = new javax.swing.JLabel();
a3_3 = new javax.swing.JLabel();
a4_3 = new javax.swing.JLabel();
jScrollPane6 = new javax.swing.JScrollPane();
tbl_3 = new javax.swing.JTable();
mape_3 = new javax.swing.JLabel();
ikanmas = new javax.swing.JPanel();
jPanel14 = new javax.swing.JPanel();
txt_max4 = new javax.swing.JLabel();
txt_min4 = new javax.swing.JLabel();
txt_banyakKelas4 = new javax.swing.JLabel();
txt_rentangKelas4 = new javax.swing.JLabel();
txt_intervalKelas4 = new javax.swing.JLabel();
txt_IntervalA1_4 = new javax.swing.JLabel();
txt_IntervalA2_4 = new javax.swing.JLabel();
txt_IntervalA3_4 = new javax.swing.JLabel();
txt_IntervalA4_4 = new javax.swing.JLabel();
jPanel15 = new javax.swing.JPanel();
a1_4 = new javax.swing.JLabel();
a2_4 = new javax.swing.JLabel();
a3_4 = new javax.swing.JLabel();
a4_4 = new javax.swing.JLabel();
jScrollPane7 = new javax.swing.JScrollPane();
tbl_4 = new javax.swing.JTable();
mape_4 = new javax.swing.JLabel();
bandeng = new javax.swing.JPanel();
jPanel16 = new javax.swing.JPanel();
txt_max5 = new javax.swing.JLabel();
txt_min5 = new javax.swing.JLabel();
txt_banyakKelas5 = new javax.swing.JLabel();
txt_rentangKelas5 = new javax.swing.JLabel();
txt_intervalKelas5 = new javax.swing.JLabel();
txt_IntervalA1_5 = new javax.swing.JLabel();
txt_IntervalA2_5 = new javax.swing.JLabel();
txt_IntervalA3_5 = new javax.swing.JLabel();
txt_IntervalA4_5 = new javax.swing.JLabel();
jPanel17 = new javax.swing.JPanel();
a1_5 = new javax.swing.JLabel();
a2_5 = new javax.swing.JLabel();
a3_5 = new javax.swing.JLabel();
a4_5 = new javax.swing.JLabel();
jScrollPane8 = new javax.swing.JScrollPane();
tbl_5 = new javax.swing.JTable();
mape_5 = new javax.swing.JLabel();
kakap = new javax.swing.JPanel();
jPanel18 = new javax.swing.JPanel();
txt_max6 = new javax.swing.JLabel();
txt_min6 = new javax.swing.JLabel();
txt_banyakKelas6 = new javax.swing.JLabel();
txt_rentangKelas6 = new javax.swing.JLabel();
txt_intervalKelas6 = new javax.swing.JLabel();
txt_IntervalA1_6 = new javax.swing.JLabel();
txt_IntervalA2_6 = new javax.swing.JLabel();
txt_IntervalA3_6 = new javax.swing.JLabel();
txt_IntervalA4_6 = new javax.swing.JLabel();
jPanel19 = new javax.swing.JPanel();
a1_6 = new javax.swing.JLabel();
a2_6 = new javax.swing.JLabel();
a3_6 = new javax.swing.JLabel();
a4_6 = new javax.swing.JLabel();
jScrollPane9 = new javax.swing.JScrollPane();
tbl_6 = new javax.swing.JTable();
mape_6 = new javax.swing.JLabel();
kerapu = new javax.swing.JPanel();
jPanel20 = new javax.swing.JPanel();
txt_max7 = new javax.swing.JLabel();
txt_min7 = new javax.swing.JLabel();
txt_banyakKelas7 = new javax.swing.JLabel();
txt_rentangKelas7 = new javax.swing.JLabel();
txt_intervalKelas7 = new javax.swing.JLabel();
txt_IntervalA1_7 = new javax.swing.JLabel();
txt_IntervalA2_7 = new javax.swing.JLabel();
txt_IntervalA3_7 = new javax.swing.JLabel();
txt_IntervalA4_7 = new javax.swing.JLabel();
jPanel21 = new javax.swing.JPanel();
a1_7 = new javax.swing.JLabel();
a2_7 = new javax.swing.JLabel();
a3_7 = new javax.swing.JLabel();
a4_7 = new javax.swing.JLabel();
jScrollPane10 = new javax.swing.JScrollPane();
tbl_7 = new javax.swing.JTable();
mape_7 = new javax.swing.JLabel();
udang = new javax.swing.JPanel();
jPanel22 = new javax.swing.JPanel();
txt_max8 = new javax.swing.JLabel();
txt_min8 = new javax.swing.JLabel();
txt_banyakKelas8 = new javax.swing.JLabel();
txt_rentangKelas8 = new javax.swing.JLabel();
txt_intervalKelas8 = new javax.swing.JLabel();
txt_IntervalA1_8 = new javax.swing.JLabel();
txt_IntervalA2_8 = new javax.swing.JLabel();
txt_IntervalA3_8 = new javax.swing.JLabel();
txt_IntervalA4_8 = new javax.swing.JLabel();
jPanel23 = new javax.swing.JPanel();
a1_8 = new javax.swing.JLabel();
a2_8 = new javax.swing.JLabel();
a3_8 = new javax.swing.JLabel();
a4_8 = new javax.swing.JLabel();
jScrollPane11 = new javax.swing.JScrollPane();
tbl_8 = new javax.swing.JTable();
mape_8 = new javax.swing.JLabel();
peramalan = new javax.swing.JPanel();
jScrollPane4 = new javax.swing.JScrollPane();
tbl_Peramalan = new javax.swing.JTable();
jPanel2 = new javax.swing.JPanel();
btnInput = new javax.swing.JButton();
btnPeramalan = new javax.swing.JButton();
jPanel1 = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
panel_INPUT = new javax.swing.JPanel();
jPanel3 = 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();
cmb_tahun = new javax.swing.JComboBox<>();
txt_patin = new javax.swing.JTextField();
txt_lele = new javax.swing.JTextField();
txt_nila = new javax.swing.JTextField();
txt_mas = new javax.swing.JTextField();
txt_kakap = new javax.swing.JTextField();
txt_bandeng = new javax.swing.JTextField();
txt_kerapu = new javax.swing.JTextField();
txt_udang = new javax.swing.JTextField();
jLabel11 = new javax.swing.JLabel();
jLabel12 = new javax.swing.JLabel();
jLabel13 = new javax.swing.JLabel();
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();
btn_tambah = new javax.swing.JButton();
btn_edit = new javax.swing.JButton();
btn_batal = new javax.swing.JButton();
btn_hapus = new javax.swing.JButton();
jPanel4 = new javax.swing.JPanel();
jScrollPane1 = new javax.swing.JScrollPane();
tbl_input = new javax.swing.JTable();
btn_cari = new javax.swing.JButton();
txt_namaFileCSV = new javax.swing.JTextField();
btnUploadCSV = new javax.swing.JButton();

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

panel_PREDIKSI.setBackground(new java.awt.Color(0, 153, 153));


panel_PREDIKSI.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "HALAMAN PREDIKSI",
javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new
java.awt.Font("Tahoma", 1, 14), new java.awt.Color(255, 255, 255))); // NOI18N

jPanel5.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "DATA AKTUAL",


javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new
java.awt.Font("Tahoma", 1, 14))); // NOI18N

tbl_input2.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null}
},
new String [] {
"Title 1", "Title 2", "Title 3", "Title 4"
}
));
jScrollPane2.setViewportView(tbl_input2);

BTN_FUZZYFIKASI.setFont(new java.awt.Font("Tahoma", 1, 16)); // NOI18N


BTN_FUZZYFIKASI.setText("TERAPKAN FUZZY TIME SERIES");
BTN_FUZZYFIKASI.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
BTN_FUZZYFIKASIActionPerformed(evt);
}
});

BTN_RESET.setFont(new java.awt.Font("Tahoma", 1, 16)); // NOI18N


BTN_RESET.setText("RESET");
BTN_RESET.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
BTN_RESETActionPerformed(evt);
}
});

javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);


jPanel5.setLayout(jPanel5Layout);
jPanel5Layout.setHorizontalGroup(
jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel5Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 631, Short.MAX_VALUE)
.addGroup(jPanel5Layout.createSequentialGroup()
.addComponent(BTN_FUZZYFIKASI, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(BTN_RESET, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
.addContainerGap())
);
jPanel5Layout.setVerticalGroup(
jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel5Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jScrollPane2)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(BTN_FUZZYFIKASI, javax.swing.GroupLayout.PREFERRED_SIZE, 42,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(BTN_RESET, javax.swing.GroupLayout.PREFERRED_SIZE, 42,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap())
);

jTabbedPane1.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N

patin.setBackground(new java.awt.Color(153, 153, 0));

tbl_1.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null}
},
new String [] {
"Title 1", "Title 2", "Title 3", "Title 4"
}
));
jScrollPane3.setViewportView(tbl_1);

jPanel6.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "INTERVAL YANG TERBENTUK",


javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new
java.awt.Font("Tahoma", 1, 12))); // NOI18N

txt_max1.setText("X MAX :");

txt_min1.setText("X MIN :");


txt_banyakKelas1.setText("BANYAK KELAS :");

txt_rentangKelas1.setText("RENTANG KELAS :");

txt_intervalKelas1.setText("INTERVAL KELAS :");

txt_IntervalA1_1.setText("A1");

txt_IntervalA2_1.setText("A2");

txt_IntervalA3_1.setText("A3");

txt_IntervalA4_1.setText("A4");

javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);


jPanel6.setLayout(jPanel6Layout);
jPanel6Layout.setHorizontalGroup(
jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel6Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(txt_IntervalA1_1, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel6Layout.createSequentialGroup()
.addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(txt_intervalKelas1, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txt_banyakKelas1, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txt_rentangKelas1, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txt_max1, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txt_min1, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGap(0, 0, Short.MAX_VALUE))
.addComponent(txt_IntervalA2_1, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txt_IntervalA3_1, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txt_IntervalA4_1, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addContainerGap())
);
jPanel6Layout.setVerticalGroup(
jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel6Layout.createSequentialGroup()
.addComponent(txt_max1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_min1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_banyakKelas1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_rentangKelas1)
.addGap(4, 4, 4)
.addComponent(txt_intervalKelas1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_IntervalA1_1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_IntervalA2_1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_IntervalA3_1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_IntervalA4_1)
.addContainerGap())
);

jPanel7.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "NILAI FLRG",


javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new
java.awt.Font("Tahoma", 1, 12))); // NOI18N

a1_1.setText("A1 :");

a2_1.setText("A2 :");

a3_1.setText("A3 :");

a4_1.setText("A4 :");

javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);


jPanel7.setLayout(jPanel7Layout);
jPanel7Layout.setHorizontalGroup(
jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel7Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(a1_1, javax.swing.GroupLayout.DEFAULT_SIZE, 350, Short.MAX_VALUE)
.addComponent(a2_1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
.addComponent(a3_1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
.addComponent(a4_1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE))
.addContainerGap())
);
jPanel7Layout.setVerticalGroup(
jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel7Layout.createSequentialGroup()
.addComponent(a1_1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(a2_1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(a3_1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(a4_1))
);

mape_1.setFont(new java.awt.Font("Tahoma", 1, 16)); // NOI18N


mape_1.setForeground(new java.awt.Color(255, 255, 255));
mape_1.setText("MAPE :");

javax.swing.GroupLayout patinLayout = new javax.swing.GroupLayout(patin);


patin.setLayout(patinLayout);
patinLayout.setHorizontalGroup(
patinLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(patinLayout.createSequentialGroup()
.addContainerGap()
.addGroup(patinLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 798, Short.MAX_VALUE)
.addComponent(mape_1, javax.swing.GroupLayout.PREFERRED_SIZE, 306,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(patinLayout.createSequentialGroup()
.addComponent(jPanel6, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(1, 1, 1)))
.addContainerGap())
);
patinLayout.setVerticalGroup(
patinLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, patinLayout.createSequentialGroup()
.addContainerGap()
.addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 406, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(mape_1, javax.swing.GroupLayout.PREFERRED_SIZE, 20,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(patinLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap())
);

jTabbedPane1.addTab("IKAN PATIN", patin);

lele.setBackground(new java.awt.Color(153, 102, 0));

jPanel10.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "INTERVAL YANG TERBENTUK",


javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new
java.awt.Font("Tahoma", 1, 12))); // NOI18N

txt_max2.setText("X MAX :");

txt_min2.setText("X MIN :");


txt_banyakKelas2.setText("BANYAK KELAS :");

txt_rentangKelas2.setText("RENTANG KELAS :");

txt_intervalKelas2.setText("INTERVAL KELAS :");

txt_IntervalA1_2.setText("A1");

txt_IntervalA2_2.setText("A2");

txt_IntervalA3_2.setText("A3");

txt_IntervalA4_2.setText("A4");

javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);


jPanel10.setLayout(jPanel10Layout);
jPanel10Layout.setHorizontalGroup(
jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel10Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(txt_IntervalA1_2, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel10Layout.createSequentialGroup()
.addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(txt_intervalKelas2, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txt_banyakKelas2, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txt_rentangKelas2, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txt_max2, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txt_min2, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGap(0, 286, Short.MAX_VALUE))
.addComponent(txt_IntervalA2_2, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txt_IntervalA3_2, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txt_IntervalA4_2, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addContainerGap())
);
jPanel10Layout.setVerticalGroup(
jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel10Layout.createSequentialGroup()
.addComponent(txt_max2)
.addGap(4, 4, 4)
.addComponent(txt_min2)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_banyakKelas2)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_rentangKelas2)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_intervalKelas2)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_IntervalA1_2)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_IntervalA2_2)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_IntervalA3_2)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_IntervalA4_2)
.addContainerGap())
);

jPanel11.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "NILAI FLRG",


javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new
java.awt.Font("Tahoma", 1, 12))); // NOI18N

a1_2.setText("A1 :");

a2_2.setText("A2 :");

a3_2.setText("A3 :");

a4_2.setText("A4 :");

javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);


jPanel11.setLayout(jPanel11Layout);
jPanel11Layout.setHorizontalGroup(
jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel11Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(a1_2, javax.swing.GroupLayout.DEFAULT_SIZE, 350, Short.MAX_VALUE)
.addComponent(a2_2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
.addComponent(a3_2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
.addComponent(a4_2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE))
.addContainerGap())
);
jPanel11Layout.setVerticalGroup(
jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel11Layout.createSequentialGroup()
.addComponent(a1_2)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(a2_2)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(a3_2)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(a4_2)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);

tbl_2.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null}
},
new String [] {
"Title 1", "Title 2", "Title 3", "Title 4"
}
));
jScrollPane5.setViewportView(tbl_2);

mape_2.setFont(new java.awt.Font("Tahoma", 1, 16)); // NOI18N


mape_2.setForeground(new java.awt.Color(255, 255, 255));
mape_2.setText("MAPE :");

javax.swing.GroupLayout leleLayout = new javax.swing.GroupLayout(lele);


lele.setLayout(leleLayout);
leleLayout.setHorizontalGroup(
leleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(leleLayout.createSequentialGroup()
.addContainerGap()
.addGroup(leleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jScrollPane5)
.addComponent(mape_2, javax.swing.GroupLayout.PREFERRED_SIZE, 306,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(leleLayout.createSequentialGroup()
.addComponent(jPanel10, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap())
);
leleLayout.setVerticalGroup(
leleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, leleLayout.createSequentialGroup()
.addContainerGap()
.addComponent(jScrollPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 397, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(mape_2)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(leleLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap())
);
jTabbedPane1.addTab("IKAN LELE", lele);

nila.setBackground(new java.awt.Color(0, 153, 102));

jPanel12.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "INTERVAL YANG TERBENTUK",


javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new
java.awt.Font("Tahoma", 1, 12))); // NOI18N

txt_max3.setText("X MAX :");

txt_min3.setText("X MIN :");

txt_banyakKelas3.setText("BANYAK KELAS :");

txt_rentangKelas3.setText("RENTANG KELAS :");

txt_intervalKelas3.setText("INTERVAL KELAS :");

txt_IntervalA1_3.setText("A1");

txt_IntervalA2_3.setText("A2");

txt_IntervalA3_3.setText("A3");

txt_IntervalA4_3.setText("A4");

javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);


jPanel12.setLayout(jPanel12Layout);
jPanel12Layout.setHorizontalGroup(
jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel12Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(txt_IntervalA1_3, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel12Layout.createSequentialGroup()
.addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(txt_intervalKelas3, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txt_banyakKelas3, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txt_rentangKelas3, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txt_max3, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txt_min3, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGap(0, 0, Short.MAX_VALUE))
.addComponent(txt_IntervalA2_3, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txt_IntervalA3_3, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txt_IntervalA4_3, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addContainerGap())
);
jPanel12Layout.setVerticalGroup(
jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel12Layout.createSequentialGroup()
.addComponent(txt_max3)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_min3)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_banyakKelas3)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_rentangKelas3)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_intervalKelas3)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_IntervalA1_3)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_IntervalA2_3)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_IntervalA3_3)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_IntervalA4_3)
.addContainerGap())
);

jPanel13.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "NILAI FLRG",


javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new
java.awt.Font("Tahoma", 1, 12))); // NOI18N

a1_3.setText("A1 :");

a2_3.setText("A2 :");

a3_3.setText("A3 :");

a4_3.setText("A4 :");

javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(jPanel13);


jPanel13.setLayout(jPanel13Layout);
jPanel13Layout.setHorizontalGroup(
jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel13Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(a1_3, javax.swing.GroupLayout.DEFAULT_SIZE, 350, Short.MAX_VALUE)
.addComponent(a2_3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
.addComponent(a3_3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
.addComponent(a4_3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE))
.addContainerGap())
);
jPanel13Layout.setVerticalGroup(
jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel13Layout.createSequentialGroup()
.addComponent(a1_3)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(a2_3)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(a3_3)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(a4_3)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);

tbl_3.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null}
},
new String [] {
"Title 1", "Title 2", "Title 3", "Title 4"
}
));
jScrollPane6.setViewportView(tbl_3);

mape_3.setFont(new java.awt.Font("Tahoma", 1, 16)); // NOI18N


mape_3.setForeground(new java.awt.Color(255, 255, 255));
mape_3.setText("MAPE :");

javax.swing.GroupLayout nilaLayout = new javax.swing.GroupLayout(nila);


nila.setLayout(nilaLayout);
nilaLayout.setHorizontalGroup(
nilaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(nilaLayout.createSequentialGroup()
.addContainerGap()
.addGroup(nilaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jScrollPane6, javax.swing.GroupLayout.DEFAULT_SIZE, 798, Short.MAX_VALUE)
.addGroup(nilaLayout.createSequentialGroup()
.addComponent(mape_3, javax.swing.GroupLayout.PREFERRED_SIZE, 306,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(0, 0, Short.MAX_VALUE))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, nilaLayout.createSequentialGroup()
.addComponent(jPanel12, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jPanel13, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap())
);
nilaLayout.setVerticalGroup(
nilaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, nilaLayout.createSequentialGroup()
.addContainerGap()
.addComponent(jScrollPane6, javax.swing.GroupLayout.DEFAULT_SIZE, 395, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(mape_3)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(nilaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel13, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jPanel12, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap())
);

jTabbedPane1.addTab("IKAN NILA", nila);

ikanmas.setBackground(new java.awt.Color(0, 153, 153));

jPanel14.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "INTERVAL YANG TERBENTUK",


javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new
java.awt.Font("Tahoma", 1, 12))); // NOI18N

txt_max4.setText("X MAX :");

txt_min4.setText("X MIN :");

txt_banyakKelas4.setText("BANYAK KELAS :");

txt_rentangKelas4.setText("RENTANG KELAS :");

txt_intervalKelas4.setText("INTERVAL KELAS :");

txt_IntervalA1_4.setText("A1");

txt_IntervalA2_4.setText("A2");

txt_IntervalA3_4.setText("A3");

txt_IntervalA4_4.setText("A4");

javax.swing.GroupLayout jPanel14Layout = new javax.swing.GroupLayout(jPanel14);


jPanel14.setLayout(jPanel14Layout);
jPanel14Layout.setHorizontalGroup(
jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel14Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(txt_IntervalA1_4, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel14Layout.createSequentialGroup()
.addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(txt_intervalKelas4, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txt_banyakKelas4, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txt_rentangKelas4, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txt_max4, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txt_min4, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGap(0, 286, Short.MAX_VALUE))
.addComponent(txt_IntervalA2_4, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txt_IntervalA3_4, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txt_IntervalA4_4, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addContainerGap())
);
jPanel14Layout.setVerticalGroup(
jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel14Layout.createSequentialGroup()
.addComponent(txt_max4)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_min4)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_banyakKelas4)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_rentangKelas4)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_intervalKelas4)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_IntervalA1_4)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_IntervalA2_4)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_IntervalA3_4)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_IntervalA4_4)
.addContainerGap())
);

jPanel15.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "NILAI FLRG",


javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new
java.awt.Font("Tahoma", 1, 12))); // NOI18N

a1_4.setText("A1 :");

a2_4.setText("A2 :");

a3_4.setText("A3 :");

a4_4.setText("A4 :");
javax.swing.GroupLayout jPanel15Layout = new javax.swing.GroupLayout(jPanel15);
jPanel15.setLayout(jPanel15Layout);
jPanel15Layout.setHorizontalGroup(
jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel15Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(a1_4, javax.swing.GroupLayout.DEFAULT_SIZE, 350, Short.MAX_VALUE)
.addComponent(a2_4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
.addComponent(a3_4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
.addComponent(a4_4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE))
.addContainerGap())
);
jPanel15Layout.setVerticalGroup(
jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel15Layout.createSequentialGroup()
.addComponent(a1_4)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(a2_4)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(a3_4)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(a4_4))
);

tbl_4.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null}
},
new String [] {
"Title 1", "Title 2", "Title 3", "Title 4"
}
));
jScrollPane7.setViewportView(tbl_4);

mape_4.setFont(new java.awt.Font("Tahoma", 1, 16)); // NOI18N


mape_4.setForeground(new java.awt.Color(255, 255, 255));
mape_4.setText("MAPE :");

javax.swing.GroupLayout ikanmasLayout = new javax.swing.GroupLayout(ikanmas);


ikanmas.setLayout(ikanmasLayout);
ikanmasLayout.setHorizontalGroup(
ikanmasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(ikanmasLayout.createSequentialGroup()
.addContainerGap()
.addGroup(ikanmasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jScrollPane7)
.addComponent(mape_4, javax.swing.GroupLayout.PREFERRED_SIZE, 306,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(ikanmasLayout.createSequentialGroup()
.addComponent(jPanel14, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jPanel15, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap())
);
ikanmasLayout.setVerticalGroup(
ikanmasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, ikanmasLayout.createSequentialGroup()
.addContainerGap()
.addComponent(jScrollPane7, javax.swing.GroupLayout.DEFAULT_SIZE, 395, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(mape_4)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(ikanmasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel14, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jPanel15, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap())
);

jTabbedPane1.addTab("IKAN MAS", ikanmas);

bandeng.setBackground(new java.awt.Color(153, 153, 153));

jPanel16.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "INTERVAL YANG TERBENTUK",


javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new
java.awt.Font("Tahoma", 1, 12))); // NOI18N

txt_max5.setText("X MAX :");

txt_min5.setText("X MIN :");

txt_banyakKelas5.setText("BANYAK KELAS :");

txt_rentangKelas5.setText("RENTANG KELAS :");

txt_intervalKelas5.setText("INTERVAL KELAS :");

txt_IntervalA1_5.setText("A1");

txt_IntervalA2_5.setText("A2");

txt_IntervalA3_5.setText("A3");

txt_IntervalA4_5.setText("A4");
javax.swing.GroupLayout jPanel16Layout = new javax.swing.GroupLayout(jPanel16);
jPanel16.setLayout(jPanel16Layout);
jPanel16Layout.setHorizontalGroup(
jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel16Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(txt_IntervalA1_5, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel16Layout.createSequentialGroup()
.addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(txt_intervalKelas5, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txt_banyakKelas5, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txt_rentangKelas5, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txt_max5, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txt_min5, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGap(0, 0, Short.MAX_VALUE))
.addComponent(txt_IntervalA2_5, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txt_IntervalA3_5, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txt_IntervalA4_5, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addContainerGap())
);
jPanel16Layout.setVerticalGroup(
jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel16Layout.createSequentialGroup()
.addComponent(txt_max5)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_min5)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_banyakKelas5)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_rentangKelas5)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_intervalKelas5)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_IntervalA1_5)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_IntervalA2_5)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_IntervalA3_5)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_IntervalA4_5)
.addContainerGap())
);
jPanel17.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "NILAI FLRG",
javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new
java.awt.Font("Tahoma", 1, 15))); // NOI18N

a1_5.setText("A1 :");

a2_5.setText("A2 :");

a3_5.setText("A3 :");

a4_5.setText("A4 :");

javax.swing.GroupLayout jPanel17Layout = new javax.swing.GroupLayout(jPanel17);


jPanel17.setLayout(jPanel17Layout);
jPanel17Layout.setHorizontalGroup(
jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel17Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(a1_5, javax.swing.GroupLayout.DEFAULT_SIZE, 350, Short.MAX_VALUE)
.addComponent(a2_5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
.addComponent(a3_5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
.addComponent(a4_5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE))
.addContainerGap())
);
jPanel17Layout.setVerticalGroup(
jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel17Layout.createSequentialGroup()
.addComponent(a1_5)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(a2_5)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(a3_5)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(a4_5)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);

tbl_5.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null}
},
new String [] {
"Title 1", "Title 2", "Title 3", "Title 4"
}
));
jScrollPane8.setViewportView(tbl_5);
mape_5.setFont(new java.awt.Font("Tahoma", 1, 16)); // NOI18N
mape_5.setForeground(new java.awt.Color(255, 255, 255));
mape_5.setText("MAPE :");

javax.swing.GroupLayout bandengLayout = new javax.swing.GroupLayout(bandeng);


bandeng.setLayout(bandengLayout);
bandengLayout.setHorizontalGroup(
bandengLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(bandengLayout.createSequentialGroup()
.addContainerGap()
.addGroup(bandengLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jScrollPane8, javax.swing.GroupLayout.DEFAULT_SIZE, 798, Short.MAX_VALUE)
.addGroup(bandengLayout.createSequentialGroup()
.addComponent(mape_5, javax.swing.GroupLayout.PREFERRED_SIZE, 306,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(0, 0, Short.MAX_VALUE))
.addGroup(bandengLayout.createSequentialGroup()
.addComponent(jPanel16, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jPanel17, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap())
);
bandengLayout.setVerticalGroup(
bandengLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, bandengLayout.createSequentialGroup()
.addContainerGap()
.addComponent(jScrollPane8, javax.swing.GroupLayout.DEFAULT_SIZE, 395, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(mape_5)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(bandengLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel16, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jPanel17, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap())
);

jTabbedPane1.addTab("IKAN KAKAP", bandeng);

jPanel18.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "INTERVAL YANG TERBENTUK",


javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new
java.awt.Font("Tahoma", 1, 12))); // NOI18N

txt_max6.setText("X MAX :");

txt_min6.setText("X MIN :");

txt_banyakKelas6.setText("BANYAK KELAS :");


txt_rentangKelas6.setText("RENTANG KELAS :");

txt_intervalKelas6.setText("INTERVAL KELAS :");

txt_IntervalA1_6.setText("A1");

txt_IntervalA2_6.setText("A2");

txt_IntervalA3_6.setText("A3");

txt_IntervalA4_6.setText("A4");

javax.swing.GroupLayout jPanel18Layout = new javax.swing.GroupLayout(jPanel18);


jPanel18.setLayout(jPanel18Layout);
jPanel18Layout.setHorizontalGroup(
jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel18Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(txt_IntervalA1_6, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel18Layout.createSequentialGroup()
.addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(txt_intervalKelas6, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txt_banyakKelas6, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txt_rentangKelas6, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txt_max6, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txt_min6, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGap(0, 0, Short.MAX_VALUE))
.addComponent(txt_IntervalA2_6, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txt_IntervalA3_6, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txt_IntervalA4_6, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addContainerGap())
);
jPanel18Layout.setVerticalGroup(
jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel18Layout.createSequentialGroup()
.addComponent(txt_max6)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_min6)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_banyakKelas6)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_rentangKelas6)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_intervalKelas6)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_IntervalA1_6)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_IntervalA2_6)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_IntervalA3_6)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_IntervalA4_6)
.addContainerGap())
);

jPanel19.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "NILAI FLRG",


javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new
java.awt.Font("Tahoma", 1, 12))); // NOI18N

a1_6.setText("A1 :");

a2_6.setText("A2 :");

a3_6.setText("A3 :");

a4_6.setText("A4 :");

javax.swing.GroupLayout jPanel19Layout = new javax.swing.GroupLayout(jPanel19);


jPanel19.setLayout(jPanel19Layout);
jPanel19Layout.setHorizontalGroup(
jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel19Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(a1_6, javax.swing.GroupLayout.DEFAULT_SIZE, 350, Short.MAX_VALUE)
.addComponent(a2_6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
.addComponent(a3_6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
.addComponent(a4_6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE))
.addContainerGap())
);
jPanel19Layout.setVerticalGroup(
jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel19Layout.createSequentialGroup()
.addComponent(a1_6)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(a2_6)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(a3_6)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(a4_6)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
tbl_6.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null}
},
new String [] {
"Title 1", "Title 2", "Title 3", "Title 4"
}
));
jScrollPane9.setViewportView(tbl_6);

mape_6.setFont(new java.awt.Font("Tahoma", 1, 16)); // NOI18N


mape_6.setText("MAPE :");

javax.swing.GroupLayout kakapLayout = new javax.swing.GroupLayout(kakap);


kakap.setLayout(kakapLayout);
kakapLayout.setHorizontalGroup(
kakapLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(kakapLayout.createSequentialGroup()
.addContainerGap()
.addGroup(kakapLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jScrollPane9, javax.swing.GroupLayout.DEFAULT_SIZE, 798, Short.MAX_VALUE)
.addGroup(kakapLayout.createSequentialGroup()
.addComponent(mape_6, javax.swing.GroupLayout.PREFERRED_SIZE, 306,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(0, 0, Short.MAX_VALUE))
.addGroup(kakapLayout.createSequentialGroup()
.addComponent(jPanel18, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jPanel19, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap())
);
kakapLayout.setVerticalGroup(
kakapLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, kakapLayout.createSequentialGroup()
.addContainerGap()
.addComponent(jScrollPane9, javax.swing.GroupLayout.DEFAULT_SIZE, 395, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(mape_6)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(kakapLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel18, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jPanel19, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap())
);

jTabbedPane1.addTab("IKAN BANDENG", kakap);


kerapu.setBackground(new java.awt.Color(153, 153, 0));

jPanel20.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "INTERVAL YANG TERBENTUK",


javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new
java.awt.Font("Tahoma", 1, 12))); // NOI18N

txt_max7.setText("X MAX :");

txt_min7.setText("X MIN :");

txt_banyakKelas7.setText("BANYAK KELAS :");

txt_rentangKelas7.setText("RENTANG KELAS :");

txt_intervalKelas7.setText("INTERVAL KELAS :");

txt_IntervalA1_7.setText("A1");

txt_IntervalA2_7.setText("A2");

txt_IntervalA3_7.setText("A3");

txt_IntervalA4_7.setText("A4");

javax.swing.GroupLayout jPanel20Layout = new javax.swing.GroupLayout(jPanel20);


jPanel20.setLayout(jPanel20Layout);
jPanel20Layout.setHorizontalGroup(
jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel20Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(txt_IntervalA1_7, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel20Layout.createSequentialGroup()
.addGroup(jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(txt_intervalKelas7, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txt_banyakKelas7, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txt_rentangKelas7, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txt_max7, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txt_min7, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGap(0, 296, Short.MAX_VALUE))
.addComponent(txt_IntervalA2_7, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txt_IntervalA3_7, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txt_IntervalA4_7, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addContainerGap())
);
jPanel20Layout.setVerticalGroup(
jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel20Layout.createSequentialGroup()
.addComponent(txt_max7)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_min7)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_banyakKelas7)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_rentangKelas7)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_intervalKelas7)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_IntervalA1_7)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_IntervalA2_7)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_IntervalA3_7)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_IntervalA4_7)
.addContainerGap())
);

jPanel21.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "NILAI FLRG",


javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new
java.awt.Font("Tahoma", 1, 12))); // NOI18N

a1_7.setText("A1 :");

a2_7.setText("A2 :");

a3_7.setText("A3 :");

a4_7.setText("A4 :");

javax.swing.GroupLayout jPanel21Layout = new javax.swing.GroupLayout(jPanel21);


jPanel21.setLayout(jPanel21Layout);
jPanel21Layout.setHorizontalGroup(
jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel21Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(a1_7, javax.swing.GroupLayout.DEFAULT_SIZE, 340, Short.MAX_VALUE)
.addComponent(a2_7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
.addComponent(a3_7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
.addComponent(a4_7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE))
.addContainerGap())
);
jPanel21Layout.setVerticalGroup(
jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel21Layout.createSequentialGroup()
.addComponent(a1_7)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(a2_7)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(a3_7)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(a4_7)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);

tbl_7.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null}
},
new String [] {
"Title 1", "Title 2", "Title 3", "Title 4"
}
));
jScrollPane10.setViewportView(tbl_7);

mape_7.setFont(new java.awt.Font("Tahoma", 1, 16)); // NOI18N


mape_7.setForeground(new java.awt.Color(255, 255, 255));
mape_7.setText("MAPE :");

javax.swing.GroupLayout kerapuLayout = new javax.swing.GroupLayout(kerapu);


kerapu.setLayout(kerapuLayout);
kerapuLayout.setHorizontalGroup(
kerapuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(kerapuLayout.createSequentialGroup()
.addContainerGap()
.addGroup(kerapuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(kerapuLayout.createSequentialGroup()
.addComponent(mape_7, javax.swing.GroupLayout.PREFERRED_SIZE, 306,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(0, 0, Short.MAX_VALUE))
.addGroup(kerapuLayout.createSequentialGroup()
.addGroup(kerapuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jScrollPane10)
.addGroup(kerapuLayout.createSequentialGroup()
.addComponent(jPanel20, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jPanel21, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap())))
);
kerapuLayout.setVerticalGroup(
kerapuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, kerapuLayout.createSequentialGroup()
.addContainerGap()
.addComponent(jScrollPane10, javax.swing.GroupLayout.DEFAULT_SIZE, 395, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(mape_7)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(kerapuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel20, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jPanel21, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap())
);

jTabbedPane1.addTab("IKAN KERAPU", kerapu);

udang.setBackground(new java.awt.Color(204, 153, 0));

jPanel22.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "INTERVAL YANG TERBENTUK",


javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new
java.awt.Font("Tahoma", 1, 12))); // NOI18N

txt_max8.setText("X MAX :");

txt_min8.setText("X MIN :");

txt_banyakKelas8.setText("BANYAK KELAS :");

txt_rentangKelas8.setText("RENTANG KELAS :");

txt_intervalKelas8.setText("INTERVAL KELAS :");

txt_IntervalA1_8.setText("A1");

txt_IntervalA2_8.setText("A2");

txt_IntervalA3_8.setText("A3");

txt_IntervalA4_8.setText("A4");

javax.swing.GroupLayout jPanel22Layout = new javax.swing.GroupLayout(jPanel22);


jPanel22.setLayout(jPanel22Layout);
jPanel22Layout.setHorizontalGroup(
jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel22Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(txt_IntervalA1_8, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel22Layout.createSequentialGroup()
.addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(txt_intervalKelas8, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txt_banyakKelas8, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txt_rentangKelas8, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txt_max8, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txt_min8, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGap(0, 286, Short.MAX_VALUE))
.addComponent(txt_IntervalA2_8, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txt_IntervalA3_8, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txt_IntervalA4_8, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addContainerGap())
);
jPanel22Layout.setVerticalGroup(
jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel22Layout.createSequentialGroup()
.addComponent(txt_max8)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_min8)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_banyakKelas8)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_rentangKelas8)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_intervalKelas8)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_IntervalA1_8)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_IntervalA2_8)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_IntervalA3_8)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(txt_IntervalA4_8)
.addContainerGap())
);

jPanel23.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "NILAI FLRG",


javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new
java.awt.Font("Tahoma", 1, 12))); // NOI18N

a1_8.setText("A1 :");

a2_8.setText("A2 :");

a3_8.setText("A3 :");

a4_8.setText("A4 :");
javax.swing.GroupLayout jPanel23Layout = new javax.swing.GroupLayout(jPanel23);
jPanel23.setLayout(jPanel23Layout);
jPanel23Layout.setHorizontalGroup(
jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel23Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(a1_8, javax.swing.GroupLayout.DEFAULT_SIZE, 350, Short.MAX_VALUE)
.addComponent(a2_8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
.addComponent(a3_8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
.addComponent(a4_8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE))
.addContainerGap())
);
jPanel23Layout.setVerticalGroup(
jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel23Layout.createSequentialGroup()
.addComponent(a1_8)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(a2_8)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(a3_8)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(a4_8)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);

tbl_8.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null}
},
new String [] {
"Title 1", "Title 2", "Title 3", "Title 4"
}
));
jScrollPane11.setViewportView(tbl_8);

mape_8.setFont(new java.awt.Font("Tahoma", 1, 16)); // NOI18N


mape_8.setForeground(new java.awt.Color(255, 255, 255));
mape_8.setText("MAPE :");

javax.swing.GroupLayout udangLayout = new javax.swing.GroupLayout(udang);


udang.setLayout(udangLayout);
udangLayout.setHorizontalGroup(
udangLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(udangLayout.createSequentialGroup()
.addContainerGap()
.addGroup(udangLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jScrollPane11)
.addGroup(udangLayout.createSequentialGroup()
.addComponent(jPanel22, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jPanel23, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(4, 4, 4))
.addGroup(udangLayout.createSequentialGroup()
.addComponent(mape_8, javax.swing.GroupLayout.PREFERRED_SIZE, 305,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(0, 0, Short.MAX_VALUE)))
.addContainerGap())
);
udangLayout.setVerticalGroup(
udangLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, udangLayout.createSequentialGroup()
.addContainerGap()
.addComponent(jScrollPane11, javax.swing.GroupLayout.DEFAULT_SIZE, 395, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(mape_8)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(udangLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel22, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jPanel23, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap())
);

jTabbedPane1.addTab("UDANG", udang);

peramalan.setBackground(new java.awt.Color(153, 153, 0));

tbl_Peramalan.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null}
},
new String [] {
"Title 1", "Title 2", "Title 3", "Title 4"
}
));
jScrollPane4.setViewportView(tbl_Peramalan);

javax.swing.GroupLayout peramalanLayout = new javax.swing.GroupLayout(peramalan);


peramalan.setLayout(peramalanLayout);
peramalanLayout.setHorizontalGroup(
peramalanLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(peramalanLayout.createSequentialGroup()
.addContainerGap()
.addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 798, Short.MAX_VALUE)
.addContainerGap())
);
peramalanLayout.setVerticalGroup(
peramalanLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(peramalanLayout.createSequentialGroup()
.addContainerGap()
.addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 636, Short.MAX_VALUE)
.addContainerGap())
);

jTabbedPane1.addTab("PERAMALAN SEMUA IKAN", peramalan);

javax.swing.GroupLayout panel_PREDIKSILayout = new javax.swing.GroupLayout(panel_PREDIKSI);


panel_PREDIKSI.setLayout(panel_PREDIKSILayout);
panel_PREDIKSILayout.setHorizontalGroup(
panel_PREDIKSILayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panel_PREDIKSILayout.createSequentialGroup()
.addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jTabbedPane1)
.addGap(14, 14, 14))
);
panel_PREDIKSILayout.setVerticalGroup(
panel_PREDIKSILayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panel_PREDIKSILayout.createSequentialGroup()
.addGroup(panel_PREDIKSILayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jTabbedPane1))
.addContainerGap())
);

jPanel2.setBackground(new java.awt.Color(153, 153, 0));


jPanel2.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));

btnInput.setFont(new java.awt.Font("Tahoma", 1, 20)); // NOI18N


btnInput.setText("INPUT DATA");
btnInput.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnInputActionPerformed(evt);
}
});

btnPeramalan.setFont(new java.awt.Font("Tahoma", 1, 20)); // NOI18N


btnPeramalan.setText("PERAMALAN");
btnPeramalan.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnPeramalanActionPerformed(evt);
}
});
javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
jPanel2.setLayout(jPanel2Layout);
jPanel2Layout.setHorizontalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addContainerGap()
.addComponent(btnInput, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(btnPeramalan, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addContainerGap())
);
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(btnInput, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(btnPeramalan, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addContainerGap())
);

jPanel1.setBackground(new java.awt.Color(0, 153, 204));


jPanel1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));

jLabel1.setFont(new java.awt.Font("Tahoma", 1, 25)); // NOI18N


jLabel1.setForeground(new java.awt.Color(255, 255, 255));
jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel1.setText("APLIKASI PREDIKSI PRODUKSI IKAN DENGAN FUZZY TIME SERIES");

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(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
.addContainerGap())
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 34, Short.MAX_VALUE)
.addContainerGap())
);

panel_INPUT.setBackground(new java.awt.Color(102, 153, 0));


panel_INPUT.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "HALAMAN INPUT",
javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new
java.awt.Font("Tahoma", 1, 14), new java.awt.Color(255, 255, 255))); // NOI18N

jPanel3.setBackground(new java.awt.Color(0, 153, 153));


jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(" "));

jLabel2.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N


jLabel2.setForeground(new java.awt.Color(255, 255, 255));
jLabel2.setText("TAHUN");

jLabel3.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N


jLabel3.setForeground(new java.awt.Color(255, 255, 255));
jLabel3.setText("IKAN PATIN ");

jLabel4.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N


jLabel4.setForeground(new java.awt.Color(255, 255, 255));
jLabel4.setText("IKAN NILA");

jLabel5.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N


jLabel5.setForeground(new java.awt.Color(255, 255, 255));
jLabel5.setText("IKAN LELE");

jLabel6.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N


jLabel6.setForeground(new java.awt.Color(255, 255, 255));
jLabel6.setText("UDANG");

jLabel7.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N


jLabel7.setForeground(new java.awt.Color(255, 255, 255));
jLabel7.setText("IKAN MAS");

jLabel8.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N


jLabel8.setForeground(new java.awt.Color(255, 255, 255));
jLabel8.setText("IKAN KAKAP");

jLabel9.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N


jLabel9.setForeground(new java.awt.Color(255, 255, 255));
jLabel9.setText("IKAN KERAPU");

jLabel10.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N


jLabel10.setForeground(new java.awt.Color(255, 255, 255));
jLabel10.setText("IKAN BANDENG");

cmb_tahun.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N


cmb_tahun.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "==PILIH==", "2011", "2012",
"2013", "2014", "2015", "2017", "2018", "2019", "2020", "2021", "2022", "2023", "2024" }));

txt_patin.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N

txt_lele.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N

txt_nila.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N


txt_mas.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N

txt_kakap.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N

txt_bandeng.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N

txt_kerapu.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N

txt_udang.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N

jLabel11.setFont(new java.awt.Font("Tahoma", 1, 17)); // NOI18N


jLabel11.setForeground(new java.awt.Color(255, 255, 255));
jLabel11.setText("Ton");

jLabel12.setFont(new java.awt.Font("Tahoma", 1, 17)); // NOI18N


jLabel12.setForeground(new java.awt.Color(255, 255, 255));
jLabel12.setText("Ton");

jLabel13.setFont(new java.awt.Font("Tahoma", 1, 17)); // NOI18N


jLabel13.setForeground(new java.awt.Color(255, 255, 255));
jLabel13.setText("Ton");

jLabel14.setFont(new java.awt.Font("Tahoma", 1, 17)); // NOI18N


jLabel14.setForeground(new java.awt.Color(255, 255, 255));
jLabel14.setText("Ton");

jLabel15.setFont(new java.awt.Font("Tahoma", 1, 17)); // NOI18N


jLabel15.setForeground(new java.awt.Color(255, 255, 255));
jLabel15.setText("Ton");

jLabel16.setFont(new java.awt.Font("Tahoma", 1, 17)); // NOI18N


jLabel16.setForeground(new java.awt.Color(255, 255, 255));
jLabel16.setText("Ton");

jLabel17.setFont(new java.awt.Font("Tahoma", 1, 17)); // NOI18N


jLabel17.setForeground(new java.awt.Color(255, 255, 255));
jLabel17.setText("Ton");

jLabel18.setFont(new java.awt.Font("Tahoma", 1, 17)); // NOI18N


jLabel18.setForeground(new java.awt.Color(255, 255, 255));
jLabel18.setText("Ton");

btn_tambah.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N


btn_tambah.setText("TAMBAH");
btn_tambah.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btn_tambahActionPerformed(evt);
}
});

btn_edit.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N


btn_edit.setText("EDIT");
btn_edit.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btn_editActionPerformed(evt);
}
});

btn_batal.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N


btn_batal.setText("BATAL");
btn_batal.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btn_batalActionPerformed(evt);
}
});

btn_hapus.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N


btn_hapus.setText("HAPUS");
btn_hapus.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btn_hapusActionPerformed(evt);
}
});

javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);


jPanel3.setLayout(jPanel3Layout);
jPanel3Layout.setHorizontalGroup(
jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel3Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel3Layout.createSequentialGroup()
.addComponent(btn_hapus, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addContainerGap())
.addGroup(jPanel3Layout.createSequentialGroup()
.addComponent(btn_tambah, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addContainerGap())
.addGroup(jPanel3Layout.createSequentialGroup()
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel3Layout.createSequentialGroup()
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 148,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(cmb_tahun, javax.swing.GroupLayout.PREFERRED_SIZE, 136,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel3Layout.createSequentialGroup()
.addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 148,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(txt_bandeng))
.addGroup(jPanel3Layout.createSequentialGroup()
.addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 148,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(txt_lele))
.addGroup(jPanel3Layout.createSequentialGroup()
.addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 148,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(txt_nila))
.addGroup(jPanel3Layout.createSequentialGroup()
.addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 148,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(txt_kakap))
.addGroup(jPanel3Layout.createSequentialGroup()
.addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 148,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(txt_mas))
.addGroup(jPanel3Layout.createSequentialGroup()
.addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 148,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(txt_kerapu))
.addGroup(jPanel3Layout.createSequentialGroup()
.addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 148,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(txt_udang)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel12)
.addComponent(jLabel13)
.addComponent(jLabel14)
.addComponent(jLabel15)
.addComponent(jLabel16)
.addComponent(jLabel17)
.addComponent(jLabel18))
.addGap(50, 50, 50))
.addGroup(jPanel3Layout.createSequentialGroup()
.addComponent(btn_edit, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(btn_batal, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addContainerGap())
.addGroup(jPanel3Layout.createSequentialGroup()
.addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 148,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(txt_patin)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jLabel11)
.addGap(50, 50, 50))))
);
jPanel3Layout.setVerticalGroup(
jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel3Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 23,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(cmb_tahun, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel3)
.addComponent(txt_patin, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel11))
.addGap(18, 18, 18)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel12)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel5)
.addComponent(txt_lele, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGap(18, 18, 18)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel13)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel4)
.addComponent(txt_nila, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGap(18, 18, 18)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel14)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel7)
.addComponent(txt_mas, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGap(18, 18, 18)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel15)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel8)
.addComponent(txt_kakap, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGap(18, 18, 18)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel16)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel10)
.addComponent(txt_bandeng, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGap(18, 18, 18)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel17)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel9)
.addComponent(txt_kerapu, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGap(18, 18, 18)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel18)
.addComponent(jLabel6)
.addComponent(txt_udang, 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(btn_tambah)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(btn_edit, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(btn_batal, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(btn_hapus))
);

jPanel4.setBackground(new java.awt.Color(153, 102, 0));


jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "DATA INPUTAN",
javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new
java.awt.Font("Tahoma", 1, 18), new java.awt.Color(255, 255, 255))); // NOI18N

tbl_input.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null}
},
new String [] {
"Title 1", "Title 2", "Title 3", "Title 4"
}
));
tbl_input.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
tbl_inputMouseClicked(evt);
}
});
jScrollPane1.setViewportView(tbl_input);

btn_cari.setFont(new java.awt.Font("Tahoma", 1, 17)); // NOI18N


btn_cari.setText("CARI FILE CSV");
btn_cari.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btn_cariActionPerformed(evt);
}
});
txt_namaFileCSV.setFont(new java.awt.Font("Tahoma", 1, 17)); // NOI18N

btnUploadCSV.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N


btnUploadCSV.setText("UPLOAD FILE CSV");
btnUploadCSV.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnUploadCSVActionPerformed(evt);
}
});

javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);


jPanel4.setLayout(jPanel4Layout);
jPanel4Layout.setHorizontalGroup(
jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel4Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 1038, Short.MAX_VALUE)
.addComponent(btnUploadCSV, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel4Layout.createSequentialGroup()
.addComponent(btn_cari, javax.swing.GroupLayout.PREFERRED_SIZE, 175,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(txt_namaFileCSV)))
.addContainerGap())
);
jPanel4Layout.setVerticalGroup(
jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(btn_cari, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(txt_namaFileCSV, javax.swing.GroupLayout.PREFERRED_SIZE, 30,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(btnUploadCSV)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 343,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(20, Short.MAX_VALUE))
);

javax.swing.GroupLayout panel_INPUTLayout = new javax.swing.GroupLayout(panel_INPUT);


panel_INPUT.setLayout(panel_INPUTLayout);
panel_INPUTLayout.setHorizontalGroup(
panel_INPUTLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(panel_INPUTLayout.createSequentialGroup()
.addContainerGap()
.addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
panel_INPUTLayout.setVerticalGroup(
panel_INPUTLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
.addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
);

javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());


getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
.addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
.addComponent(panel_INPUT, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(panel_PREDIKSI, javax.swing.GroupLayout.Alignment.TRAILING,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(panel_INPUT, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addGap(121, 121, 121)
.addComponent(panel_PREDIKSI, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
);

pack();
}// </editor-fold>

private void btnInputActionPerformed(java.awt.event.ActionEvent evt) {


panel_INPUT.setVisible(true);
panel_PREDIKSI.setVisible(false);
}

private void btnPeramalanActionPerformed(java.awt.event.ActionEvent evt) {


panel_INPUT.setVisible(false);
panel_PREDIKSI.setVisible(true);
}

private void btn_cariActionPerformed(java.awt.event.ActionEvent evt) {


JFileChooser chooser = new JFileChooser();
FileFilter filter = new FileNameExtensionFilter(".csv",".xls",".xlsx");
chooser.setFileFilter(filter);
chooser.showOpenDialog(null);
File f= chooser.getSelectedFile();
filename = f.getAbsolutePath();
txt_namaFileCSV.setText(filename);
}

private void btnUploadCSVActionPerformed(java.awt.event.ActionEvent evt) {


if(txt_namaFileCSV.getText().equals("")){
JOptionPane.showMessageDialog(null, "SILAHKAN PILIH FILE YANG AKAN DI DIUPLOAD");
}else{
try{

}catch(Exception e){
JOptionPane.showMessageDialog(null, e,"GAGAL UPLOAD FILE, PERIKSA FORMAT FILE
ANDA",JOptionPane.ERROR_MESSAGE);
}
}
}

private void btn_tambahActionPerformed(java.awt.event.ActionEvent evt) {


int tahun=Integer.parseInt(String.valueOf(cmb_tahun.getSelectedItem()));
ArrayList <Integer> th= new ArrayList<>();
for (int i = 0; i < tbl_input.getRowCount(); i++) {
int thn=Integer.parseInt(String.valueOf(tbl_input.getValueAt(i, 1)));
th.add(thn);
}
if(th.contains(tahun)){
JOptionPane.showMessageDialog(null, "DATA UNTUK TAHUN TERSEBUT SUDAH ADA, SILAHKAN PILIH
TAHUN LAINNYA ");
}else{
tambah();
}
}

private void tbl_inputMouseClicked(java.awt.event.MouseEvent evt) {


int i= tbl_input.getSelectedRow();
if(i>-1){
String tahun=modelinput.getValueAt(i, 1).toString();
cmb_tahun.setSelectedItem(tahun);
txt_patin.setText(modelinput.getValueAt(i, 2).toString());
txt_lele.setText(modelinput.getValueAt(i, 3).toString());
txt_nila.setText(modelinput.getValueAt(i, 4).toString());
txt_mas.setText(modelinput.getValueAt(i, 5).toString());
txt_kakap.setText(modelinput.getValueAt(i, 6).toString());
txt_bandeng.setText(modelinput.getValueAt(i, 7).toString());
txt_kerapu.setText(modelinput.getValueAt(i, 8).toString());
txt_udang.setText(modelinput.getValueAt(i, 9).toString());
}
}

private void btn_batalActionPerformed(java.awt.event.ActionEvent evt) {


reset();
}

private void btn_editActionPerformed(java.awt.event.ActionEvent evt) {


if(cmb_tahun.getSelectedIndex()==0){
JOptionPane.showMessageDialog(null, "PILIH DATA YANG AKAN DI EDIT");
}else{
edit();
}
}

private void btn_hapusActionPerformed(java.awt.event.ActionEvent evt) {


if(cmb_tahun.getSelectedIndex()==0){
JOptionPane.showMessageDialog(null, "PILIH DATA YANG AKAN DI HAPUS");
}else{
hapus();
}
}

private void BTN_FUZZYFIKASIActionPerformed(java.awt.event.ActionEvent evt) {


prosesIkanPatin();
prosesIkanLele();
prosesIkanNila();
prosesIkanMas();
prosesIkanKakap();
prosesIkanBandeng();
prosesIkanKerapu();
prosesUdang();
HasilAkhir();
}

private void BTN_RESETActionPerformed(java.awt.event.ActionEvent evt) {


resetPeramalan();
}

/**
* @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(DASHBOARD.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(DASHBOARD.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(DASHBOARD.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(DASHBOARD.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
}
//</editor-fold>

/* Create and display the form */


java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new DASHBOARD().setVisible(true);
}
});
}

// Variables declaration - do not modify


private javax.swing.JButton BTN_FUZZYFIKASI;
private javax.swing.JButton BTN_RESET;
private javax.swing.JLabel a1_1;
private javax.swing.JLabel a1_2;
private javax.swing.JLabel a1_3;
private javax.swing.JLabel a1_4;
private javax.swing.JLabel a1_5;
private javax.swing.JLabel a1_6;
private javax.swing.JLabel a1_7;
private javax.swing.JLabel a1_8;
private javax.swing.JLabel a2_1;
private javax.swing.JLabel a2_2;
private javax.swing.JLabel a2_3;
private javax.swing.JLabel a2_4;
private javax.swing.JLabel a2_5;
private javax.swing.JLabel a2_6;
private javax.swing.JLabel a2_7;
private javax.swing.JLabel a2_8;
private javax.swing.JLabel a3_1;
private javax.swing.JLabel a3_2;
private javax.swing.JLabel a3_3;
private javax.swing.JLabel a3_4;
private javax.swing.JLabel a3_5;
private javax.swing.JLabel a3_6;
private javax.swing.JLabel a3_7;
private javax.swing.JLabel a3_8;
private javax.swing.JLabel a4_1;
private javax.swing.JLabel a4_2;
private javax.swing.JLabel a4_3;
private javax.swing.JLabel a4_4;
private javax.swing.JLabel a4_5;
private javax.swing.JLabel a4_6;
private javax.swing.JLabel a4_7;
private javax.swing.JLabel a4_8;
private javax.swing.JPanel bandeng;
private javax.swing.JButton btnInput;
private javax.swing.JButton btnPeramalan;
private javax.swing.JButton btnUploadCSV;
private javax.swing.JButton btn_batal;
private javax.swing.JButton btn_cari;
private javax.swing.JButton btn_edit;
private javax.swing.JButton btn_hapus;
private javax.swing.JButton btn_tambah;
private javax.swing.JComboBox<String> cmb_tahun;
private javax.swing.JPanel ikanmas;
private javax.swing.JLabel jLabel1;
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 jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel4;
private javax.swing.JLabel jLabel5;
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 jPanel10;
private javax.swing.JPanel jPanel11;
private javax.swing.JPanel jPanel12;
private javax.swing.JPanel jPanel13;
private javax.swing.JPanel jPanel14;
private javax.swing.JPanel jPanel15;
private javax.swing.JPanel jPanel16;
private javax.swing.JPanel jPanel17;
private javax.swing.JPanel jPanel18;
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 jPanel3;
private javax.swing.JPanel jPanel4;
private javax.swing.JPanel jPanel5;
private javax.swing.JPanel jPanel6;
private javax.swing.JPanel jPanel7;
private javax.swing.JScrollPane jScrollPane1;
private javax.swing.JScrollPane jScrollPane10;
private javax.swing.JScrollPane jScrollPane11;
private javax.swing.JScrollPane jScrollPane2;
private javax.swing.JScrollPane jScrollPane3;
private javax.swing.JScrollPane jScrollPane4;
private javax.swing.JScrollPane jScrollPane5;
private javax.swing.JScrollPane jScrollPane6;
private javax.swing.JScrollPane jScrollPane7;
private javax.swing.JScrollPane jScrollPane8;
private javax.swing.JScrollPane jScrollPane9;
private javax.swing.JTabbedPane jTabbedPane1;
private javax.swing.JPanel kakap;
private javax.swing.JPanel kerapu;
private javax.swing.JPanel lele;
private javax.swing.JLabel mape_1;
private javax.swing.JLabel mape_2;
private javax.swing.JLabel mape_3;
private javax.swing.JLabel mape_4;
private javax.swing.JLabel mape_5;
private javax.swing.JLabel mape_6;
private javax.swing.JLabel mape_7;
private javax.swing.JLabel mape_8;
private javax.swing.JPanel nila;
private javax.swing.JPanel panel_INPUT;
private javax.swing.JPanel panel_PREDIKSI;
private javax.swing.JPanel patin;
private javax.swing.JPanel peramalan;
private javax.swing.JTable tbl_1;
private javax.swing.JTable tbl_2;
private javax.swing.JTable tbl_3;
private javax.swing.JTable tbl_4;
private javax.swing.JTable tbl_5;
private javax.swing.JTable tbl_6;
private javax.swing.JTable tbl_7;
private javax.swing.JTable tbl_8;
private javax.swing.JTable tbl_Peramalan;
private javax.swing.JTable tbl_input;
private javax.swing.JTable tbl_input2;
private javax.swing.JLabel txt_IntervalA1_1;
private javax.swing.JLabel txt_IntervalA1_2;
private javax.swing.JLabel txt_IntervalA1_3;
private javax.swing.JLabel txt_IntervalA1_4;
private javax.swing.JLabel txt_IntervalA1_5;
private javax.swing.JLabel txt_IntervalA1_6;
private javax.swing.JLabel txt_IntervalA1_7;
private javax.swing.JLabel txt_IntervalA1_8;
private javax.swing.JLabel txt_IntervalA2_1;
private javax.swing.JLabel txt_IntervalA2_2;
private javax.swing.JLabel txt_IntervalA2_3;
private javax.swing.JLabel txt_IntervalA2_4;
private javax.swing.JLabel txt_IntervalA2_5;
private javax.swing.JLabel txt_IntervalA2_6;
private javax.swing.JLabel txt_IntervalA2_7;
private javax.swing.JLabel txt_IntervalA2_8;
private javax.swing.JLabel txt_IntervalA3_1;
private javax.swing.JLabel txt_IntervalA3_2;
private javax.swing.JLabel txt_IntervalA3_3;
private javax.swing.JLabel txt_IntervalA3_4;
private javax.swing.JLabel txt_IntervalA3_5;
private javax.swing.JLabel txt_IntervalA3_6;
private javax.swing.JLabel txt_IntervalA3_7;
private javax.swing.JLabel txt_IntervalA3_8;
private javax.swing.JLabel txt_IntervalA4_1;
private javax.swing.JLabel txt_IntervalA4_2;
private javax.swing.JLabel txt_IntervalA4_3;
private javax.swing.JLabel txt_IntervalA4_4;
private javax.swing.JLabel txt_IntervalA4_5;
private javax.swing.JLabel txt_IntervalA4_6;
private javax.swing.JLabel txt_IntervalA4_7;
private javax.swing.JLabel txt_IntervalA4_8;
private javax.swing.JTextField txt_bandeng;
private javax.swing.JLabel txt_banyakKelas1;
private javax.swing.JLabel txt_banyakKelas2;
private javax.swing.JLabel txt_banyakKelas3;
private javax.swing.JLabel txt_banyakKelas4;
private javax.swing.JLabel txt_banyakKelas5;
private javax.swing.JLabel txt_banyakKelas6;
private javax.swing.JLabel txt_banyakKelas7;
private javax.swing.JLabel txt_banyakKelas8;
private javax.swing.JLabel txt_intervalKelas1;
private javax.swing.JLabel txt_intervalKelas2;
private javax.swing.JLabel txt_intervalKelas3;
private javax.swing.JLabel txt_intervalKelas4;
private javax.swing.JLabel txt_intervalKelas5;
private javax.swing.JLabel txt_intervalKelas6;
private javax.swing.JLabel txt_intervalKelas7;
private javax.swing.JLabel txt_intervalKelas8;
private javax.swing.JTextField txt_kakap;
private javax.swing.JTextField txt_kerapu;
private javax.swing.JTextField txt_lele;
private javax.swing.JTextField txt_mas;
private javax.swing.JLabel txt_max1;
private javax.swing.JLabel txt_max2;
private javax.swing.JLabel txt_max3;
private javax.swing.JLabel txt_max4;
private javax.swing.JLabel txt_max5;
private javax.swing.JLabel txt_max6;
private javax.swing.JLabel txt_max7;
private javax.swing.JLabel txt_max8;
private javax.swing.JLabel txt_min1;
private javax.swing.JLabel txt_min2;
private javax.swing.JLabel txt_min3;
private javax.swing.JLabel txt_min4;
private javax.swing.JLabel txt_min5;
private javax.swing.JLabel txt_min6;
private javax.swing.JLabel txt_min7;
private javax.swing.JLabel txt_min8;
private javax.swing.JTextField txt_namaFileCSV;
private javax.swing.JTextField txt_nila;
private javax.swing.JTextField txt_patin;
private javax.swing.JLabel txt_rentangKelas1;
private javax.swing.JLabel txt_rentangKelas2;
private javax.swing.JLabel txt_rentangKelas3;
private javax.swing.JLabel txt_rentangKelas4;
private javax.swing.JLabel txt_rentangKelas5;
private javax.swing.JLabel txt_rentangKelas6;
private javax.swing.JLabel txt_rentangKelas7;
private javax.swing.JLabel txt_rentangKelas8;
private javax.swing.JTextField txt_udang;
private javax.swing.JPanel udang;
// End of variables declaration
}

You might also like