36,051 Topics

Member Avatar for
Member Avatar for rlaknar

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 …

0
67
Member Avatar for anilopo

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 …

Member Avatar for anilopo
0
103
Member Avatar for musthafa.aj

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 …

Member Avatar for musthafa.aj
0
90
Member Avatar for premprasanna

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 …

Member Avatar for peter_budo
0
32
Member Avatar for benregn

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 …

Member Avatar for chan95
0
224
Member Avatar for wilen

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 …

Member Avatar for GrubSchumi
0
52
Member Avatar for morgatron

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 …

Member Avatar for BestJewSinceJC
-2
76
Member Avatar for LucarioWill

[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 …

Member Avatar for LucarioWill
0
214
Member Avatar for H.Roger

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 …

Member Avatar for H.Roger
0
242
Member Avatar for ceyesuma

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 …

Member Avatar for ~s.o.s~
0
139
Member Avatar for girl.java

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++) { …

Member Avatar for tux4life
0
98
Member Avatar for tomqsm

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 …

Member Avatar for tomqsm
0
109
Member Avatar for theGem2001

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 …

Member Avatar for JamesCherrill
0
88
Member Avatar for sandipdandel

i want 2 create mobile phone application in java pls help with code an all info thanks

Member Avatar for harsh2327
0
84
Member Avatar for emint

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

Member Avatar for BestJewSinceJC
0
845
Member Avatar for sujay007

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.

Member Avatar for peter_budo
0
91
Member Avatar for JBeginer7891

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] …

Member Avatar for JBeginer7891
0
187
Member Avatar for gunjannigam

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 …

0
62
Member Avatar for Camzie

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

Member Avatar for peter_budo
0
90
Member Avatar for catubig37

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....

Member Avatar for peter_budo
0
82
Member Avatar for Teethous

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 …

Member Avatar for BestJewSinceJC
0
118
Member Avatar for Moonrise_state

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; …

Member Avatar for Moonrise_state
0
144
Member Avatar for .11

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 …

Member Avatar for nileshgr
0
119
Member Avatar for pyaripari

plz help me.......... how to connect jsp and access. how can we retrive data from access to jsp.

Member Avatar for chankya
0
70
Member Avatar for nouryn

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????

0
62
Member Avatar for Afupi

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 …

Member Avatar for javaAddict
0
139
Member Avatar for P00dle

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 …

Member Avatar for P00dle
0
105
Member Avatar for baudday

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 …

Member Avatar for baudday
0
1K
Member Avatar for subhankar02dey

I want to know how to handle the events in an online webplayer using java swing

0
66
Member Avatar for mohannad2004

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; …

Member Avatar for mohannad2004
0
100
Member Avatar for Puzzledbuthappy

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. …

Member Avatar for Puzzledbuthappy
0
72
Member Avatar for Stefano Mtangoo

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

Member Avatar for peter_budo
0
120
Member Avatar for Stefano Mtangoo

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 …

Member Avatar for Stefano Mtangoo
0
144
Member Avatar for Fedhell

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 …

Member Avatar for BestJewSinceJC
0
111
Member Avatar for LKH

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 …

Member Avatar for BestJewSinceJC
0
130
Member Avatar for jerseycoaster

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?

Member Avatar for BestJewSinceJC
0
143
Member Avatar for so-so

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]

Member Avatar for peter_budo
0
78
Member Avatar for shack99

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 …

Member Avatar for shack99
0
119
Member Avatar for kdkanishka

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 …

0
61
Member Avatar for HazardTW

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 …

Member Avatar for HazardTW
0
244
Member Avatar for kiranpvsr

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 …

Member Avatar for kiranpvsr
0
76
Member Avatar for Ashwin Vasnai
Member Avatar for johny321

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 …

0
69
Member Avatar for onsir

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() ); …

Member Avatar for peter_budo
0
114
Member Avatar for sree22_happy
Member Avatar for peter_budo
0
178
Member Avatar for sambafriends

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 …

Member Avatar for JamesCherrill
0
145
Member Avatar for Iz3k34l

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 …

Member Avatar for Phaelax
0
148
Member Avatar for BobBrown

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 …

Member Avatar for BobBrown
0
70
Member Avatar for m-e-g-a-z

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.

Member Avatar for adams161
0
94
Member Avatar for JasonDoyle

The End.