36,051 Topics
![]() | |
Hi for a web application I am developing there is a need to assign the value attribute of struts tag and the value is in expression of jsp. I have a string in a jsp page and that string has to be assigned to textfield of struts tag using. How … | |
I want to pass all the values from a HashMap to ArrayList (that a demand of my exercise..) and to use for it an iterator (to the HashMap). How do I get the first key to the HashMap? (if I have the first I'll continue in a loop untill there … | |
i need jpeg image compression.. i would like to compress any image (size is too like 2mb)in to around 35 kb with acceptable quality.. i tried lot of solution but all of them given unacceptable quality ... I almost spent 2 months ... please give any open source solution to … | |
Hi , I want to split the pdf if my pdf exceeds the given size. For Example, If my pdf size is 12MB,I want to split the pdf in to 5MB parts. So i need to split the pdf in to 3, 5MB,5MB,2MB respectively. Pls let me know whether this … | |
Hi, I'm getting this NullPointerException in one of my classes (state). This design is done by a state machine design pattern. From debugging it I can see that insertMoney under coffeemachine>State>insertMoney is null but I can't figure out why it's null. The line with the error is almost on the … | |
for weeks its working fine but this time i dont know what happened after i tried to use hibernate to insert data in my database and decide to delete hibernate and use my old sql query my table model become messy if i insert a 1 row data its fine … | |
hi guys i need help with a very easy case, well maybe for you but not for me. i need to make a program that keeps record of teachers, students and their term marks for high school. i need to code a base called "person" and two subclasses "student" and … | |
[CODE]public class TVRemote { //initialize variables private int channel, vol; public TVRemote(){this(0,0);} public int getChannel(){return channel;} public void setChannel(int a){channel = a;} public TVRemote(int a, int b){setChannel(a); setVolume(b);} public int getVolume(){return vol;} public void setVolume(int b){vol = b;} public void channelUp(){ channel++; } public void channelDown(){ channel--; } public void … | |
Hello, I am developing a simple graph drawing application where each graph could be painted in internal frame. I want to call a specified function whenever an internal frame got focus. I’ve tried to add “addFocusListener” to the internal frame but it didn’t work. Multiple workspace (internal frame) can be … | |
The name of this question is jsf_dao_interface Hello and Thank you in advance for any assistance. [B] System info: [/B] netbeans,glassfish,MySQL [B] The Purpose of this post is: [/B] I am trying to learn to use an interface. I was wondering if someone was familiar with using and or had … | |
hello can anyone help me with this [CODE] import javax.swing.*; public class Q6 { public static void main ( String args [] ) { int nv,np,ns,nc; int c=0 , v=0 , p=0 , s=0; String input = JOptionPane.showInputDialog(null,"please Enter the statement") ; for (int i=0; i<input.length ( ); i++) { … | |
Well, this is 7th edition of this excellent book and someone should have already highlighted that when a filter of DocumentFilter class works 1) replace() is called most of the time on user’s interaction with e.g. text field, not just when ‘text is selected and replaced’ but also on regular … | |
hi i just joined Daniweb.com and I'm lovin it all d way.I have been lookin for a forum like this for a while now.Anyway I am developing a Java App and I need to make a JMenuItem to open a webURL on my browser when clicked.plz any suggestions on how … | |
i want 2 create mobile phone application in java pls help with code an all info thanks ![]() | |
Helo every one. i m workin with jlist and i got several items in jlist i want to store this items into txt file and read it later. is it possible to do it? any help will be apprict. hop i explained wel ... thx | |
My query is . I want java code to convert RGB image (jpg) into grayscale then i want to convert pixel of grayscale image i.e. if pixel is other than black conver it into white. if it is black then only it remain black. | |
Please help, my Prog is compiling fine but when run it give me [CODE]Exception in thread "main" java.lang.NullPointerException[/CODE] with the following: 1) at PatientReg.displaySQLErrors(PatientReg.java:424) [CODE] private void displaySQLErrors(SQLException e) { errorText.append("SQLException: " + e.getMessage() + "\n"); errorText.append("SQLState: " + e.getSQLState() + "\n"); errorText.append("VendorError: " + e.getErrorCode() + "\n"); } [/CODE] … | |
I have a code in Java 3D through which I can draw a static(all verticies are known before hand) 3D curve. But I want to draw a dynamic(vertices specified at they at run time) curve, and the number of vertices keeps on adding up. This is the code for static … | |
Hi there I need help with creating a dynamic windows form in java. I have parts of the code but don't know how to carry on... If someone could help me, i would appreciate it. Thanx Camzie | |
I have a project in java.. we will use a mobile application in netbeans and i dont know what right package I will use in Scientific Calculator that applicable to mobile appliction.. if you have suggestion regarding to my problem pls leave ur message here.... | |
Hey there guys, I am having a problem with with my ReadFile constructor. First of all the class that I am placing the constructor in is in a different package. I have imported the package to the class that I am placing the constructor But I still get an error … | |
Hi, I have a program that finds out if people are "compatible". The problem I have is that Java seems to be blatantly telling me that 130-130 is greater than 25 [CODE]public boolean checkMatch(Female other){ if (this.getA()<26&&other.getA()-this.getA()>1){ return false; }else if(this.getH()-other.getH()>25||this.getH()-other.getH()<-25){ return false; }else if(this.getP().equals(other.getP())&&this.getS().equals(other.getS())&&this.getD().equals(other.getD())){ return true; }else{ return false; … | |
Hey guys, Whenever I load up Eclipse it is really slow when I start type code. This is what happens, I'll load up eclipse, and when I make a new Java Project, it takes about 30 seconds to create it. When I want to start righting code, it freeze on … ![]() | |
plz help me.......... how to connect jsp and access. how can we retrive data from access to jsp. | |
hey, i'm having a problem that i have to read an image converted to numbers "0,1" from a file and then divide it to blocks so i can enlarge , compress and reverse the image.How can i do it???? | |
This is one of the two action listeners I have for two text fields. The exceptions to ensure the proper datatypes used is working. And the exception to make sure that int pos is within the array's range is working. The problem I am having is getting the out of … | |
I've made a gui that has a couple of panes on a frame. Initially only one frame is visible, but as you fill in options and press buttons, the others become visible. The problem I have is that the first pane should be in the top left corner when the … | |
Hi, I'm fairly new to java, but feel as though I understand the concepts fairly well. I have a server at home that I would like for several computers to be able to back up to. With the help of NetBeans, I would like to do this without simply downloading … | |
I want to know how to handle the events in an online webplayer using java swing | |
Hi Im trying to write a program that take list of numbers from TXT file then save them into array then convert them into integers and do a binary search on them here is what i tried to do [CODE] import java.util.ArrayList; import java.util.Collections; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; … | |
Hi! I have a project to cpomplete and am desperate for some help. i've been trying to get my head round it for days, but it a non event..>I would seriously appreciate if anyone could look at this for me...? Instances of the Dice class model a single playing dice. … | |
Where is best JSP tutoriall, at least best for you? I will appreciate also downloadable for offline use. I'm extremely noob to JSP but I know some java | |
Hi all, I Just connected to internet booting from my USB external HDD which have Mandriva 2010 installed. I need to set it up for may Regular programming. So help me to Install JDK and Eclipse. I'm right now checking Sun.com but I know there are Java people using Linux … | |
Hello all, I am currently studying for my DataStructures final examination and there is one thing that i just can never grasb. I cant seem to be able to recursivly define abstract data structures such as linked bags, lists, sets, stacks, queues, deques, ect... I can never seem to figure … | |
my computer os is window vista, i create a java program using the notepad but i can't compile file and run the program output in command prompt. when i compile the file: javac welcome.java 'javac' is not recognized as an internal or external command, operable program or batch file. it … | |
I have a slew of Java updates on my old Dell laptop, that take up over 1 GB of disk space. Do I need to keep them all? Can I remove the older ones without loss of performance? | |
What is the problem here please :'( [code]import java.math.*; import javax.swing.*; public class Q5 { public static void main(String []args) { double n; String Output=""; int t=0; int supervisingyears=0; for(t=0;t<=25;t++) { n=220/(1+10 * math.pow(0.83,t)); if (n<80) supervisingyears++; output=output+"\n Number of Supervising Years"+supervisingyears+"\n"; JOptionPane.showMessageDialog(null,output); } } }[/code] | |
Hey, I’m really new to java..so I'm really not sure what some of the errors mean , when I run this program it reads data from the file and all but I can’t get it store new data in a new file, the file “exo” does get created though. Here’s … | |
I want to write a Java Applet which interacts with some HTML elements in the same page. for eg : changing text in a HTML textfield I know how to do this using JavaScript using [COLOR="Green"]getElementById()[/COLOR] function. I think Java Applets also provide such method. If you are aware with … | |
I do contract work for a small Wireless ISP in my rural area and am creating a desktop app to keep track of jobs and scheduling. The main part of my app visually is a calendar and in each visible day there will be lists as containers for jobs belonging … | |
Hello everyone, Can anyone tell me how to create the hierarchial structure of replies to a particular message using Java. In most of the Internet Forums, you will find that when you click on a message, the replies to it will be shown in a hierarchial manner based on the … | |
I want to work in jSP & have no idea. can any one guide me or suggest me how to start or share with with me its free tutorial & online video lectures as well. Second thing what i need to install on my Pc to run a java Script … | |
while i click date i want to get that date. i have used this method but i can't to get data is clicked i used JCalendar [code] public Employee() { super("", true, true, true, true); setSize(50, 50); initComponents(); jdcDateBirth.addMouseListener(new MouseListener(){ public void actionPerformed(ActionEvent e){ System.out.println("is birth " + jdcDateBirth.getDate() ); … | |
hai friends i want a project title in j2ee to do my project plz help me :sad: | |
import java.io.*; package world; public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World"); } } istored this java file in world folder; and i set the class path as F:> set classpath = .;f:\; because my world folder in that drive but when i am compiling it … | |
I am new to java and trying to figure this out, the error im getting is; week1SR4Frame.java:28: week1SR4Frame is not abstract and does not override abstract method windowDeactivated(java.awt.event.WindowEvent) in java.awt.event.WindowListener public class week1SR4Frame extends JFrame implements WindowListener, ActionListener I am trying to "endButton.addActionListener(this);" i have added the above code also … | |
I am needing to make a program add and multiple from two different entries and display the total on a different line. I am needing the syntax on how to add and multiply. A web reference page would be good as well. All I have is two classes at this … | |
Hi..im creating a mastermind AI where the computer is very smart and could do with some advise on how to code this in java i.e using arrays and linked lists....i am also new to AI and could do with some advice. | |
Is it possible to output a variable and/or a string to a text file? |
The End.