jlabel14 = new javax.swing.jlabel(); jlabel15 = new javax.swing.jlabel(); jlabel16 = new javax.swing.jlabel(); jlabel17 = new javax.swing.
|
|
- Alfred Horn
- 6 years ago
- Views:
Transcription
1 188 APPENDIX 1 { jinternalframe1 = new javax.swing.jinternalframe(); jlabel1 = new javax.swing.jlabel(); jlabel2 = new javax.swing.jlabel(); jlabel3 = new javax.swing.jlabel(); jlabel4 = new javax.swing.jlabel(); jlabel5 = new javax.swing.jlabel(); jlabel6 = new javax.swing.jlabel(); jlabel7 = new javax.swing.jlabel(); jlabel8 = new javax.swing.jlabel(); jlabel9 = new javax.swing.jlabel(); jlabel10 = new javax.swing.jlabel(); jlabel11 = new javax.swing.jlabel(); c = new javax.swing.jtextfield(); si = new javax.swing.jtextfield(); mn = new javax.swing.jtextfield(); s = new javax.swing.jtextfield(); p = new javax.swing.jtextfield(); cr = new javax.swing.jtextfield(); ni = new javax.swing.jtextfield(); mo = new javax.swing.jtextfield(); cu = new javax.swing.jtextfield(); v = new javax.swing.jtextfield(); w = new javax.swing.jtextfield(); jinternalframe2 = new javax.swing.jinternalframe(); jlabel12 = new javax.swing.jlabel(); jlabel13 = new javax.swing.jlabel();
2 189 jlabel14 = new javax.swing.jlabel(); jlabel15 = new javax.swing.jlabel(); jlabel16 = new javax.swing.jlabel(); jlabel17 = new javax.swing.jlabel(); jlabel18 = new javax.swing.jlabel(); jlabel19 = new javax.swing.jlabel(); jlabel20 = new javax.swing.jlabel(); jlabel21 = new javax.swing.jlabel(); jlabel22 = new javax.swing.jlabel(); ts = new javax.swing.jtextfield(); ys = new javax.swing.jtextfield(); e = new javax.swing.jtextfield(); r = new javax.swing.jtextfield(); pr = new javax.swing.jtextfield(); y = new javax.swing.jtextfield(); st = new javax.swing.jtextfield(); sa = new javax.swing.jtextfield(); td = new javax.swing.jtextfield(); li = new javax.swing.jtextfield(); jseparator1 = new javax.swing.jseparator(); jlabel27 = new javax.swing.jlabel(); jlabel28 = new javax.swing.jlabel(); jpanel1 = new javax.swing.jpanel(); jlabel23 = new javax.swing.jlabel(); jlabel24 = new javax.swing.jlabel(); jcombobox1 = new javax.swing.jcombobox(); jcombobox2 = new javax.swing.jcombobox(); jlabel25 = new javax.swing.jlabel(); jlabel26 = new javax.swing.jlabel(); jseparator2 = new javax.swing.jseparator(); jpanel2 = new javax.swing.jpanel(); jbutton1 = new javax.swing.jbutton();
3 190 jbutton2 = new javax.swing.jbutton(); jbutton3 = new javax.swing.jbutton(); setdefaultcloseoperation(javax.swing.windowconstants.exit_on_close ); settitle("impds"); setbackground(new java.awt.color(204, 255, 255)); getcontentpane().setlayout(null); jinternalframe1.setbackground(java.awt.color.pink); jinternalframe1.setborder(javax.swing.borderfactory.createlineborder(new java.awt.color(0, 0, 0))); jinternalframe1.setresizable(true); jinternalframe1.settitle("input VALUES"); jinternalframe1.setopaque(true); jinternalframe1.setvisible(true); jinternalframe1.getcontentpane().setlayout(null); jlabel1.setlabelfor(c); jlabel1.settext("c"); jinternalframe1.getcontentpane().add(jlabel1); jlabel1.setbounds(30, 20, 20, 14); jlabel2.setlabelfor(si); jlabel2.settext("si"); jinternalframe1.getcontentpane().add(jlabel2); jlabel2.setbounds(30, 50, 20, 14); jlabel3.setlabelfor(mn); jlabel3.settext("mn"); jinternalframe1.getcontentpane().add(jlabel3); jlabel3.setbounds(30, 80, 30, 14);
4 191 jlabel4.setlabelfor(s); jlabel4.settext("s"); jinternalframe1.getcontentpane().add(jlabel4); jlabel4.setbounds(30, 110, 20, 14); jlabel5.setlabelfor(p); jlabel5.settext("p"); jinternalframe1.getcontentpane().add(jlabel5); jlabel5.setbounds(30, 140, 20, 14); jlabel6.setlabelfor(cr); jlabel6.settext("cr"); jinternalframe1.getcontentpane().add(jlabel6); jlabel6.setbounds(30, 170, 30, 14); jlabel7.setlabelfor(ni); jlabel7.settext("ni"); jinternalframe1.getcontentpane().add(jlabel7); jlabel7.setbounds(30, 200, 11, 14); jlabel8.setlabelfor(mo); jlabel8.settext("mo"); jinternalframe1.getcontentpane().add(jlabel8); jlabel8.setbounds(30, 230, 30, 14); jlabel9.setlabelfor(cu); jlabel9.settext("cu"); jinternalframe1.getcontentpane().add(jlabel9); jlabel9.setbounds(30, 260, 30, 14); jlabel10.setlabelfor(v); jlabel10.settext("v");
5 192 jinternalframe1.getcontentpane().add(jlabel10); jlabel10.setbounds(30, 290, 30, 14); jlabel11.setlabelfor(w); jlabel11.settext("w"); jinternalframe1.getcontentpane().add(jlabel11); jlabel11.setbounds(30, 320, 40, 14); c.setname("c"); // NOI18N c.addkeylistener(new java.awt.event.keyadapter() { public void keytyped(java.awt.event.keyevent evt) { ckeytyped(evt); ); jinternalframe1.getcontentpane().add(c); c.setbounds(90, 20, 70, 19); si.addkeylistener(new java.awt.event.keyadapter() { public void keytyped(java.awt.event.keyevent evt) { sikeytyped(evt); ); jinternalframe1.getcontentpane().add(si); si.setbounds(90, 50, 70, 19); mn.addkeylistener(new java.awt.event.keyadapter() { public void keytyped(java.awt.event.keyevent evt) { mnkeytyped(evt); ); jinternalframe1.getcontentpane().add(mn); mn.setbounds(90, 80, 70, 19);
6 193 s.addkeylistener(new java.awt.event.keyadapter() { public void keytyped(java.awt.event.keyevent evt) { skeytyped(evt); ); jinternalframe1.getcontentpane().add(s); s.setbounds(90, 110, 70, 19); p.addkeylistener(new java.awt.event.keyadapter() { public void keytyped(java.awt.event.keyevent evt) { pkeytyped(evt); ); jinternalframe1.getcontentpane().add(p); p.setbounds(90, 140, 70, 19); cr.addkeylistener(new java.awt.event.keyadapter() { public void keytyped(java.awt.event.keyevent evt) { crkeytyped(evt); ); jinternalframe1.getcontentpane().add(cr); cr.setbounds(90, 170, 70, 19); ni.addkeylistener(new java.awt.event.keyadapter() { public void keytyped(java.awt.event.keyevent evt) { nikeytyped(evt); ); jinternalframe1.getcontentpane().add(ni); ni.setbounds(90, 200, 70, 19);
7 194 mo.addkeylistener(new java.awt.event.keyadapter() { public void keytyped(java.awt.event.keyevent evt) { mokeytyped(evt); ); jinternalframe1.getcontentpane().add(mo); mo.setbounds(90, 230, 70, 19); cu.addkeylistener(new java.awt.event.keyadapter() { public void keytyped(java.awt.event.keyevent evt) { cukeytyped(evt); ); jinternalframe1.getcontentpane().add(cu); cu.setbounds(90, 260, 70, 19); v.addkeylistener(new java.awt.event.keyadapter() { public void keytyped(java.awt.event.keyevent evt) { vkeytyped(evt); ); jinternalframe1.getcontentpane().add(v); v.setbounds(90, 290, 70, 19); w.addkeylistener(new java.awt.event.keyadapter() { public void keytyped(java.awt.event.keyevent evt) { wkeytyped(evt); ); jinternalframe1.getcontentpane().add(w); w.setbounds(90, 320, 70, 19);
8 195 getcontentpane().add(jinternalframe1); jinternalframe1.setbounds(30, 30, 200, 390); jinternalframe2.setbackground(java.awt.color.pink); jinternalframe2.setborder(javax.swing.borderfactory.createlineborder(new java.awt.color(0, 0, 0))); jinternalframe2.setresizable(true); jinternalframe2.settitle("output VALUES"); jinternalframe2.setopaque(true); jinternalframe2.setvisible(true); jinternalframe2.getcontentpane().setlayout(null); jlabel12.setlabelfor(c); jlabel12.settext("tenstile STRENGTH"); jinternalframe2.getcontentpane().add(jlabel12); jlabel12.setbounds(10, 50, 130, 14); jlabel13.setlabelfor(si); jlabel13.settext("ys"); jinternalframe2.getcontentpane().add(jlabel13); jlabel13.setbounds(20, 70, 80, 14); jlabel14.setlabelfor(mn); jlabel14.settext("%elongation"); jinternalframe2.getcontentpane().add(jlabel14); jlabel14.setbounds(10, 90, 110, 14); jlabel15.setlabelfor(s); jlabel15.settext("ra"); jinternalframe2.getcontentpane().add(jlabel15); jlabel15.setbounds(40, 110, 20, 14);
9 196 jlabel16.setlabelfor(p); jlabel16.settext("poisionratio"); jinternalframe2.getcontentpane().add(jlabel16); jlabel16.setbounds(20, 130, 130, 14); jlabel17.setlabelfor(cr); jlabel17.settext("young's MODULUS"); jinternalframe2.getcontentpane().add(jlabel17); jlabel17.setbounds(20, 150, 130, 14); jlabel18.setlabelfor(ni); jlabel18.settext("stress"); jinternalframe2.getcontentpane().add(jlabel18); jlabel18.setbounds(40, 230, 60, 14); jlabel19.setlabelfor(mo); jlabel19.settext("strain"); jinternalframe2.getcontentpane().add(jlabel19); jlabel19.setbounds(40, 250, 60, 14); jlabel20.setlabelfor(cu); jinternalframe2.getcontentpane().add(jlabel20); jlabel20.setbounds(30, 180, 30, 0); jlabel21.setlabelfor(v); jlabel21.settext("total DEFORMATION"); jinternalframe2.getcontentpane().add(jlabel21); jlabel21.setbounds(10, 270, 130, 14); jlabel22.setlabelfor(w); jlabel22.settext("life"); jinternalframe2.getcontentpane().add(jlabel22);
10 197 jlabel22.setbounds(50, 290, 40, 14); ts.setenabled(false); ts.addkeylistener(new java.awt.event.keyadapter() { public void keytyped(java.awt.event.keyevent evt) { tskeytyped(evt); ); jinternalframe2.getcontentpane().add(ts); ts.setbounds(140, 50, 130, 19); ys.setenabled(false); jinternalframe2.getcontentpane().add(ys); ys.setbounds(140, 70, 130, 19); e.setenabled(false); jinternalframe2.getcontentpane().add(e); e.setbounds(140, 90, 130, 19); r.setenabled(false); jinternalframe2.getcontentpane().add(r); r.setbounds(140, 110, 130, 19); pr.setenabled(false); jinternalframe2.getcontentpane().add(pr); pr.setbounds(140, 130, 130, 19); y.setenabled(false); jinternalframe2.getcontentpane().add(y); y.setbounds(140, 150, 130, 19);
11 198 st.setenabled(false); jinternalframe2.getcontentpane().add(st); st.setbounds(140, 230, 130, 19); sa.setenabled(false); jinternalframe2.getcontentpane().add(sa); sa.setbounds(140, 250, 130, 19); td.setenabled(false); jinternalframe2.getcontentpane().add(td); td.setbounds(140, 270, 130, 19); li.setenabled(false); jinternalframe2.getcontentpane().add(li); li.setbounds(140, 290, 130, 19); jinternalframe2.getcontentpane().add(jseparator1); jseparator1.setbounds(10, 188, 270, 10); jlabel27.setfont(new java.awt.font("tahoma", 1, 12)); // NOI18N jlabel27.settext("material ATTRIBUTES:"); jinternalframe2.getcontentpane().add(jlabel27); jlabel27.setbounds(30, 20, 170, 15); jlabel28.setfont(new java.awt.font("tahoma", 1, 12)); // NOI18N jlabel28.settext("product ATTRIBUTES:"); jinternalframe2.getcontentpane().add(jlabel28); jlabel28.setbounds(40, 200, 160, 15); getcontentpane().add(jinternalframe2); jinternalframe2.setbounds(510, 30, 320, 390); jpanel1.setbackground(new java.awt.color(255, 255, 204));
12 199 jpanel1.setborder(new javax.swing.border.softbevelborder(javax.swing.border.bevelborder.raise D)); jpanel1.setlayout(null); jlabel23.setfont(new java.awt.font("tahoma", 1, 12)); // NOI18N jlabel23.settext("gate VALVE"); jpanel1.add(jlabel23); jlabel23.setbounds(70, 20, 80, 15); jlabel24.setfont(new java.awt.font("tahoma", 1, 12)); // NOI18N jlabel24.settext("ball VALVE"); jpanel1.add(jlabel24); jlabel24.setbounds(70, 100, 80, 15); jcombobox1.setmodel(new javax.swing.defaultcomboboxmodel(new String[] { "NULL", "15", "17", "19", "21" )); jcombobox1.additemlistener(new java.awt.event.itemlistener() { public void itemstatechanged(java.awt.event.itemevent evt) { jcombobox1itemstatechanged(evt); ); jpanel1.add(jcombobox1); jcombobox1.setbounds(20, 50, 60, 22); jcombobox2.setmodel(new javax.swing.defaultcomboboxmodel(new String[] { "NULL", "50", "60", "70", "80" )); jcombobox2.additemlistener(new java.awt.event.itemlistener() { public void itemstatechanged(java.awt.event.itemevent evt) { jcombobox2itemstatechanged(evt); );
13 200 jpanel1.add(jcombobox2); jcombobox2.setbounds(20, 130, 60, 22); jlabel25.settext("mm THICKNESS"); jpanel1.add(jlabel25); jlabel25.setbounds(100, 50, 100, 30); jlabel26.settext("outer DIAMETER"); jpanel1.add(jlabel26); jlabel26.setbounds(90, 130, 100, 30); jpanel1.add(jseparator2); jseparator2.setbounds(0, 90, 230, 10); getcontentpane().add(jpanel1); jpanel1.setbounds(240, 130, 230, 180); jbutton1.settext("solve"); jbutton1.addactionlistener(new java.awt.event.actionlistener() { public void actionperformed(java.awt.event.actionevent evt) { jbutton1actionperformed(evt); ); jbutton2.settext("reset"); jbutton2.addactionlistener(new java.awt.event.actionlistener() { public void actionperformed(java.awt.event.actionevent evt) { jbutton2actionperformed(evt); ); jbutton3.settext("exit"); jbutton3.addactionlistener(new java.awt.event.actionlistener() {
14 201 public void actionperformed(java.awt.event.actionevent evt) { jbutton3actionperformed(evt); ); org.jdesktop.layout.grouplayout jpanel2layout = new org.jdesktop.layout.grouplayout(jpanel2); jpanel2.setlayout(jpanel2layout); jpanel2layout.sethorizontalgroup( jpanel2layout.createparallelgroup(org.jdesktop.layout.grouplayout.leadi NG).add(jPanel2Layout.createSequentialGroup().add(22, 22, 22).add(jButton1).addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(jButton2).addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED).add(jButton3).addContainerGap(55, Short.MAX_VALUE)) ); jpanel2layout.setverticalgroup( jpanel2layout.createparallelgroup(org.jdesktop.layout.grouplayout.leadi NG).add(jPanel2Layout.createSequentialGroup().add(19, 19, 19).add(jPanel2Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.B ASELINE).add(jButton2).add(jButton1)
15 202 );.add(jbutton3)).addcontainergap(18, Short.MAX_VALUE)) getcontentpane().add(jpanel2); jpanel2.setbounds(230, 440, 270, 60); pack(); // </editor-fold> private void ckeytyped(java.awt.event.keyevent evt) { char c = evt.getkeychar(); if (!((c >= '0') && (c <= '9') (c=='.') (c == java.awt.event.keyevent.vk_back_space) (c == java.awt.event.keyevent.vk_delete))) { gettoolkit().beep(); evt.consume(); private void tskeytyped(java.awt.event.keyevent evt) { private void sikeytyped(java.awt.event.keyevent evt) { char c = evt.getkeychar(); if (!((c >= '0') && (c <= '9') (c=='.') (c == java.awt.event.keyevent.vk_back_space) (c == java.awt.event.keyevent.vk_delete))) {
16 203 gettoolkit().beep(); evt.consume(); private void mnkeytyped(java.awt.event.keyevent evt) { char c = evt.getkeychar(); if (!((c >= '0') && (c <= '9') (c=='.') (c == java.awt.event.keyevent.vk_back_space) (c == java.awt.event.keyevent.vk_delete))) { gettoolkit().beep(); evt.consume(); private void skeytyped(java.awt.event.keyevent evt) { char c = evt.getkeychar(); if (!((c >= '0') && (c <= '9') (c=='.') (c == java.awt.event.keyevent.vk_back_space) (c == java.awt.event.keyevent.vk_delete))) { gettoolkit().beep(); evt.consume(); private void pkeytyped(java.awt.event.keyevent evt) { char c = evt.getkeychar(); if (!((c >= '0') && (c <= '9') (c=='.') (c == java.awt.event.keyevent.vk_back_space)
17 204 (c == java.awt.event.keyevent.vk_delete))) { gettoolkit().beep(); evt.consume(); private void crkeytyped(java.awt.event.keyevent evt) { char c = evt.getkeychar(); if (!((c >= '0') && (c <= '9') (c=='.') (c == java.awt.event.keyevent.vk_back_space) (c == java.awt.event.keyevent.vk_delete))) { gettoolkit().beep(); evt.consume(); private void nikeytyped(java.awt.event.keyevent evt) { char c = evt.getkeychar(); if (!((c >= '0') && (c <= '9') (c=='.') (c == java.awt.event.keyevent.vk_back_space) (c == java.awt.event.keyevent.vk_delete))) { gettoolkit().beep(); evt.consume(); private void mokeytyped(java.awt.event.keyevent evt) { char c = evt.getkeychar(); if (!((c >= '0') && (c <= '9') (c=='.')
18 205 (c == java.awt.event.keyevent.vk_back_space) (c == java.awt.event.keyevent.vk_delete))) { gettoolkit().beep(); evt.consume(); private void cukeytyped(java.awt.event.keyevent evt) { char c = evt.getkeychar(); if (!((c >= '0') && (c <= '9') (c=='.') (c == java.awt.event.keyevent.vk_back_space) (c == java.awt.event.keyevent.vk_delete))) { gettoolkit().beep(); evt.consume(); private void vkeytyped(java.awt.event.keyevent evt) { char c = evt.getkeychar(); if (!((c >= '0') && (c <= '9') (c=='.') (c == java.awt.event.keyevent.vk_back_space) (c == java.awt.event.keyevent.vk_delete))) { gettoolkit().beep(); evt.consume(); private void wkeytyped(java.awt.event.keyevent evt) { char c = evt.getkeychar();
19 206 if (!((c >= '0') && (c <= '9') (c=='.') (c == java.awt.event.keyevent.vk_back_space) (c == java.awt.event.keyevent.vk_delete))) { gettoolkit().beep(); evt.consume(); { private void jcombobox1itemstatechanged(java.awt.event.itemevent evt) jcombobox2.setselectedindex(0); ts.settext(""); ys.settext(""); e.settext(""); r.settext(""); pr.settext(""); y.settext(""); st.settext(""); sa.settext(""); td.settext(""); li.settext(""); { private void jcombobox2itemstatechanged(java.awt.event.itemevent evt) jcombobox1.setselectedindex(0); ts.settext(""); ys.settext(""); e.settext("");
20 207 r.settext(""); pr.settext(""); y.settext(""); st.settext(""); sa.settext(""); td.settext(""); li.settext(""); private void jbutton1actionperformed(java.awt.event.actionevent evt) { try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); String datasourcename = "IMPDS"; String dburl = "jdbc:odbc:" + datasourcename; Connection con = DriverManager.getConnection(dbURL, "",""); String str1 = (String)jComboBox1.getSelectedItem(); String str11 = (String)jComboBox2.getSelectedItem(); Double s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11; if(str1.equals("null")&&str11.equals("null")) { ts.settext(""); ys.settext(""); e.settext(""); r.settext(""); pr.settext(""); y.settext(""); st.settext("");
21 208 sa.settext(""); td.settext(""); li.settext(""); JOptionPane.showMessageDialog(this,"Please select thickness!.!.!"); if(str11.equals("null")) { s1=double.parsedouble(c.gettext()); s2=double.parsedouble(si.gettext()); s3=double.parsedouble(mn.gettext()); s4=double.parsedouble(s.gettext()); s5=double.parsedouble(p.gettext()); s6=double.parsedouble(cr.gettext()); s7=double.parsedouble(ni.gettext()); s8=double.parsedouble(mo.gettext()); s9=double.parsedouble(cu.gettext()); s10=double.parsedouble(v.gettext()); s11=double.parsedouble(w.gettext()); Statement s = con.createstatement(); s.execute(" select * from input where C= "+s1+" AND Si="+s2+" AND Mn ="+s3+" AND THI="+str1+""); ResultSet rs = s.getresultset(); { if (rs == null) System.out.println("No matched data found"); { else
22 209 while ( rs.next()) { // C Si Mn S P Cr Ni Mo Cu V W System.out.println("\n The matched values are:\n"); ts.settext(rs.getstring(12)); ys.settext(rs.getstring(13)); e.settext(rs.getstring(14)); r.settext(rs.getstring(15)); pr.settext(rs.getstring(16)); y.settext(rs.getstring(17)); st.settext(rs.getstring(19)); sa.settext(rs.getstring(20)); td.settext(rs.getstring(21)); li.settext(rs.getstring(22)); System.out.println("\nData from Si: " + rs.getdouble(1) ); System.out.println("\nData from Mn: " + rs.getdouble(2) ); System.out.println("\nData from S: " + rs.getdouble(3) ); System.out.println("\nData from P: " + rs.getdouble(4) ); System.out.println("\nData from Cr: " + rs.getdouble(5) ); System.out.println("\nData from Ni: " + rs.getdouble(6) ); System.out.println("\nData from Mo: " + rs.getdouble(7) ); System.out.println("\nData from Cu: " + rs.getdouble(8) ); System.out.println("\nData from V: " + rs.getdouble(9) ); System.out.println("\nData from C: " + rs.getdouble(10)); System.out.println("\nData from W: " + rs.getdouble(11)); s.close(); con.close();
23 210 else if(str1.equals("null")) { s1=double.parsedouble(c.gettext()); s2=double.parsedouble(si.gettext()); s3=double.parsedouble(mn.gettext()); s4=double.parsedouble(s.gettext()); s5=double.parsedouble(p.gettext()); s6=double.parsedouble(cr.gettext()); s7=double.parsedouble(ni.gettext()); s8=double.parsedouble(mo.gettext()); s9=double.parsedouble(cu.gettext()); s10=double.parsedouble(v.gettext()); s11=double.parsedouble(w.gettext()); Statement s = con.createstatement(); s.execute(" select * from input where C= "+s1+" AND Si="+s2+" AND Mn ="+s3+" AND THI="+str11+""); ResultSet rs = s.getresultset(); { if (rs == null) System.out.println("No matched data found"); { else { while ( rs.next()) W // C Si Mn S P Cr Ni Mo Cu V
24 211 System.out.println("\n The matched values are:\n"); ts.settext(rs.getstring(12)); ys.settext(rs.getstring(13)); e.settext(rs.getstring(14)); r.settext(rs.getstring(15)); pr.settext(rs.getstring(16)); y.settext(rs.getstring(17)); st.settext(rs.getstring(19)); sa.settext(rs.getstring(20)); td.settext(rs.getstring(21)); li.settext(rs.getstring(22)); System.out.println("\nData from Si: " + rs.getdouble(1) ); System.out.println("\nData from Mn: " + rs.getdouble(2) ); System.out.println("\nData from S: " + rs.getdouble(3) ); System.out.println("\nData from P: " + rs.getdouble(4) ); System.out.println("\nData from Cr: " + rs.getdouble(5) ); System.out.println("\nData from Ni: " + rs.getdouble(6) ); System.out.println("\nData from Mo: " + rs.getdouble(7) ); System.out.println("\nData from Cu: " + rs.getdouble(8) ); System.out.println("\nData from V: " + rs.getdouble(9) ); System.out.println("\nData from C: " + rs.getdouble(10)); System.out.println("\nData from W: " + rs.getdouble(11)); s.close(); con.close();
25 212 catch (Exception err) { System.out.println("ERROR: " + err); private void jbutton2actionperformed(java.awt.event.actionevent evt) { c.settext(""); w.settext(""); si.settext(""); ts.settext(""); mn.settext(""); ys.settext(""); s.settext(""); e.settext(""); p.settext(""); r.settext(""); cr.settext(""); pr.settext(""); ni.settext(""); y.settext(""); mo.settext(""); st.settext(""); cu.settext(""); sa.settext(""); v.settext(""); td.settext(""); li.settext(""); private void jbutton3actionperformed(java.awt.event.actionevent evt) { this.dispose(); /** args the command line arguments */ public static void main(string args[]) { java.awt.eventqueue.invokelater(new Runnable() { public void run() { new mainpg().setvisible(true); );
26 213 // Variables declaration - do not modify private javax.swing.jtextfield c; private javax.swing.jtextfield cr; private javax.swing.jtextfield cu; private javax.swing.jtextfield e; private javax.swing.jbutton jbutton1; private javax.swing.jbutton jbutton2; private javax.swing.jbutton jbutton3; private javax.swing.jcombobox jcombobox1; private javax.swing.jcombobox jcombobox2; private javax.swing.jinternalframe jinternalframe1; private javax.swing.jinternalframe jinternalframe2; 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 jlabel19; private javax.swing.jlabel jlabel2; private javax.swing.jlabel jlabel20; private javax.swing.jlabel jlabel21; private javax.swing.jlabel jlabel22; private javax.swing.jlabel jlabel23; private javax.swing.jlabel jlabel24; private javax.swing.jlabel jlabel25; private javax.swing.jlabel jlabel26; private javax.swing.jlabel jlabel27;
27 214 private javax.swing.jlabel jlabel28; 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 jpanel2; private javax.swing.jseparator jseparator1; private javax.swing.jseparator jseparator2; private javax.swing.jtextfield li; private javax.swing.jtextfield mn; private javax.swing.jtextfield mo; private javax.swing.jtextfield ni; private javax.swing.jtextfield p; private javax.swing.jtextfield pr; private javax.swing.jtextfield r; private javax.swing.jtextfield s; private javax.swing.jtextfield sa; private javax.swing.jtextfield si; private javax.swing.jtextfield st; private javax.swing.jtextfield td; private javax.swing.jtextfield ts; private javax.swing.jtextfield v; private javax.swing.jtextfield w; private javax.swing.jtextfield y; private javax.swing.jtextfield ys; // End of variables declaration
Java Programming Summer 2008 LAB. Thursday 8/21/2008
LAB Thursday 8/21/2008 Design and implement the program that contains a timer. When the program starts, the timer shows 00:00:00. When we click the Start button, the timer starts. When we click the Stop
More information* To change this license header, choose License Headers in Project Properties.
/* * 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 tugasumbyjava; /**
More information* To change this license header, choose License Headers in Project Properties.
/* * 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 calci; /** * *
More informationAppendix I: Software Coding
References [1] Ceylon Electricity Board, Statistical Digest 2015, pp 2 [2] Roy Billinton and Ronald N. Allan, Reliability Evaluation of Engineering Systems: Concepts and Techniques, Springer (first published
More informationRole-Coll Role Based Collaboration Software
Department of Computer Science University of Nevada, Reno Role-Coll Role Based Collaboration Software CS 425 12/12/2006 Software Team: Harold De Armas, Erik Hanchett, Raymond Lee, Zack Norcross Business
More informationAnswer on question #61311, Programming & Computer Science / Java
Answer on question #61311, Programming & Computer Science / Java JSP JSF for completion Once the user starts the thread by clicking a button, the program must choose a random image out of an image array,
More informationJAVA CODE JAVA CODE: BINOMIAL TREES OPTION PRICING BINOMIALTREE CLASS PAGE 1
CODE JAVA CODE BINOMIAL TREES OPTION PRICING JAVA CODE: BINOMIAL TREES OPTION PRICING BINOMIALTREE CLASS /** * * @author Ioannis Svigkos 2008 */ // This class corresponds to binomial tree option pricing.
More information/** Creates new form NewJFrame */ public NewJFrame() { initcomponents(); initblogsearch(); //initializes Index List box }
/* * To change this template, choose Tools Templates * and open the template in the editor. */ /* * NewJFrame.java * * Created on Apr 17, 2011, 1:13:13 PM */ /** * * @author Kelli */ import java.io.*;
More informationTravel Agency. Khateeb Engineering Classes. Mini Project. Khateeb Engineering Classes: / Technology to be used
Khateeb Engineering Classes Mini Project Travel Agency Technology to be used Front end :Java Swings Back End: PHP Myadmin Requirements : 1) Jdk ( version 1.6 or upwards) 2) Netbeans (Version 6.0 or upwards)
More informationTECHNICAL DOCUMENTATION
TECHNICAL DOCUMENTATION UNDERSTANDING THE JAVA/XML CODE BINDING IN OPENBRAVO POS AND LITTLE EDITING SPONSORED BY: IT-KAMER COMPANY LTD CEO: Dr.-Ing. Stanley Mungwe SONDI Mikael Steve jobs project Cameroon
More informationI.1 Introduction Matisse GUI designer I.2 GroupLayout Basics Sequential and Parallel Arrangements sequential horizontal orientation
I GroupLayout I.1 Introduction Java SE 6 includes a powerful layout manager called GroupLayout, which is the default layout manager in the NetBeans IDE (www.netbeans.org). In this appendix, we overview
More informationCHAPTER 8 INFERENCE. The concept of Inference would be explained in the following chapter, as the CTBN
CHAPTER 8 INFERENCE The concept of Inference would be explained in the following chapter, as the CTBN framework has already been detailed on. The chapter begins by answering the most asked queries and
More informationDAFTAR LAMPIRAN. Source Code Java Aplikasi Keyword to Image Renamer Split
DAFTAR LAMPIRAN Source Code Java Aplikasi Keyword to Image Renamer Split Source Code Menu Utama package spin_text; import java.awt.color; import java.awt.event.actionevent; import java.awt.event.actionlistener;
More informationAppBisect > PrBisect > class Functie. AppBisect > PrBisect > class Punct. public class Functie { double x(double t) { return t;
1 AppBisect > PrBisect > class Punct public class Punct { double x,y; public Punct(double x, double y) { this.x = x; this.y = y; public void setx(double x) { this.x = x; public double getx() { return x;
More informationLampiran A. SOURCE CODE PROGRAM
A-1 Lampiran A. SOURCE CODE PROGRAM Frame Utama package FrameDesign; import ArithmeticSkripsi.ArithmeticCompress; import ArithmeticSkripsi.ArithmeticDecompress; import Deflate.DeflateContoh; import java.io.file;
More informationSampleApp.java. Page 1
SampleApp.java 1 package msoe.se2030.sequence; 2 3 /** 4 * This app creates a UI and processes data 5 * @author hornick 6 */ 7 public class SampleApp { 8 private UserInterface ui; // the UI for this program
More informationThis document shows the whole program for the implementation of the Withdraw operation specication.
This document shows the whole program for the implementation of the Withdraw operation specication. * Account.java * 1 package ATM_BasicClasses; 3 import java.util.date; 4 5 public class Account { 6 public
More informationCOMP16121 Sample Code Lecture 1
COMP16121 Sample Code Lecture 1 Sean Bechhofer, University of Manchester, Manchester, UK sean.bechhofer@manchester.ac.uk 1 SimpleFrame 1 import javax.swing.jframe; 2 3 public class SimpleFrame { 4 5 /*
More informationProctors are unable to respond to queries about the interpretation of exam questions. Do your best to answer exam questions as written.
HAND IN Answers Are Recorded on Question Paper QUEEN'S UNIVERSITY SCHOOL OF COMPUTING CISC212, FALL TERM, 2006 FINAL EXAMINATION 7pm to 10pm, 19 DECEMBER 2006, Jeffrey Hall 1 st Floor Instructor: Alan
More informationprivateint m, n, smithitemcount, raitaitemcount;
LISTING PROGRAM /* * 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
More informationグラフを表すデータ構造 JAVA での実装
グラフを表すデータ構造 JAVA での実装 グラフの構造を記述するクラス パッケージgraphLib graphlib.graph グラフ全体 graphlib.vertex 頂点 頂点を始点とする弧 頂点を2 次元面に表示するための座標 graphlib.arc 弧の始点と終点 クラスの関係 グラフ 弧一覧 弧 弧 頂点 弧 頂点一覧 頂点 頂点 写像 + 頂点 写像 頂点 写像 δ + GRAPH
More informationExample: Building a Java GUI
Steven Zeil October 25, 2013 Contents 1 Develop the Model 2 2 Develop the layout of those elements 3 3 Add listeners to the elements 9 4 Implement custom drawing 12 1 The StringArt Program To illustrate
More informationExample: Building a Java GUI
Steven Zeil October 25, 2013 Contents 1 Develop the Model 3 2 Develop the layout of those elements 4 3 Add listeners to the elements 12 4 Implement custom drawing 15 1 The StringArt Program To illustrate
More informationLAMPIRAN Lampiran Utama. a. Struktur Organisasi
LAMPIRAN 5.1. Lampiran Utama a. Struktur Organisasi b. Flowchart Prosedur Penggajian PT Timatex c. Coding List Class Koneksi package ta_552012010_aprilia; import java.sql.*; public class koneksi { private
More informationAPPENDIX. public void cekroot() { System.out.println("nilai root : "+root.data); }
APPENDIX CLASS NODE AS TREE OBJECT public class Node public int data; public Node left; public Node right; public Node parent; public Node(int i) data=i; PROCEDURE BUILDING TREE public class Tree public
More information/* * MoraDrill.java * Version last updated 6 April 2010 * Written by John K. Estell * Created on November 30, 2008, 10:22 PM */
/* * MoraDrill.java * Version 2.1.0 - last updated 6 April 2010 * Written by John K. Estell * Created on November 30, 2008, 10:22 PM */ package MoraDrill; import java.io.inputstream; import java.awt.*;
More informationHanley s Survival Guide for Visual Applications with NetBeans 2.0 Last Updated: 5/20/2015 TABLE OF CONTENTS
Hanley s Survival Guide for Visual Applications with NetBeans 2.0 Last Updated: 5/20/2015 TABLE OF CONTENTS Glossary of Terms 2-4 Step by Step Instructions 4-7 HWApp 8 HWFrame 9 Never trust a computer
More informationPART 22. Java GUI Library SWT GUI Library SWING GUI Library Swing First Program
PART 22 Java GUI Library 22.1 SWT GUI Library There is also another GUI library for the Java programming language. It is called SWT (The Standard widget toolkit). The SWT library was initially developed
More informationProctors are unable to respond to queries about the interpretation of exam questions. Do your best to answer exam questions as written.
SOLUTION HAND IN Answers Are Recorded on Question Paper QUEEN'S UNIVERSITY SCHOOL OF COMPUTING CISC212, FALL TERM, 2006 FINAL EXAMINATION 7pm to 10pm, 19 DECEMBER 2006, Jeffrey Hall 1 st Floor Instructor:
More informationThe class definition is not a program by itself. It can be used by other programs in order to create objects and use them.
Data Classes and Object-Oriented Programming Data classes can be motivated by the need to create data structures that have grouped together a number of variables of simpler type (ints, Strings, arrays)
More informationMultiple Choice Questions: Identify the choice that best completes the statement or answers the question. (15 marks)
M257 MTA Spring2010 Multiple Choice Questions: Identify the choice that best completes the statement or answers the question. (15 marks) 1. If we need various objects that are similar in structure, but
More informationAnimatedImage.java. Page 1
1 import javax.swing.japplet; 2 import javax.swing.jbutton; 3 import javax.swing.jpanel; 4 import javax.swing.jcombobox; 5 import javax.swing.jlabel; 6 import javax.swing.imageicon; 7 import javax.swing.swingutilities;
More informationwhile (rs.next()) { String[] temp_array = {"","",""}; int prodid = rs.getint(1); temp_array[0] = ""+prodid;
import java.sql.connection; import java.sql.drivermanager; import java.sql.resultset; import java.sql.sqlexception; import java.sql.statement; import java.util.arraylist; import java.util.scanner; public
More information// autor igre Ivan Programerska sekcija package mine;
// autor igre Ivan Bauk @ Programerska sekcija package mine; import java.awt.color; import java.awt.flowlayout; import java.awt.gridlayout; import java.awt.event.actionevent; import java.awt.event.actionlistener;
More informationGUI (Graphic User Interface) Programming. Part 2 (Chapter 8) Chapter Goals. Events, Event Sources, and Event Listeners. Listeners
GUI (Graphic User Interface) Programming Part 2 (Chapter 8) Chapter Goals To understand the Java event model To install action and mouse event listeners To accept input from buttons, text fields, and the
More informationVisit for more.
Chapter 6: Database Connectivity Informatics Practices Class XII (CBSE Board) Revised as per CBSE Curriculum 2015 Visit www.ip4you.blogspot.com for more. Authored By:- Rajesh Kumar Mishra, PGT (Comp.Sc.)
More informationINSTITUTO POLITÉCNICO NACIONAL ESCUELA SUPERIOR DE CÓMPUTO
INSTITUTO POLITÉCNICO NACIONAL ESCUELA SUPERIOR DE CÓMPUTO Cryptography Practice 1,2,3 By: Raúl Emmanuel Delgado Díaz de León Professor: M. en C. NIDIA ASUNCIÓN CORTEZ DUARTE February2015 Index Contenido
More informationProctors are unable to respond to queries about the interpretation of exam questions. Do your best to answer exam questions as written.
QUEEN'S UNIVERSITY SCHOOL OF COMPUTING HAND IN Answers Are Recorded on Question Paper CMPE212, FALL TERM, 2012 FINAL EXAMINATION 18 December 2012, 2pm Instructor: Alan McLeod If the instructor is unavailable
More informationSystems Programming. Bachelor in Telecommunication Technology Engineering Bachelor in Communication System Engineering Carlos III University of Madrid
Systems Programming Bachelor in Telecommunication Technology Engineering Bachelor in Communication System Engineering Carlos III University of Madrid Leganés, 21st of March, 2014. Duration: 75 min. Full
More informationProctors are unable to respond to queries about the interpretation of exam questions. Do your best to answer exam questions as written.
HAND IN Answers Are Recorded on Question Paper QUEEN'S UNIVERSITY SCHOOL OF COMPUTING CISC124, WINTER TERM, 2009 FINAL EXAMINATION 7pm to 10pm, 18 APRIL 2009, Dunning Hall Instructor: Alan McLeod If the
More informationGoals. Lecture 7 More GUI programming. The application. The application D&D 12. CompSci 230: Semester JFrame subclass: ListOWords
Goals By the end of this lesson, you should: Lecture 7 More GUI programming 1. Be able to write Java s with JTextField, JList, JCheckBox and JRadioButton components 2. Be able to implement a ButtonGroup
More informationSwing - JTextField. Adding a text field to the main window (with tooltips and all)
Swing - JTextField Adding a text field to the main window (with tooltips and all) Prerequisites - before this lecture You should have seen: The lecture on JFrame The lecture on JButton Including having
More informationAP CS Unit 11: Graphics and Events
AP CS Unit 11: Graphics and Events This packet shows how to create programs with a graphical interface in a way that is consistent with the approach used in the Elevens program. Copy the following two
More informationGraphical User Interface
Lecture 10 Graphical User Interface An introduction Sahand Sadjadee sahand.sadjadee@liu.se Programming Fundamentals 725G61 http://www.ida.liu.se/~725g61/ Department of Computer and Information Science
More informationpackage As7BattleShip;
package As7BattleShip; Program: BattleshipBoard.java Author: Kevin Nider Date: 11/18/12 Description: Assignment 7: Runs the battleship game Input: ship placement board files and computer player type Output:
More informationGeneral Overview - rel. model. Carnegie Mellon Univ. Dept. of Computer Science Database Applications. Reminder: our Mini-U db
Faloutsos 15-415 Carnegie Mellon Univ. Dept. of Computer Science 15-415 - Database Applications Lecture#8 (cont d): SQL, Part 2 General Overview - rel. model Formal query languages rel algebra and calculi
More informationProctors are unable to respond to queries about the interpretation of exam questions. Do your best to answer exam questions as written.
SOLUTION HAND IN Answers Are Recorded on Question Paper QUEEN'S UNIVERSITY SCHOOL OF COMPUTING CISC212, FALL TERM, 2008 FINAL EXAMINATION 7pm to 10pm, 17 DECEMBER 2008, Grant Hall Instructor: Alan McLeod
More information2018/2/5 话费券企业客户接入文档 语雀
1 2 2 1 2 1 1 138999999999 2 1 2 https:lark.alipay.com/kaidi.hwf/hsz6gg/ppesyh#2.4-%e4%bc%81%e4%b8%9a%e5%ae%a2%e6%88%b7%e6%8e%a5%e6%94%b6%e5%85%85%e5 1/8 2 1 3 static IAcsClient client = null; public static
More informationCMP 326 Final Spring There is a blank page at the end of the exam if you need more room to answer a question.
CMP 326 Final Spring 2014 Name: There is a blank page at the end of the exam if you need more room to answer a question. 1) (10 pts) Fill in the blanks to specify the missing keywords or definitions. public
More informationWe have several alternatives now, which we need to address. Here is a list of them: 1. How to get HTML interpreted correctly.
Applets in Java using NetBeans as an IDE Creating an Interactive Browser using JEditorPane (Part 3) C.W. David Department of Chemistry University of Connecticut Storrs, CT 06269-3060 Carl.David@uconn.edu
More informationProctors are unable to respond to queries about the interpretation of exam questions. Do your best to answer exam questions as written.
Solution HAND IN Answers Are Recorded on Question Paper QUEEN'S UNIVERSITY SCHOOL OF COMPUTING CISC212, FALL TERM, 2007 FINAL EXAMINATION 7pm to 10pm, 10 DECEMBER 2007, Jeffery Hall Instructor: Alan McLeod
More informationClasa frsin.java: import java.awt.*; import javax.swing.*;
1 Clasa frsin.java: import java.awt.*; import javax.swing.*; public class frsin extends JFrame { private sin2d jpanel1 = new sin2d(); private JCheckBox cbcreion = new JCheckBox(); private JCheckBox cbfond
More informationJava Graphical User Interfaces AWT (Abstract Window Toolkit) & Swing
Java Graphical User Interfaces AWT (Abstract Window Toolkit) & Swing Rui Moreira Some useful links: http://java.sun.com/docs/books/tutorial/uiswing/toc.html http://www.unix.org.ua/orelly/java-ent/jfc/
More informationPage 1 of 16. Proctors are unable to respond to queries about the interpretation of exam questions. Do your best to answer exam questions as written.
Page 1 of 16 SOLUTION HAND IN Answers Are Recorded on Question Paper QUEEN'S UNIVERSITY SCHOOL OF COMPUTING CISC212, FALL TERM, 2005 FINAL EXAMINATION 9am to 12noon, 19 DECEMBER 2005 Instructor: Alan McLeod
More informationnavlakhi.com / navlakhi.education / navlakhi.mobi / navlakhi.org 1
Example 1 public class ex1 extends JApplet public void init() Container c=getcontentpane(); c.setlayout(new GridLayout(5,2)); JButton b1=new JButton("Add"); JButton b2=new JButton("Search"); JLabel l1=new
More informationProctors are unable to respond to queries about the interpretation of exam questions. Do your best to answer exam questions as written.
HAND IN Answers Are Recorded on Question Paper QUEEN'S UNIVERSITY SCHOOL OF COMPUTING CISC212, FALL TERM, 2007 FINAL EXAMINATION 7pm to 10pm, 10 DECEMBER 2007, Jeffery Hall Instructor: Alan McLeod If the
More information17 GUI API: Container 18 Hello world with a GUI 19 GUI API: JLabel 20 GUI API: Container: add() 21 Hello world with a GUI 22 GUI API: JFrame: setdefau
List of Slides 1 Title 2 Chapter 13: Graphical user interfaces 3 Chapter aims 4 Section 2: Example:Hello world with a GUI 5 Aim 6 Hello world with a GUI 7 Hello world with a GUI 8 Package: java.awt and
More informationThis is the java code for generating coördinates of molecules numerically using the CDNT framework with real-time input and diagramatic output.
This is the java code for generating coördinates of molecules numerically using the DNT framework with real-time input and diagramatic output. * cdnt.java * * reated on January 25, 2006, 8:38 AM * System
More informationAccessing databases in Java using JDBC
Accessing databases in Java using JDBC Introduction JDBC is an API for Java that allows working with relational databases. JDBC offers the possibility to use SQL statements for DDL and DML statements.
More informationPSIptt - Push-To-Talk Client API Documentation
PSIptt - Push-To-Talk Client API Documentation Version 1.4.5 Stand 22.06.2009 PSI Transcom GmbH 2009 Content 1 INTRODUCTION...3 1.1 REQUIREMENTS...3 2 CONCEPT...4 2.1 ONLINE RESOURCES:...4 3 EXAMPLES...5
More informationCOSC 123 Computer Creativity. Graphics and Events. Dr. Ramon Lawrence University of British Columbia Okanagan
COSC 123 Computer Creativity Graphics and Events Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca Key Points 1) Draw shapes, text in various fonts, and colors. 2) Build
More informationProctors are unable to respond to queries about the interpretation of exam questions. Do your best to answer exam questions as written.
QUEEN'S UNIVERSITY SCHOOL OF COMPUTING CISC212, FALL TERM, 2010 FINAL EXAMINATION 11 DECEMBER 2010, 9am SOLUTION HAND IN Answers Are Recorded on Question Paper Instructor: Alan McLeod If the instructor
More informationProctors are unable to respond to queries about the interpretation of exam questions. Do your best to answer exam questions as written.
SOLUTION HAND IN Answers Are Recorded on Question Paper QUEEN'S UNIVERSITY SCHOOL OF COMPUTING CISC124, WINTER TERM, 2009 FINAL EXAMINATION 7pm to 10pm, 18 APRIL 2009, Dunning Hall Instructor: Alan McLeod
More information!"# $ %&# %####' #&() % # # # #&* # ## +, # -
By Pep Jorge @joseplluisjorge Steema Software July 213!"# $ %&# %####' #&() % # # # #&* # ## +, # -. / " - $- * 11 1 1$ 2 11 1 3 4 / $ 5 5,+67 +68$ Copyright 213 Steema Software SL. Copyright Information.
More informationYou write standard JDBC API application and plug in the appropriate JDBC driver for the database the you want to use. Java applet, app or servlets
JDBC Stands for Java Database Connectivity, is an API specification that defines the following: 1. How to interact with database/data-source from Java applets, apps, servlets 2. How to use JDBC drivers
More informationProject Helpine Report BANQUET HALL BOOKING
Project Helpine Report BANQUET HALL BOOKING - 1 - BANQUET HALL BOOKING TABLE OF CONTENT Contents Page No. Acknowledgment 3 Declaration 4 1. Introduction & Objectives of the Project 1.1 Introduction 7 1.2
More informationBased on slides by Prof. Burton Ma
Based on slides by Prof. Burton Ma 1 TV - on : boolean - channel : int - volume : int + power(boolean) : void + channel(int) : void + volume(int) : void Model View Controller RemoteControl + togglepower()
More informationCSCI 201L Midterm Written Summer % of course grade
CSCI 201L Summer 2016 10% of course grade 1. Abstract Classes and Interfaces Give two differences between an interface and an abstract class in which all of the methods are abstract. (0.5% + 0.5%) 2. Serialization
More informationProctors are unable to respond to queries about the interpretation of exam questions. Do your best to answer exam questions as written.
HAND IN Answers Are Recorded on Question Paper QUEEN'S UNIVERSITY SCHOOL OF COMPUTING CISC212, FALL TERM, 2009 FINAL EXAMINATION 14 DECEMBER 2009 Instructor: Alan McLeod If the instructor is unavailable
More informationChapter 2. Network Chat
Chapter 2. Network Chat In a multi-player game, different players interact with each other. One way of implementing this is to have a centralized server that interacts with each client using a separate
More informationChapter 12 GUI Basics
Chapter 12 GUI Basics 1 Creating GUI Objects // Create a button with text OK JButton jbtok = new JButton("OK"); // Create a label with text "Enter your name: " JLabel jlblname = new JLabel("Enter your
More informationObject-Oriented Software Engineering Re-exam, 2012 (Also Object-Oriented Analysis, Design and Programming, Re-exam, 2012)
Object-Oriented Software Engineering Re-exam, 2012 (Also Object-Oriented Analysis, Design and Programming, Re-exam, 2012) Medialogy, 4 th Semester, Aalborg Thursday 23 August 2012, 09.00 12.00 Instructions
More informationAbstract. 1. What is an ABSTRACT METHOD? 2. Why you would want to declare a method as abstract? 3. A non-abstract CLASS is called a concrete class
ABSTRACT 2 1. What is an ABSTRACT METHOD? 2 2. Why you would want to declare a method as abstract? 2 3. A non-abstract CLASS is called a concrete class 2 4. Abstract Example 2 5. If you are extending ABSTRACT
More informationJava, Swing, and Eclipse: The Calculator Lab.
Java, Swing, and Eclipse: The Calculator Lab. ENGI 5895. Winter 2014 January 13, 2014 1 A very simple application (SomeimageswerepreparedwithanearlierversionofEclipseandmaynotlookexactlyasthey would with
More informationERwin and JDBC. Mar. 6, 2007 Myoung Ho Kim
ERwin and JDBC Mar. 6, 2007 Myoung Ho Kim ERwin ERwin a popular commercial ER modeling tool» other tools: Dia (open source), Visio, ConceptDraw, etc. supports database schema generation 2 ERwin UI 3 Data
More informationMIT AITI Swing Event Model Lecture 17
MIT AITI 2004 Swing Event Model Lecture 17 The Java Event Model In the last lecture, we learned how to construct a GUI to present information to the user. But how do GUIs interact with users? How do applications
More informationCSCI 201L Midterm Written SOLUTION Summer % of course grade
CSCI 201L SOLUTION Summer 2016 10% of course grade 1. Abstract Classes and Interfaces Give two differences between an interface and an abstract class in which all of the methods are abstract. (0.5% + 0.5%)
More informationProgramming Exercise. Scribbler
Programming Exercise Scribbler Objective: To gain more experience using arrays and data structures You will be implementing a drawing program we call Scribbler. A sample of what your program s interface
More informationChapter 3: A Larger Example: SocketChat
page 1 Chapter 3: A Larger Example: SocketChat In this chapter we are going to look at three versions of a larger socket-based example: a simple `chat' application. The application does not have many capabilities,
More informationPART 23. Java GUI Advanced JList Component. more items.
PART 23 Java GUI Advanced 23.1 JList Component JList is a component that displays a list of objects. It allows the user to select one or more items. import java.awt.color; import java.awt.eventqueue; import
More informationJava Server Pages. JSP Part II
Java Server Pages JSP Part II Agenda Actions Beans JSP & JDBC MVC 2 Components Scripting Elements Directives Implicit Objects Actions 3 Actions Actions are XML-syntax tags used to control the servlet engine
More informationCOMP16121 Notes on Mock Exam Questions
COMP16121 Notes on Mock Exam Questions December 2016 Mock Exam Attached you will find a Mock multiple choice question (MCQ) exam for COMP16121, to assist you in preparing for the actual COMP16121 MCQ Exam
More informationAP CS Unit 12: Drawing and Mouse Events
AP CS Unit 12: Drawing and Mouse Events A JPanel object can be used as a container for other objects. It can also be used as an object that we can draw on. The first example demonstrates how to do that.
More informationCSC System Development with Java. Database Connection. Department of Statistics and Computer Science. Budditha Hettige
CSC 308 2.0 System Development with Java Database Connection Budditha Hettige Department of Statistics and Computer Science Budditha Hettige 1 From database to Java There are many brands of database: Microsoft
More informationIntroduction to Programming (Java) 4/12
Introduction to Programming (Java) 4/12 Michal Krátký Department of Computer Science Technical University of Ostrava Introduction to Programming (Java) 2008/2009 c 2006 2008 Michal Krátký Introduction
More informationMidterm assessment - MAKEUP Fall 2010
M257 MTA Faculty of Computer Studies Information Technology and Computing Date: /1/2011 Duration: 60 minutes 1-Version 1 M 257: Putting Java to Work Midterm assessment - MAKEUP Fall 2010 Student Name:
More informationImplementacja: /* * JFrame.java */ /** tkubik */
Źródło w IDL: module MTestApp { interface MInformator { long GetCallNumber(); void AddToSum(in long i, out long sum); ; ; Kompilacja: javac -classpath "/home/tkubik/forte4j/sources/:.mtestapp/" *java MTestApp/*java
More informationSection Basic graphics
Chapter 16 - GUI Section 16.1 - Basic graphics Java supports a set of objects for developing graphical applications. A graphical application is a program that displays drawings and other graphical objects.
More informationInformation systems modelling UML and service description languages
Internet Engineering Tomasz Babczyński, Zofia Kruczkiewicz Tomasz Kubik Information systems modelling UML and service description languages Laboratory 3 Examplary multitiered Information System (Java EE
More informationDESIGN AND IMPLEMENTATION OF A PUZZLE GAME USING JAVA SE 1. University Politehnica Timisoara, Faculty Engineering Hunedoara, ROMANIA
ANNALS of Faculty Engineering Hunedoara International Journal of Engineering Tome XV [2017] Fascicule 3 [August] ISSN: 1584-2665 [print; online] ISSN: 1584-2673 [CD-Rom; online] a free-access multidisciplinary
More informationJRadioButton account_type_radio_button2 = new JRadioButton("Current"); ButtonGroup account_type_button_group = new ButtonGroup();
Q)Write a program to design an interface containing fields User ID, Password and Account type, and buttons login, cancel, edit by mixing border layout and flow layout. Add events handling to the button
More informationSolution register itself
Observer Pattern Context: One object (the Subject) is the source of events. Other objects (Observers) want to know when an event occurs. Or: several objects should be immediately updated when the state
More informationProctors are unable to respond to queries about the interpretation of exam questions. Do your best to answer exam questions as written.
QUEEN'S UNIVERSIY SCHOOL O COMPUING CMPE212, ALL ERM, 2011 INAL EXAMINAION 15 December 2011, 2pm, Grant Hall Instructor: Alan McLeod HAND IN Answers Are Recorded on Question Paper SOLUION If the instructor
More informationPlaniSphere. Creating a plug-in for PlaniSphere.
Creating a plug-in for PlaniSphere Creating a plug-in requires a developer to implement SpatialPlugin and SpatialPluginFrame interfaces (see Figure 1). The SpatialPlugin interface defines methods that
More informationChapter 10 Inheritance. Big Java by Cay Horstmann Copyright 2009 by John Wiley & Sons. All rights reserved.
Chapter 10 Inheritance Chapter Goals To learn about inheritance To understand how to inherit and override superclass methods To be able to invoke superclass constructors To learn about protected and package
More informationHomeWork 3. In this homework, an ArchJava application that allows one to query one s scores in a networked environment is presented.
HomeWork 3 In this homework, an ArchJava application that allows one to query one s scores in a networked environment is presented. [1] Acme Description The architecture that has been implemented using
More informationTiers (or layers) Separation of concerns
Tiers (or layers) Separation of concerns Hiding the type of storage from the client class Let s say we have a program that needs to fetch objects from a storage. Should the program have to be concerned
More informationMore about GUIs GEEN163
More about GUIs GEEN163 The best programmers are not marginally better than merely good ones. They are an order-ofmagnitude better, measured by whatever standard: conceptual creativity, speed, ingenuity
More informationIzpack installer guide
Izpack installer guide intagleo systems v 1.0 author: Dev Team Contents Chapter 1 Simple Installer Chapter 2 page 3 page 7 Understanding install.xml Chapter 3 Adding panels to your installer Chapter 4
More informationChapter 8. Java continued. CS Hugh Anderson s notes. Page number: 264 ALERT. MCQ test next week. This time. This place.
Chapter 8 Java continued CS3283 - Hugh Anderson s notes. Page number: 263 ALERT MCQ test next week This time This place Closed book CS3283 - Hugh Anderson s notes. Page number: 264 ALERT Assignment #2
More information