Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified build/classes/bismillah_ta/form/form_bukumasuk.class
Binary file not shown.
Binary file modified build/classes/bismillah_ta/form/form_caribuku$1.class
Binary file not shown.
Binary file modified build/classes/bismillah_ta/form/form_caribuku$2.class
Binary file not shown.
Binary file modified build/classes/bismillah_ta/form/form_caribuku$3.class
Binary file not shown.
Binary file modified build/classes/bismillah_ta/form/form_caribuku$4.class
Binary file not shown.
Binary file modified build/classes/bismillah_ta/form/form_caribuku.class
Binary file not shown.
9 changes: 4 additions & 5 deletions build/classes/bismillah_ta/form/form_caribuku.form
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<Group type="102" attributes="0">
<Component id="jLabel1" min="-2" max="-2" attributes="0"/>
<EmptySpace min="-2" pref="34" max="-2" attributes="0"/>
<Component id="caribuku" min="-2" pref="340" max="-2" attributes="0"/>
<Component id="caribukuTxt" min="-2" pref="340" max="-2" attributes="0"/>
</Group>
<Group type="103" alignment="0" groupAlignment="1" max="-2" attributes="0">
<Group type="102" alignment="0" attributes="0">
Expand All @@ -50,7 +50,6 @@
<Component id="jLabel5" min="-2" max="-2" attributes="0"/>
<EmptySpace type="unrelated" max="-2" attributes="0"/>
<Component id="jTextField3" min="-2" max="-2" attributes="0"/>
<EmptySpace min="-2" pref="12" max="-2" attributes="0"/>
</Group>
</Group>
</Group>
Expand All @@ -75,7 +74,7 @@
<Component id="jLabel2" min="-2" max="-2" attributes="0"/>
<EmptySpace min="-2" pref="28" max="-2" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0">
<Component id="caribuku" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="caribukuTxt" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="jLabel1" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace type="unrelated" max="-2" attributes="0"/>
Expand Down Expand Up @@ -108,9 +107,9 @@
<Property name="text" type="java.lang.String" value="Cari Buku"/>
</Properties>
</Component>
<Component class="javax.swing.JTextField" name="caribuku">
<Component class="javax.swing.JTextField" name="caribukuTxt">
<Events>
<EventHandler event="keyReleased" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="caribukuKeyReleased"/>
<EventHandler event="keyReleased" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="caribukuTxtKeyReleased"/>
</Events>
</Component>
<Container class="javax.swing.JScrollPane" name="jScrollPane1">
Expand Down
Binary file modified build/classes/bismillah_ta/form/form_suratpemesanan$1.class
Binary file not shown.
Binary file modified build/classes/bismillah_ta/form/form_suratpemesanan$2.class
Binary file not shown.
Binary file modified build/classes/bismillah_ta/form/form_suratpemesanan$3.class
Binary file not shown.
Binary file modified build/classes/bismillah_ta/form/form_suratpemesanan$4.class
Binary file not shown.
Binary file modified build/classes/bismillah_ta/form/form_suratpemesanan$5.class
Binary file not shown.
Binary file modified build/classes/bismillah_ta/form/form_suratpemesanan$6.class
Binary file not shown.
Binary file not shown.
Binary file modified build/classes/bismillah_ta/form/form_suratpemesanan.class
Binary file not shown.
7 changes: 5 additions & 2 deletions build/classes/bismillah_ta/form/form_suratpemesanan.form
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
<SyntheticProperty name="formSizePolicy" type="int" value="1"/>
<SyntheticProperty name="generateCenter" type="boolean" value="false"/>
</SyntheticProperties>
<Events>
<EventHandler event="windowActivated" listener="java.awt.event.WindowListener" parameters="java.awt.event.WindowEvent" handler="formWindowActivated"/>
</Events>
<AuxValues>
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
<AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
Expand Down Expand Up @@ -366,9 +369,9 @@
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="3" attributes="0">
<Component id="kode_buku" alignment="3" min="-2" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Component id="jButton4" alignment="1" min="-2" max="-2" attributes="0"/>
<Component id="kode_buku" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0">
Expand Down
Binary file modified build/classes/koneksi/koneksi.class
Binary file not shown.
Binary file modified build/classes/module/caribuku.class
Binary file not shown.
Binary file modified build/classes/module/value_faktur.class
Binary file not shown.
14 changes: 10 additions & 4 deletions nbproject/build-impl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,12 @@ is divided into following sections:
</not>
</and>
</condition>
<property name="javac.fork" value="${jdkBug6558476}"/>
<condition else="false" property="javac.fork">
<or>
<istrue value="${jdkBug6558476}"/>
<istrue value="${javac.external.vm}"/>
</or>
</condition>
<property name="jar.index" value="false"/>
<property name="jar.index.metainf" value="${jar.index}"/>
<property name="copylibs.rebase" value="true"/>
Expand All @@ -217,6 +222,7 @@ is divided into following sections:
<condition else="" property="testng.debug.mode" value="-mixed">
<istrue value="${junit+testng.available}"/>
</condition>
<property name="java.failonerror" value="true"/>
</target>
<target name="-post-init">
<!-- Empty placeholder for easier customization. -->
Expand Down Expand Up @@ -693,7 +699,7 @@ is divided into following sections:
<sequential>
<property environment="env"/>
<resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
<java classname="@{classname}" dir="${profiler.info.dir}" fork="true" jvm="${profiler.info.jvm}">
<java classname="@{classname}" dir="${profiler.info.dir}" failonerror="${java.failonerror}" fork="true" jvm="${profiler.info.jvm}">
<jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
<jvmarg value="${profiler.info.jvmargs.agent}"/>
<jvmarg line="${profiler.info.jvmargs}"/>
Expand Down Expand Up @@ -768,7 +774,7 @@ is divided into following sections:
<attribute default="${debug.classpath}" name="classpath"/>
<element name="customize" optional="true"/>
<sequential>
<java classname="@{classname}" dir="${work.dir}" fork="true">
<java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true">
<jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
<jvmarg line="${debug-args-line}"/>
<jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
Expand All @@ -795,7 +801,7 @@ is divided into following sections:
<attribute default="jvm" name="jvm"/>
<element name="customize" optional="true"/>
<sequential>
<java classname="@{classname}" dir="${work.dir}" fork="true">
<java classname="@{classname}" dir="${work.dir}" failonerror="${java.failonerror}" fork="true">
<jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
<jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
<redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
Expand Down
4 changes: 2 additions & 2 deletions nbproject/genfiles.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ build.xml.stylesheet.CRC32=8064a381@1.75.2.48
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
nbproject/build-impl.xml.data.CRC32=18581e92
nbproject/build-impl.xml.script.CRC32=5171b721
nbproject/build-impl.xml.stylesheet.CRC32=876e7a8f@1.75.2.48
nbproject/build-impl.xml.script.CRC32=014b49d1
nbproject/build-impl.xml.stylesheet.CRC32=05530350@1.79.1.48
3 changes: 2 additions & 1 deletion nbproject/private/private.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
compile.on.save=true
user.properties.file=C:\\Users\\Tiara Ridha\\AppData\\Roaming\\NetBeans\\8.0.2\\build.properties
file.reference.rs2xml.jar=C:\\Users\\Cacing\\tiarajava\\rs2xml.jar
user.properties.file=C:\\Users\\Cacing\\AppData\\Roaming\\NetBeans\\8.1\\build.properties
9 changes: 4 additions & 5 deletions src/bismillah_ta/form/form_caribuku.form
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<Group type="102" attributes="0">
<Component id="jLabel1" min="-2" max="-2" attributes="0"/>
<EmptySpace min="-2" pref="34" max="-2" attributes="0"/>
<Component id="caribuku" min="-2" pref="340" max="-2" attributes="0"/>
<Component id="caribukuTxt" min="-2" pref="340" max="-2" attributes="0"/>
</Group>
<Group type="103" alignment="0" groupAlignment="1" max="-2" attributes="0">
<Group type="102" alignment="0" attributes="0">
Expand All @@ -50,7 +50,6 @@
<Component id="jLabel5" min="-2" max="-2" attributes="0"/>
<EmptySpace type="unrelated" max="-2" attributes="0"/>
<Component id="jTextField3" min="-2" max="-2" attributes="0"/>
<EmptySpace min="-2" pref="12" max="-2" attributes="0"/>
</Group>
</Group>
</Group>
Expand All @@ -75,7 +74,7 @@
<Component id="jLabel2" min="-2" max="-2" attributes="0"/>
<EmptySpace min="-2" pref="28" max="-2" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0">
<Component id="caribuku" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="caribukuTxt" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="jLabel1" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace type="unrelated" max="-2" attributes="0"/>
Expand Down Expand Up @@ -108,9 +107,9 @@
<Property name="text" type="java.lang.String" value="Cari Buku"/>
</Properties>
</Component>
<Component class="javax.swing.JTextField" name="caribuku">
<Component class="javax.swing.JTextField" name="caribukuTxt">
<Events>
<EventHandler event="keyReleased" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="caribukuKeyReleased"/>
<EventHandler event="keyReleased" listener="java.awt.event.KeyListener" parameters="java.awt.event.KeyEvent" handler="caribukuTxtKeyReleased"/>
</Events>
</Component>
<Container class="javax.swing.JScrollPane" name="jScrollPane1">
Expand Down
43 changes: 26 additions & 17 deletions src/bismillah_ta/form/form_caribuku.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import koneksi.koneksi;
import net.proteanit.sql.DbUtils;
import bismillah_ta.form.form_suratpemesanan;
import module.caribuku;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;

