473,554 Members | 3,443 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Java Forum

Java programming language (Sun Microsystems) - Ask questions about java programming, OOP, JRE, SDK, Swing, Plugins, Java Virtual Machine(JVM), Java Libraries: Collection, XML Processing, Security, JDBC, JNDI, RMI, CORBA, AWT (GUI) and more.
0
1,067
momotaro
thread by: momotaro | last post Jul 26 '11 by: momotaro
Hi everyone! this peace of code is driving me nuts! my iterator is supposed to iterate as many times as the elements it contains but this one do a +1 time please help! this is the peace of code: Iterator<Field> itrItem = fieldList.iterator(); while(itrItem.hasNext()) e.setListField(itrItem.next());
0
1,255
thread by: umangbansal | last post Jul 26 '11 by: umangbansal
i m devloping a java servlet, and want my servlet to access ms-access database which it is not doing i guess there is problem with my web.xml file . coding of my web.xml file is as follows <?xml version="1.0" encoding="ISO-8859-1"?> <!--<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" ...
0
1,246
thread by: Rameshwar Soni | last post Jul 29 '11 by: Rameshwar Soni
can anyone explain me the output of the following program : Thanks in advance // program class No_System_Demo { public static void main(String n) {
0
1,158
thread by: onesleo | last post Aug 8 '11 by: onesleo
hi guys ,, do you know how to edit the content in the row directly,, i mean when we try to click add button it will be bring out the row in the table so when the row is appear with the value inside ,, we could edit the value in the row directly without press edit button.. thanks before,,
0
1,490
thread by: Xpert Coder | last post Aug 11 '11 by: Xpert Coder
I created a package named P1. I created 2 classes "protection" and "derived" where "derived" is subclass of "protection". I put both the .java files in C:\java\p1 folder. Class "protection" is successfully compiling but class "derived" isn't. Its not able to recognizing the name "protection". I've even tried to import. Both are in same folder and...
0
1,612
momotaro
thread by: momotaro | last post Aug 19 '11 by: momotaro
Hi, I've been working on a project that generates from a given XML file representing a database java classes and orm.xml and Jsfs. Now am supposed to use hibernate with all that stuff to create that database and work with it. My question is that am kind of lost and don't know the logic (philosophy) of how it should work.. please help thank's...
0
1,114
thread by: Tomas Vanura | last post Aug 22 '11 by: Tomas Vanura
Hello Colleges! Would anybody be so kind as to advise me with my problems in Java SE Graphics/Graphics2D? 1. Gives the system Java SE Graphics/Graphics2D possibility to select: thickness or color or style of painted line? 2. In what way is it possible to use RGB colors in Java SE Graphics/Graphics2D? Please advise me literature references....
0
1,055
thread by: ivansyah | last post Aug 23 '11 by: ivansyah
Can I passing class interface in getContructor and newInstance().... public interface face{ public void message(String m) ; } public class Test { private Face iFace = null ; private JPanel theBody = null ; private JFrame jFrame = null; public static void main(String args) {
0
1,765
thread by: Nisha | last post Aug 24 '11 by: Nisha
IN netbeans 7.0 I get "The project uses a class library called "junit", but this class library is not currently defined locally." How to install Junit to solve this problem....?
0
1,240
thread by: shivaprathakota | last post Aug 24 '11 by: shivaprathakota
Hi, I got a problem port number already in use while starting the Tomcat in Eclipse, i already changed port number 8080 to 2222 in Tomcat 6.0\conf folder, but still i faced this problem , for more details refer attachment file .Please help me how to solve this problem.
0
1,402
thread by: UnknitSplash | last post Aug 24 '11 by: UnknitSplash
I need to clean my labelResult each time on textField Action, but on the first time it adds 'null' in front of string and then - prints new string right after. Please help. import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class Frame extends JFrame implements...
0
1,523
thread by: karimkhan | last post Aug 26 '11 by: karimkhan
I am developing one software in which I want to allow user to print the data filled by him in GUI file, and for that I want to covert data filled by user into pdf format. So what is the way by which I can achive this? Any one knows how to use java printer API to print the file?
0
1,301
urssanj00
thread by: urssanj00 | last post Aug 30 '11 by: urssanj00
00000032 SystemErr R ... 64 more 00000031 SystemErr R com.ibm.ws.exception.RuntimeError: java.lang.NoClassDefFoundError: com/ibm/mq/server/MQSESSION at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:793) at...
0
1,493
thread by: rotaryfreak | last post Aug 31 '11 by: rotaryfreak
Hi, I'm creating a java program which will run other executable .jar files and the order of how these other jar files runs is important. I need to run 3 jar files. A.jar, B.jar, and C.jar. In my main program which will control the execution of my other jar files, this is what i have: public static void main(String args) { ...
0
1,953
thread by: Amit Kumar M | last post Sep 7 '11 by: Amit Kumar M
Hi, I am using apache POI to read a xlsx file and upload the data in the database. I have to do this work in a scheduler(at scheduled time) running on Jboss. As scheduler is running on different server from the one file was uploaded, I am using postgres bytea datatype to save the file in database using below code PreparedStatement ps = ...
0
1,285
thread by: soorya ramesh | last post Sep 10 '11 by: soorya ramesh
how can i extract url's from a google search result page using java..i tried htmlunit but its not workin..is there any other way without having to save the page using API's and then parse them? plz help
0
1,309
thread by: prithvi | last post Sep 11 '11 by: prithvi
Hi , I use NetBeans6.9.1,jdk1.6... I often faced a mysterious problem i.e. "In Swing suppose I have a main class,& 20-25 jFrame. I call all those from the main class.all are perfectly running suddenly Errors occur based on AWT event(I think that is for classpath prob,but I am not sure).but those frames are run few seconds before.I also set up...
0
1,571
thread by: Gajananpund | last post Sep 12 '11 by: Gajananpund
Hi, I m using the DB2 database for java multithreading program where i m using 8 thread which are running concurrently but after some processing i m geeting the exception "Exception While Processing Invalid operation: statement is closed. ERRORCODE=-4470, SQLSTATE=null " any help will be Appreciated.... regards, Gajanan
0
1,594
thread by: Gajanan Pund | last post Sep 13 '11 by: Gajanan Pund
Hi, I m using the DB2 database for java multithreading program where i m using 8 thread which are running concurrently but after some processing i m geeting the exception "Exception While Processing jcc1012010943http://3.50.152 Invalid operation: statement is closed. ERRORCODE=-4470, SQLSTATE=null " any help will be Appreciated.... ...
0
1,345
thread by: hexyz hexagonal | last post Sep 13 '11 by: hexyz hexagonal
This is the code I have public class Employee1 { // declared instance variables********** private String firstName; private String lastName; private Double salaryValue; //**************************************
0
1,676
thread by: Sathish Kumar | last post Sep 19 '11 by: Sathish Kumar
Hi.. I am using a JTable in java for listing the values from database. I need something like, I need to list few set of values in the JTable. And when we scroll down or scroll up using scroll pane of JTable, next set of values must be loaded from database. so that instead of loading all values, i can list few values and scrolling action will...
0
1,741
thread by: tyagithehacker | last post Sep 20 '11 by: tyagithehacker
My Helios: irritates me every time it try to use "Auto Suggest" feature of the IDE. It almost happens every time i try to use that feature (except sometimes, don't know why). Version Details: Eclipse Java EE IDE for Web Developers. Version: Helios Service Release 2 Build id: 20110218-0911
0
1,492
thread by: ndedhia1 | last post Sep 20 '11 by: ndedhia1
Hey guys, I created a GUI that updates every time a new line is added to some file. If I have the GUI in the background and have focus on other things such as unix session I have open, firefox, an email that I am writing in Microsft Outlook, the GUI flashes in the taskbar at the bottom of my screen and doesn’t steal focus. That is exactly what...
0
1,606
thread by: squizzel | last post Sep 22 '11 by: squizzel
Ok so I have this number 1.4316557653333333E9 and I need to format this number so I can print out 1431 million 655 thousand and 765 Here is my curent code: import java.util.*; public class numberthree { public static void main(String args) {
0
1,455
thread by: Anonymous User | last post Sep 22 '11 by: Anonymous User
Hi, I am writing a JAVA program for work that at some point needs to transfer files from the machine it is running on to another machine. The requirements are such that it can be configured to either do the transfer over FTP, SFTP, or a connection where the authentication is secure but data is transferred unencrypted. Implementing the first...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.