Jboy01's Posts
Nairaland Forum › Jboy01's Profile › Jboy01's Posts
1 2 3 4 5 6 7 8 ... 18 19 20 21 22 23 24 25 26 (of 26 pages)
Chiscomax: i thought the journey was coming to an end... na wa o. swing again!! have you created any app? can i s it pls?Bro I think it time u follow the path up the road to real java Gui programming by learning swing. And if u know u are despirate to complete the work, u can use netbean ide drag and drop swing tool for the front end then do the back end programming urself. I think that would help. |
Jay clinics: I am more use to netbeans ide but am finding it diffcult to integrate android sdk to it....pls can some1 help out....I was unable to instal Adt 22.3.0 on my netbean and also connecting it to sdk is a problem. |
Talk2bryant: was given a quiz in class earlier today, the question goes thus :Here is my one cent. Private sub randomTest() Dim randomInt as integer Dim rnd as new system.random() randomInt = rnd.Next(0, 100) 'generate randon from 0 to 99 If(randomInt % 2 > 0) then System.writeln(" The ganerated value is an odd number" ![]() Else System.writeln("the generated value is an even number" ![]() End if End sub |
Do u know how to program with java? |
Why are most java programmers here running toward mobile phone app development? |
Why are most java programmer here running toward android programming? |
Mine is working fine |
I guess u have neva flash a custom rom to ur galaxy pocket pocket before b4. It is still 2.3.6, the 4.11 is just a mere design. @Op, you don install bbm for ur galaxy pocket? :DI guess u have neva flash a custom rom to ur galaxy pocket pocket before b4. It is still 2.3.6, the 4.11 is just a mere design. @Op, you don install bbm for ur galaxy pocket? |
Lol! Bro u get mouth! |
Known_pal: Unresolved!:If u do the calculation with hand, u will see that with ur input 1,2,3, the Math.pow(...) Will find d squareRoot of (-eight) which is NOT A NUMBER (NAN). Try to change the input value to like ( a is 10, b is 1 and c is 2) to comfirm. |
Thank you very much guys! I followed the step stated by codeaddict by copy d com-mysql-jdbc.jar into the jre lib/ext. And now I can connect to my database. Thank you once again. |
codeaddict: Still need directions?Yeah because I already have mysql installed for my vb.net, I also have jcreator( about 5.1 megabyte) installed. But it is still not working |
xtianh: I am developing a gp calculator. How can i assign a value to selected item on the jcombobox. For example i created a jcombobox, and added A,B,C to it as its item, i want if A is selected let A be equals to 5 and multiplied by 2 and the result be pasted in a Jtextfield.create an event listener for the combox box, and if u are using an ide, in the itemStateChanged event, put Switch (gradeComboBox.getSelectedIndex()){ Case 0: JTextBoxResult.setText(String.valueOf(5 x 2)); break; Case 1: JTextBoxResult.setText(String.valueOf(4 x 2)); break; Case 2: JTextBoxResult.setText(String.valueOf(3 x 2)); break; Case 3: JTextBoxResult.setText(String.valueOf(2 x 2)); break; Case 4: JTextBoxResult.setText(String.valueOf(1 x 2)); break; } |
Pls am using eclipse in coding a small application that involve connection to database, pls how will I instal jdbc mysql driver on my eclipse? |
pls am trying to update data table at runtime, but its not working. the table named 'messageTable' was design in netbean with 4 columns. i want to update the table when the application load. here is my code public static void main(String args[]) { 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(MainPage.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (InstantiationException ex) { java.util.logging.Logger.getLogger(MainPage.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { java.util.logging.Logger.getLogger(MainPage.class.getName()).log(java.util.logging.Level.SEVERE, null, ex); } catch (javax.swing.UnsupportedLookAndFeelException ex) { java.util.logging.Logger.getLogger(MainPage.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 MainPage().setVisible(true); } }); DefaultTableModel model=new DefaultTableModel(); JTable messageTable= new JTable(model); model.insertRow(0,new Object[]{"a","a","a","a"}); model.insertRow(1,new Object[]{"a","a","a","a"}); messageTable.repaint(); } |
sir rinky: *^^ what's java lynda videos are they free? Source pls.lynda video tutorial is a java video tutorial. the name of the group that made the tutorial is lynda. you can get it on disk from a standard software shop that sell video tutorials. |
nawa o. why i dey struggle learning new things everyday, somebody dey complain about ASUU. It better student try to learn something tangible during dis strike than wasting time at home. Some people has been doing KASUN KAJI KAJEUN NIG LIMITED since july. |
GideonG: Go and get Videos on Javais video tutorial enough to learn java? I believe in reading ebooks, I only watch my java lynda videos when am tired or reading. |
but if U are self taught, u are going to have more experience than learning under a teacher. |
thank you all for the reply. i have fix the bug, the problem occur when i was passing the parameters from the main class to the constructor in the database class, i mistakely interchange state position for date of birth. |
ogunayo: Is this a login problem or insert problem ?sorry bro, its an insertion problem |
This is d error i get: Oct 17, 2013 6:17:11 PM addressbook.UpdateDatabase updateDatatable SEVERE: null com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'state' at row 1 at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3607) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3541) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2002) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2163) at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2624) at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2127) at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2427) at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2345) at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2330) at addressbook.UpdateDatabase.updateDatatable(UpdateDatabase.java:73) |
import java.sql.*; import java.util.logging.Level; import java.util.logging.Logger; /** *UpDate database * @author Latyf */ public class UpdateDatabase { private String firstName; private String midName; private String lastName; private String sex; private String marStatus; private String birthDate; private String state; private String localGov; private String homeAdd; private String officeAdd; private String phoneNumb; private String email; public UpdateDatabase(String fN,String mN,String lN,String s,String mS,String bD,String st,String lG, String hA, String oA,String pN, String em) { firstName=fN; midName=mN; lastName=lN; sex=s; marStatus=mS; birthDate=bD; state=st; localGov=lG; homeAdd=hA; officeAdd=oA; phoneNumb=pN; email=em; } public void updateDatatable() throws ClassNotFoundException { Connection conn; PreparedStatement statement=null; try { //String myDriver="com.mysql.jdbc.Driver"; //Class.forName(myDriver); conn=DriverManager.getConnection("jdbc:mysql://localhost/add_book","root","" ;// statement=conn.prepareStatement("INSERT INTO data_book(`first_name`, `middle_name`," // + " `last_name`, `sex`, `mar_status`, `birth_date`, `state`, `local_gov`, `home_add`, `office_add`," // + " `phone_no`, `email`) VALUES (" + firstName + "," + midName + "," + lastName + "," + sex + "," + marStatus + "," + birthDate + "," // + state + "," + localGov + "," + homeAdd + "," + officeAdd + "," + phoneNumb + "," + email + " " ;statement=conn.prepareStatement("INSERT INTO data_book(`first_name`, `middle_name`,`last_name`, `sex`, `mar_status`, `birth_date`, `state`," + " `local_gov`, `home_add`, `office_add`, `phone_no`, `email`) VALUES (?,?,?,?,?,?,?,?,?,?,?,?)" ;statement.setString(1,firstName); statement.setString(2,midName); statement.setString(3,lastName); statement.setString(4,sex); statement.setString(5,marStatus); statement.setString(6,birthDate); statement.setString(7,state); statement.setString(8,localGov); statement.setString(9,homeAdd); statement.setString(10,officeAdd); statement.setString(11,phoneNumb); statement.setString(12,email); statement.executeUpdate(); } catch (SQLException ex) { Logger.getLogger(UpdateDatabase.class.getName()).log(Level.SEVERE, null, ex); //System.out.println("here 1" ;} //MYSQL QUERY } |
i need d one for desktop app |
Learning java with core java volume 1 version 8. And am going on well with it. Although am in intermediate level when it comes to coding with vb.net. I find a little similarity between the two languages but my knowledge in vb.net is really helping me a lot. |
dsypha: Let me tell u the truth, u can't learn java in 2months, atleast not if u are new to programming. if u learnin it for fun, its ok, but if not u really need a better book, I can recommend some if u ask.Nice talk pal, I am a vb.net guy(above intermediate), and willing to go into java. I have been into reading java ebook (Core java volume 1) and watch video tuturial ( lynda dot com video tutorial) for like 2 weeks now. Although I am almost done with the basic syntax, I known I still have a lot to learn. Am presently writing code for a calculator with Netbean. Design d front end and coding d back end. Just using that to perfect my basic skill till I learn up to GUI stage to undastand the jcomponent stuff well. |
pls guys, am a vb.net guy but trying to extend my knowledge to java. pls which ebook ccan i read to get a full knowledge of developing applications (desktop and mobile) with java. |
pls I need that of java latyf01@gmail.com |
chupere: Guys, pardon my ignorance but i just want to know if we have any online chat app that is owned by nigerian. Am a proud nigerian and always happen whenever i hear or see nigerians doing something really great for themselves, their family and the country at large despite so many challenges facing us. I've seen alot of chat apps on the internet such as the whatsap, 2go, skype, ebuddy, eskimi, facebook, yahoo messenger and the likes. But i don't know if nigerian application developers have anything in that respect. I am like i do call myself ''an amateur developer'' ,am only good with visual basic.net and oracle.Nice talk bro i also code with vb.net. but i think to develop a good social app for Nigerians, the app much work on almost all platform. 1) mobile app, which can be done with java, vb.net, c# for window phones. 2) desktop app, most especially window os which can be done with vb.net, c# as so on |
Ymodulus: In addition to MJ solution. Let me elaborate his solution a little.Thanks pals! I will try it at in d office on monday and will give a feed back. |
mj: Simple way, put your wampserver online, create an adhoc network on the main system, let other systems connect to the network, then open your browser and type the ip address of the main system server.thanks for the reply. But all the computers will be connected together by a wireless router. |
mj: What server are u using??Wamp server |
1 2 3 4 5 6 7 8 ... 18 19 20 21 22 23 24 25 26 (of 26 pages)
