32,204 Topics

Member Avatar for
Member Avatar for pmhayden

Hi doing a project which consists of moving between individual frames and in general interrogating a database from these frames. My first frame is a Logon frame. In this Logon Frame/class i have also instantiated another class called Member where I've saved the username from the logon process. Can I, …

Member Avatar for orko
0
257
Member Avatar for onsir

hai , all This coding about filter data using jTextFiled and display in jtable, so help me to combine these class be one class. thanks [CODE] //DBAccess.java import ca.odell.glazedlists.BasicEventList; import ca.odell.glazedlists.EventList; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; public class DBAccess { private static Connection c; private …

Member Avatar for orko
0
972
Member Avatar for mimsc

Im getting this on just about every line....anybody see what Im doing wrong? [code=java] public static int[] getLeadsSummary(UserDataVO userData) throws Exception { Connection connection = null; PreparedStatement pstmt = null; ResultSet resultSet = null; int[] leadsSummary = {0,0}; int leadCount = 0; try { connection = DataBaseConnectionManager.getConnection(); if (connection != …

Member Avatar for mimsc
0
150
Member Avatar for zhapool

im a 1st yr IT student, we have a final project this end of class. . . all we have to do is make a program using java. Honestly, java is very hard for me so if i can have a favor please help me to understand it more. . …

Member Avatar for toxicboy
0
211
Member Avatar for tygerberg
Member Avatar for orko
0
95
Member Avatar for yoyodelta

I cannot explain this problem, and in searching all over I've seen a few leads but no help. I do not understand at all why I get this exception. It claims I am trying to cast a JList as a DefaultListModel when I'me trying to cast a ListModel and a …

Member Avatar for yoyodelta
0
1K
Member Avatar for katerinaaa

Hi, I want to save a .txt file into database using java language, how can it is possible ? The .txt file has one word per line and I would like when the program find a string like "<P>" to continue until line with "</P>". If it is found to …

Member Avatar for katerinaaa
0
264
Member Avatar for baltazar

Hi there, What I am doing is filling a 2-D array with numbers in a random order. i.e. I pick a position in the 2-D array and input a number there eg: array[2][1] = 3;(this input is received from a text file) In this way, I fill the array but …

Member Avatar for anamika_nagpur
0
110
Member Avatar for Anupkumar
Member Avatar for Anupkumar
0
161
Member Avatar for pointers

Hi, Pls tell me the output for the following code............ public class Test { public static void main(String args[]){ int i=0; for(int j=0;j<=10;j++) { i=i++; } System.out.println("value of i\t"+i); }

Member Avatar for jwenting
0
91
Member Avatar for thiyagu_mca2006

Hello EveryOne, Im Thiyagu Junior Java developer, can any one help me for design pattern or idea to develop HTTP monitor in Java. The objectives of HTTP monitor is - to log/view all URLs that is requested or visited by the system user via webrowser. - it can be a …

Member Avatar for jwenting
0
131
Member Avatar for mimsc

this is my first post...not sure whats the problem...any suggestions would be appreciated...thanx [code=language] <% int unViewedCt= 0; out.write("var jsLeads = new Array); (for (int i=0; i< leads.size(); i++) { currLead = (HashMap)leads.get(i); out.write("jsLeads["+ i +"] = new Array();\n"); out.write("jsLeads[" + i + "][0] = '" + currLead.get("PK_LEADID") + "';\n"); …

Member Avatar for ksaxena
0
109
Member Avatar for George2

Hello everyone, I am using JDBC to compare the content of two database tables -- writing a general function and two tables are input. The two tables have various types of columns, like VARCHAR, BLOB, INT, FLOAT, etc. I want to save my time to write various statements to get …

Member Avatar for George2
0
2K
Member Avatar for arkaprava
Member Avatar for mojtabamaster

Hello everyone, I want to run JSF1.2 in netbeans 5.5 with Tomcat server 6.0.13 how config tomcat and netbeans THanks

Member Avatar for jwenting
0
56
Member Avatar for pmhayden

Hi guys probably quite a common question but I've imported both java.sql.* and java.util.* and want to create an sql Date variable. What's the syntax to declare the variable from the sql class. I'm getting an error message that there is contention between the .util and .sql class. Thanks

Member Avatar for pmhayden
0
164
Member Avatar for mayur_kulkarni

[B][I][/I][/B]i want to do project in mobile applicatios like voice commands or similar. can anybody help m?

Member Avatar for i_am_Andrew
0
134
Member Avatar for bikashsinghal
Member Avatar for treecarver

I have a class with a private static HashSet defined in it that holds objects, when I pass a new object to the class all the elements of the HashSet change to the last inserted objects. I thought a static declared Hashset is only created once so any objects added …

Member Avatar for jwenting
0
158
Member Avatar for inzomniac

Hi everybody. I'm trying to turn on (or off) some LEDs conected to the Parallel Port. The program opens the port correctly but for some reason, it only allows me to use the LPT.MODE.SPP, even though that according to my Device Manager, the LPT1 mode is ECP. Besides that, the …

Member Avatar for inzomniac
0
140
Member Avatar for PoovenM

Hey guys, so I’m writing a code analyzer and I’ve reached a bottleneck with parsing Java numbers from the source code. It works fine for the usual int, double and float numbers expect when they are represented as either octal of hexadecimal. The ‘parse’ method of [inlinecode]Integer[/inlinecode] and [inlinecode]Double[/inlinecode] don’t …

Member Avatar for PoovenM
0
199
Member Avatar for pmhayden

Am currently doing a project with a java GUI interrogating a database. My first GUI is a [U]Login[/U] display which when the user successfully logs in will move onto a [U]Menu[/U] display. My problem is that I cannot get from the [U]Login[/U] display to the [U]Menu[/U] display. These GUIs have …

Member Avatar for Ezzaral
0
96
Member Avatar for agrothe

I've revived an old java project I did in college. Basic chat type program like ICQ which stores offline messages and users in a database etc, etc. I've recently switched the database from Access to MySQL and am considering some other alterations. I've been reading a bit on RMI. I …

Member Avatar for agrothe
1
105
Member Avatar for Ainur

There is a task: Imagine you have been asked by the Physics department to create a Java program to help them record information about experiments they are running on a particle accelerator. Each type of particle is uniquely identified by name, and has a mass (a decimal number between 0 …

Member Avatar for Ainur
0
121
Member Avatar for lamees

Hi, everybody. I've made a code of a "for" loop. Once i exceeds 4, the loop must stop. The input is in a JTextField. The problem is that the loop never stops although it exceeds 4. Can anybody help me? The problem is here : public void compare(int x) { …

Member Avatar for Ezzaral
0
133
Member Avatar for mayur_kulkarni

[B][I][U][B][I]i am looking for a java project . i am in final year .[/I][/B][/U][/I][/B]

Member Avatar for masijade
0
94
Member Avatar for tech291083

Hi, I have been trying to learn java on my own on Linux from command line. Can any one please give me a few very basic samples of code that ask the user for an input (interger/double/float/string all possible data types)? I have downloaded the official Sun Java tutorials but …

Member Avatar for indienick
0
369
Member Avatar for ultra vires

Hi guys, i am new to java so i started of with basics, but now im stuck at a little problem. I will paste the code and error's below, hoping that some1 could sort em out [code=java] import java.lang.*; import java.io.*; class Sphere{ float radius; int cXcord; int cYcord; int …

Member Avatar for ultra vires
0
85
Member Avatar for Ainur

Dear all Could you tell me what is it-atomic type in Java? I explored internet and book Java in 21 days,but nothing about it. The question was about difference between object reference and atomic type. I found that object reference is an address that indicates where an object's variable and …

Member Avatar for jwenting
0
154
Member Avatar for Ainur

Hello everybody! I am a beginner in Java and computing at all. I need to make some tasks if you help me,please. So, the first taks is: Write down what is stored in s2 after the following Java code has been executed: String s1= new String("Hello"); String s2= new String("The …

Member Avatar for ~s.o.s~
0
145

The End.