Expand All @@ -25,7 +26,7 @@ public class form_caribuku extends javax.swing.JFrame {
* Creates new form NewJFrame
*/

public module.caribuku fab = null;
// public module.caribuku fab = null;

public form_caribuku() {
initComponents();
Expand All @@ -42,7 +43,7 @@ public form_caribuku() {
private void initComponents() {

jLabel1 = new javax.swing.JLabel();
caribuku = new javax.swing.JTextField();
caribukuTxt = new javax.swing.JTextField();
jScrollPane1 = new javax.swing.JScrollPane();
jTable1 = new javax.swing.JTable();
jLabel2 = new javax.swing.JLabel();
Expand All @@ -58,9 +59,9 @@ private void initComponents() {

jLabel1.setText("Cari Buku");

caribuku.addKeyListener(new java.awt.event.KeyAdapter() {
caribukuTxt.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyReleased(java.awt.event.KeyEvent evt) {
caribukuKeyReleased(evt);
caribukuTxtKeyReleased(evt);
}
});

Expand Down Expand Up @@ -116,7 +117,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel1)
.addGap(34, 34, 34)
.addComponent(caribuku, javax.swing.GroupLayout.PREFERRED_SIZE, 340, javax.swing.GroupLayout.PREFERRED_SIZE))
.addComponent(caribukuTxt, javax.swing.GroupLayout.PREFERRED_SIZE, 340, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
.addComponent(jLabel4)
Expand All @@ -129,8 +130,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel5)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(12, 12, 12))))
.addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
.addGroup(layout.createSequentialGroup()
.addGap(216, 216, 216)
.addComponent(jLabel2)))
Expand All @@ -147,7 +147,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
.addComponent(jLabel2)
.addGap(28, 28, 28)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(caribuku, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(caribukuTxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel1))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE)
Expand All @@ -173,30 +173,39 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
// TODO add your handling code here:

