32,199 Topics
| |
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 … | |
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 … | |
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 … | |
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 … | |
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, 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. … |
The End.