35,618 Topics
![]() | |
Hi all, am using eclipse IDE.I want to connect mysql database with jsp/servlet for that i want to add mysql j/ connector. I added properties -> Java build path-> Add External jar file but still it calls the exception Driver not found "com.mysql.jdbc.Driver". Am not filmier with Eclipse any one … | |
The value of address is not insert in database varchar2 pno field. tried from.tostring() but not inserted but its prints through system out perfect as email adress. any idea or suggesstion how to insert it into database.. [CODE] import java.io.*; import java.util.Properties; import javax.mail.*; import java.sql.*; public static void insertm(int … | |
Hi All, I am new to EJB and JBoss.I am trying to develop a very simple EJB 3.0 stateless calculator bean which I have done upto this.I have one remote interface "Calculator.java" a stateless bean class "CalculatorBean.java".I have successfully compiled these and packaged in a jar file and kept it … | |
I am going to create HDR Imaging tool using java for my Image Processing project.Can anyone give me a help regarding this area.......??????? | |
I am trying to create a custom tag that will write something to the screen after checking for the existance of a specific cookie. Is it possible? Thank you. | |
In my current program, the input information is hard coded. For instance [CODE]final String titleFieldName = "title1";[/CODE] If I want to change title1 to title2, I have to modify the source code and click "run Java application" in Eclipse. How can I change the program to allow the user dynamically … | |
This program is to design a gui for users to add any loan amount, term, and APR; the program then gives a monthly note amount in that field. I cannot figure out what I'm doing wrong. I also cannot get the reset button to work. Can anyone give me an … | |
I am going to make a calculator and I am having some Issues arranging the buttons. You should be able to see the layout when you run the code. Some clarification though there will be a blank spot under the "3" for a "+/-" button (switches between positive and negative). … | |
I am learning C++ and I learned that you can create your own types. I decided to try this in java. I am wondering if there is an easier way to make a bunch of variables private other then typing out private for each of the created variables. for example … | |
i've have developed a project for class students allocation for examination.........the instructions for the project is given in the form itself at the bottom......... i've also added a print option for printing the page that you sees........can anyone tell how to print all the pages........... | |
Hey there, I might not be able to accurately describe my problems, but I'll do my best. I am taking these tutorials on adobe website that walks me through building a flex web application. In order to take the tutorials, I needed to previously deploy a war file that sets … | |
Hello, I want to create a software in Java that submits same/similar data to multiple web forms (eg submit link data to link directories). What I want to do is, ask the user initially for the data that is to be submitted, and then go to the web form, open … | |
Hi. Let's say I have the following method: [CODE] void createNewObject() { MyClass myObject = new MyClass(); } [/CODE] If I call this method 1000 times, how many instances of MyClass will be left in my program's memory by the time all calls have been made? 1000, 1, or 0? … | |
![]() | Hi all, I need a little bit help in creating a small thesaurus like application in java. The application consists of some 50-100 categories and each category have some 2-10words of similar meaning. e.g Close-{shutdown,fold,end,come together} The words are hard-coded but I don't know which data structure suits the best. … |
For these whom may be interested in new stuff about Java 7 here is web broadcast from few days back [URL="http://www.oracle.com/us/corporate/events/java7/index.html"]Java 7 Celebration Webcats[/URL] PS: Didn't watch it yet so have no idea if any good :D | |
Hai friends How can i catch [B]"There is not enough space on the disk"[/B] in IO Exception, i want to show popup when there is low disk space in my system,its throwing following exception. java.io.IOException: There is not enough space on the disk i want to catch only diskspace. please … | |
i've created a jframe with a jpanel with certain things as you can see in the attachment (page1.java) ..............can anyone tell how to print that jpanel(not the whole jframe) and all its contents ........ | |
hello friends..got a problem again.. I'm developing a software for one of our assignments.I have coded that program using Netbeans but we have to upload the assignment as one java file.So I created one java file and again checked in netbeans as a single file.It works perfectly.And then I tried … | |
Hello im currently having problems with the storing of String to an array im currently using a GUI output so it reads inputs from the textfield here's my code: [CODE]import java.util.*; import javax.swing.*; public class Contents { int listLength; String []word; String []meaning; String []sentence; String []classification; public Contents(int l) … | |
Hi, I need to eliminate all special characters in my file except "space" .. Please check the program below and tell me what I need to change [CODE] import java.io.*; import java.util.Scanner; public class TestScript { public static void main(String args[]) throws Exception { System.out.println("Please Enter the filename\n"); Scanner sc … | |
So I made a quiz that have 14 question each one have 3 radiobuttons as options, the quiz is in 4 forms, each form has 4 questions except the last one it has 2 questions..Now I need to sum all the selected answers..How can I do that?? [CODE]public class page1 … | |
[code] <html> <head> <script> function selectCheckBox() { if(document.getElementById('id11').checked==true) { document.frm.id2.checked=true document.frm.id3.checked=true document.frm.id4.checked=true } if(document.getElementById('id11').checked==false) { document.frm.id2.checked=false document.frm.id3.checked=false document.frm.id4.checked=false } } function selectCheckBox1() { if(document.getElementById('id12').checked==false) { document.frm.id1.checked=false } } function selectCheckBox2() { if(document.getElementById('id13').checked==false) { document.frm.id1.checked=false } } function selectCheckBox3() { if(document.getElementById('id14').checked==false) { document.frm.id1.checked=false } } </script> </head> <body> <form name="frm"> All … | |
I have the input string "textfile\foldername\text.txt" Now i need to convert given string to: textfile/foldername/text.txt I went through string.replace(oldchar, newchar) methods, but i actually couldnt remove the " and \ characters from the string. Need help | |
Hello, which book can u recommend me as Java Beginner? | |
import java.awt.*; import javax.swing.*; import java.awt.Color; import java.awt.event.*; import javax.swing.event.*; import java.io.File; import java.util.*; /* <Applet Code="MyPaint.class" width=400 height=400> </Applet> */ public class MyPaint extends JFrame { /* Declaring the variables.*/ JPanel panel; JPanel textAreaPanel; JTextArea drawTextArea; JScrollPane drawScrollPane; JLabel line, color, paint,kid,cil; JButton circle, rect, poly, ellipse; JComboBox cbLine, … | |
Hey guys. I am having problems with this code. I am somewhat new to java so this may be a simple mistake on my part. Any help or direction would be greatly appreciated. I am trying to convert this code to use double instead of int. It is a insertion … | |
Dear friends, I'm developing a software for one of our assignments. But the problem is I's still learning these things.But since I have bunch of Java expert friends I have no fear to face it ;) .So friends this is the code. [CODE]package census; import java.io.*; public class Main { … | |
Hello everyone, I am Java SE developer, but would like to start developing Java ME applications. Can you point me to some book, tutorial where I could get the basic concept of making mobile applications? And also, what IDE should I use? Currently I use Eclipse and NetBeans. Thank you … | |
I want to redraw a JPanel while my program is running. Here's a fragment of my code: [CODE]public class Graph extends JPanel{ public void redrawSomething() { getGraphics().drawRect(15, 5, 20, 5); repaint(); }[/CODE] I tried to call "redrawSomething" but nothing happend. How do I fix it? Is something wrong? | |
My operators are pretty much working well, but the problem is every time I do an operation (example: 1+2 = 3) and then tried clicking another number the number that I clicked adds up with the result (so this is what happens, the result is 3, then I click 7 … |
The End.