bismillah_ta.form.form_suratpemesanan yo = new bismillah_ta.form.form_suratpemesanan();
yo.setVisible(true);
this.setVisible(false);
}//GEN-LAST:event_jButton1ActionPerformed

private void caribukuKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_caribukuKeyReleased
private void caribukuTxtKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_caribukuTxtKeyReleased
// TODO add your handling code here:
try {
Connection con = koneksi.GetConnection();
Statement st = con.createStatement();
ResultSet rs = st.executeQuery("Select kode_buku,nama_buku,hrg_satuan from data_buku where kode_buku like '%"+caribuku.getText()+"%'"
+ "or nama_buku like '%"+caribuku.getText()+"%'");
ResultSet rs = st.executeQuery("Select kode_buku,nama_buku,hrg_satuan from data_buku where kode_buku like '%"+caribukuTxt.getText()+"%'"
+ "or nama_buku like '%"+caribukuTxt.getText()+"%'");
jTable1.setModel(DbUtils.resultSetToTableModel(rs));
} catch (SQLException sqlEx) {
System.out.println(sqlEx.getMessage());
}
}//GEN-LAST:event_caribukuKeyReleased
}//GEN-LAST:event_caribukuTxtKeyReleased

private void jTable1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTable1MouseClicked
// TODO add your handling code here:
// caribuku buku = new caribuku();
// System.out.println("TEST");
int x = jTable1.getSelectedRow();
// System.out.println(x);
if (x != -1)
{
fab.kdBuku = jTable1.getValueAt(x, 0).toString();
fab.namaBuku = jTable1.getValueAt(x, 1).toString();
fab.hargaBuku = jTable1.getValueAt(x, 2).toString();
// System.out.println(jTable1.getValueAt(x, 0).toString());
caribuku.kdBuku = jTable1.getValueAt(x, 0).toString();
caribuku.namaBuku = jTable1.getValueAt(x, 1).toString();
caribuku.hargaBuku = jTable1.getValueAt(x, 2).toString();

// System.out.println(caribuku.kdBuku);
// fab.hargaBuku = jTable1.getValueAt(x, 2).toString();
// jTextField1.setText(jTable1.getValueAt(x, 0).toString());
// jTextField2.setText(jTable1.getValueAt(x, 1).toString());
// jTextField2.setText(jTable1.getValueAt(x, 2).toString());
Expand Down Expand Up @@ -262,7 +271,7 @@ public void run() {
}

// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JTextField caribuku;
private javax.swing.JTextField caribukuTxt;
private javax.swing.JButton jButton1;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
Expand Down
7 changes: 5 additions & 2 deletions src/bismillah_ta/form/form_suratpemesanan.form
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
<SyntheticProperty name="formSizePolicy" type="int" value="1"/>
<SyntheticProperty name="generateCenter" type="boolean" value="false"/>
</SyntheticProperties>
<Events>
<EventHandler event="windowActivated" listener="java.awt.event.WindowListener" parameters="java.awt.event.WindowEvent" handler="formWindowActivated"/>
</Events>
<AuxValues>
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
<AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
Expand Down Expand Up @@ -366,9 +369,9 @@
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" attributes="0">
<Group type="103" groupAlignment="3" attributes="0">
<Component id="kode_buku" alignment="3" min="-2" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Component id="jButton4" alignment="1" min="-2" max="-2" attributes="0"/>
<Component id="kode_buku" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0">
Expand Down
Loading