32,199 Topics
| |
program enter element and if num is already exist give message enter other number no duplicate my code give me alwayes else condition [CODE]/** * @(#)Enter.java * * * @author * @version 1.00 2011/11/18 */ import java.util.Scanner; public class Enter { public static void main(String []args){ Scanner input=new Scanner(System.in); int … | |
Hi all, I'm reading to a jtextpane a word document. Everything is fine except for this character \u0169 ( a tilde over an u).. Any suggestions? Thanks | |
Im using netbeans gui editor and im trying to add a Jfreechart that is itself in a internal frame, and this internal frame I am wanting to add it to a panel, as you can see in this image: [url]http://www.flickr.com/photos/63259070@N06/6370734167/[/url] The internal frame doesn't even show up on the panel … | |
Hello guys! Ive finished my last project lately about a program that has a trial version. Now, i want to update it, im thinking of creating a database from a website, then my program reads it (say, [url]www.serials.com/getserial.php?id=[/url][user id inputted]),then my program checks if the serial inputted is original, if … | |
I have a recipe class which has a constructor, the constructor takes in 7 parameters = RecipeName,AuthorName,Ingredients,Ingredientamounts,rating,servingSize,Instructions I'm trying to set those values using the scanner, but I don't know how to make it work since I have the scanner method inside of the Recipe class. So it looks kind … | |
Hi, I have a problem and forgive me if this sounds like a stupid question but I'm not really a good programmer. Ok, this is my problem. Say you have a string and you would like to pull out integers from the string what do you do? Example: String question … | |
Hi, I want to Map a single key to array of values. Is that possible? | |
Hi Folks, Hope your all well, Im Kind of new to JSP and so far I think I'm doing ok! However I'm using some of it for my dissertation which is creating an ITAM (IT Asset Management System). Im looking for some advice on drop down boxes and populating data, … | |
Hi basically I need help java and my program is an calculator which must be able to calculate arbitrary expressions like for example (5.0+8.1)*(2.0). My program works fine it does basic things like calling upon classes etc it's just I don't know how to do the arbitrary expressions. My calculator … | |
Hi! I'm trying to create a program that will allow the user to input 5 numbers and will print the largest and smallest number. I tried doing it and this is what I came up.. The thing is, after the program executes its purpose i want to add a statement … | |
Hey guys i m trying to make hangman game as java application here is a simple run how it should be. [url]http://e.atilim.edu.tr/mod/resource/view.php?id=5240[/url] i m trying to put JLabels in order when player click correct buttons. firstly i added JFrames at first then i did setEnabled(false) them after button is clicked … | |
Hey guys, so this is what happened. I'm stuck on this project on the second part, which is the top right quadrant. Its not showing the graphics at its specified quadrant which is the top right. Its supposed to have randomized sized red blocks that fills the quadrant. Can you … | |
I want to attach User Instructions to a Java application, and allow the user to open it from the help menuitem. I'm not very familiar with classpath variables. If I use an absolute path name everything is fine, such as File pdfFile = new File("C:/Program Files/MyProgram/UserGuide.pdf"); But I want to … | |
i have problem about the output in this code, my output so only the index 0. how can i fix this. [code] public class d_2D { static double[][] d =new double[6][4]; static double[][] e= {{}, {0.0,0.6,0.0,0.0}, {0.0,0.2,0.5,0.1}, {0.0,0.2,0.5,0.4}, {0.0,0.2,0.5,0.7}, {0.0,0.0,0.0,0.9}}; static double[] avg= new double[4]; static double[] sum= new double[4]; … | |
the random character should be uppercase letter A to Z is from 65 to 90 in the asii table what is the equation....? | |
Hello everyone and thanks in advance for helping me. I'm a 1st year java student in my first semester of college. Its comming towards the end of the semester and finals are starting up.. well my problem is that my java teacher decided to give us 2 projects to work … | |
can anyone tell how to bring Bitmap class in java just like we do that in C#................ i've got link regarding the Bitmap class in java... but i does'nt know how to bring that in java [URL="http://jwx.sourceforge.net/api/wx/Bitmap.html"]http://jwx.sourceforge.net/api/wx/Bitmap.html[/URL] | |
So I wrote up a simple voting GUI, but I havent been able to figure out how to get it to display the current leader or how many votes they have. It displays the total number of votes correctly, however. Heres my code [CODE]import java.awt.*; import java.util.*; import java.awt.event.*; import … | |
i am getting an error : java:10: error: AniWorld is not abstract and does not override abstract method mouseMoved(MouseEvent) in MouseMotionListener public class AniWorld extends Applet implements MouseMotionListener, MouseListener please help [CODE]import java.awt.*; import java.lang.*; import java.applet.*; import java.net.*; import java.net.MalformedURLException; import java.applet.Applet.*; import java.io.IOException; import java.awt.event.*; public class AniWorld … | |
What i need it to is write a GUI program that has one text field, one button, and one text area. The user can enter data into the text field, and then click the button. When the button is clicked, the program records the value in the text field to … | |
I have to do this project in which several employees need to be added to the system. The system admin should be able to allocate jobs that each of those employees will be doing after verifying whether that job is already attached to the employee or not and whether that … | |
I'm trying to create a program that'll read a list from an external file, and generate an arrayList with the object representation of the list. Basically, the list contains names, and prices, which will be read in, and used to create instances of my "book" class which are supposed to … | |
I am trying to use a combo box to change the background color. I have the following code but it is not working correctly. The combo box is there with the three choices but the choices are not changing the color of the background. [code] import java.awt.BorderLayout; import java.awt.Color; import … | |
Hey there, quick question is there anyway i can set the order of nodes, that have already been saved in a Jtree. Say if i had an array of pictures, which i can flick through. Then using a Jtree i can change the order of the pictures. If so how … | |
I'm trying to figure out how to use JOptionPane to determine which deduction someone will receive. S - Single and M - Married. I just need to use the first letter of the input though. [CODE] public double calcinsDeduct() { double insDeduct; if (status.startsWith(s)) insDeduct = 50.00; else if (status.startsWith(m)) … | |
I have a class name string. And a user input is read i.e a message or string. Get the text message(i.e.string) from the user and convert the message into hexadecimal code and binary code. Then message is split into two parts. One is used as message end other one is … | |
hi, I'm a beginner in Java and new to NetBeans. I have a project to do where I have to use NetBeans to write a hotel program. the questions is displayed like this > One of your friends is working behind a room reservation counter helping customers to determine the … | |
Hello everyone. I've a bit of trouble with my code. I'm suppose to create a program that will allow the user to input as many integers as they desire. When the user is done, the program will calculate the alternating sum. The program will then display the equation along with … | |
I hope you guys can help me out... i have a little applet which caused me lot of problems. i'm new to java and i hardly managed to put all the code together, what does the script? here: users visit my website, and from their account they can upgrade a … | |
Hi All, If I read in from a file and populate an array with its data(all strings), how can I control the way it prints(to the console for example).Right now it just prints a huge long line in the console of all its contents. I figure I will have to … |
The End.