User Profile
Collapse
-
Removing if(rs.next()) worked for me, Thanks:) -
Problem in populating jtable from database
Jtable does not display the 1st row of my DB table,
below is my code to populate the jtable -
Code:try { Class.forName("com.mysql.jdbc.Driver"); String conURL = "jdbc:mysql://localhost/biometric"; Connection con = DriverManager.getConnection(conURL, "root", "root"); Statement st = con.createStatement(); String query = "select sl,enrolladdr,employee_name
-
PreethiGowri started a topic How to find the city,state,country, latitude, longitude of the user using javain JavaHow to find the city,state,country, latitude, longitude of the user using java
I have coded to find the ip addresses of my network. Now i need to code for finding the city,state,coun try, latitude, longitude with reference to the IP address, How do i do it? Is there any library or algorithms to do this using core java? -
Thanks for your reply Nepomuk:) i have successfully coded for the UART using JavaComm.Leave a comment:
-
1. OS - Windows 7
2. Hardware - I will be using fingerprint module with UART interface
3. I need to do a 2 way communication
I heard some API's like JavaComm and RxTx are they of any use to my question?Leave a comment:
-
Programming hardware devices using java
I am a starter to hardware coding using java, Can somebody help to start with this, By letting me know with java platform to use(Java SE, Java EE, Java ME) and which libraries to use. -
I used LinkedHashMap like this
Code:LinkedHashMap<String , ArrayList<String>> cache = new LinkedHashMap<>();
Leave a comment:
-
how to store multiple values in one key in hash table
I want to cache data from database into a hashtable, to which i need a hashtable with multiple values to a common key, Now my question is how do i do this, how do i insert and retrieve data from the hashtable, how do i retrieve a particular value of a key? -
b is with post-increment operator in this, Post-Increment value is first used in a expression and then incremented.
Consider an example say,
Code:#include<stdio.h> void main() { int a,b=3; a = b++; printf("Value of a : %d",a); a = b++; printf("Value of b : %d",a); }
Value of a : 3
Value of b : 4Leave a comment:
-
-
After days of work on this, i conclude, JPCAP library does not work for TCP/IP protocol, so better we choose different library or better code using sockets.Leave a comment:
-
Automatically set screen size according to monitor size using swing
I have created a desktop application using java swing on a system with resolution- 1920 x 1080. When i run this application on a lower resolution screen the screen size seems to be to large to be visible on the lower screen resolution sizes. How do i overcome this problem using programming?
I have tried below code, which is not satisfying
Code:Toolkit t = Toolkit.getDefaultToolkit(); Dimension d = t.getScreenSize();
-
I haven't obtained any certifications, still, i would like to refer these 2 sites, so that you get answer to your question.
http://www.dba-oracle.com/t_how_to_b...oracle_dba.htm
http://www.johnsansom.com/how-to-bec...ql-server-dba/...Leave a comment:
-
ExecuteUpdate has to be used instead of ExecuteQuery for insert, update and delete queries. Write something like,
Code:Statement st=con.createStatement(); int rs=st.executeUpdate("insert into uinfo values('"+n+"', '"+u+"','"+p+"','"+y+"','"+g+"','"+e+"', '"+c+"','"+a+"');"); if(rs != 0)
Leave a comment:
-
Unable to display data from database on a jtable
I dont know what is wrong with my code but i'm not able to display the data extracted from database on a jtable:(
here is my code
Code:Connection con = null; try { Class.forName("com.mysql.jdbc.Driver"); String conURL = "jdbc:mysql://localhost/dbname"; con = DriverManager.getConnection(conURL, "user", "pswrd");
-
TCP/IP coding using jpcap
I'm not able to accept the connection request that i'm getting. i'm using TCP/IP protocol and jpcap libraries.
Code:JpcapCaptor captor = null; int index = 0; jpcap.NetworkInterface[] devices; { devices = JpcapCaptor.getDeviceList(); for (int i = 0; i < devices.length; i++) { System.out.println(i + ": " + devices[i].name + "("
-
Code:jTextArea2.setText("House No = "+house+","+add); //which almost comes upto 3 lines jTextArea2.setLineWrap(true); jTextArea2.setWrapStyleWord(true); JScrollPane pane = new JScrollPane(jTextArea2, JScrollPane.VERTICAL_SCROLLBAR_NEVER, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
Leave a comment:
-
-
Remove vertical scroll of jTextArea
How do we remove vertical scroll bar of a jTextArea?
No activity results to display
Show More
Leave a comment: