32,199 Topics

Member Avatar for
Member Avatar for Broker

Hey everyone, this is my first of what I plan on being many posts. I am just getting into java, this is my first programming language. I am trying to learn how to use the java.awt. package to do graphics, can anyone point me in the right way to learn …

Member Avatar for Ezzaral
0
42
Member Avatar for HakkaBukka

hi, I am interested in java based software/applications that can support complex financial calulations such as set processing, iterations and looping function. The objective is to use it while defining insurance calculation which can be complex by itself. The application should have built in set processing calculations. Can anyone help …

Member Avatar for cam875
0
91
Member Avatar for TheManual

I have managed to change an input String expression with parentheses to a postfix expression. I want to print to print the values in the stack but can't work it out. Can anyone tell me how I do this? [code] class Converter{ private Stack converterStack; private String input; private String …

0
62
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
102
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
87
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
30
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
223
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
50
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
74
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
208
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
239
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
95
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
106
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
85
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
82
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
840
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
88
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
186
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
59
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
87
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
80
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
110
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
142
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
59
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
133
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
100
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
64
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
98
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
68

The End.