32,199 Topics

Member Avatar for
Member Avatar for laklaker

I created a game a random guessing game ( for school project ) . I just want to ask on how to put a hall of fame? Like when you played the game then its end it will be putted his/her name then it will be saved. Then it will …

Member Avatar for DavidKroukamp
0
194
Member Avatar for Eragah

[B][I]Hi I wanted to ask a quick question. I have two classes. And within my main class i am able to pass in variable to three variables EyeColorR to EyeColorB and able to send them the my Eye Class under the consturctor class Eye. the catch is I need to …

Member Avatar for Eragah
0
212
Member Avatar for shotokanpoloto

Hi...I want to read from a file and put each line in...the given file is like that : q0,q1,q2; a,b; q0; 7; q0,a,q0; q0,b,q1; . . . . (as you see it's the information of a nfa) Each line ends with ";" and each element of array is separated with …

Member Avatar for shotokanpoloto
0
220
Member Avatar for HelloMe

Hello guys... I downloaded JDK 6.0 (btw is it the same as JDK 1.6?) Anyways, when i want to install it a error message pops up during instalation that says: [B]Error 1721. There is a problem with this Windows Installer package. A program required for this install to complete could …

Member Avatar for aliartos
0
716
Member Avatar for behrad kiani

I try to converting bytes with 8 digits into ASCII code for example if user enter "0000111" the program convert it to it's ASCII code and shows 'p'(the value of character c in the code below became 'p') [CODE]public static void main(String[] args) { Byte bytes; char c; Scanner input=new …

Member Avatar for JamesCherrill
0
319
Member Avatar for drogba123

Hi, Is there anyone know about window sliding protocol with selective repeat? currently i am doing an assignment based on this and i am a little bit confused how to implement the timers in term of the start timer and acknowledgement timer.

0
54
Member Avatar for TrickyT

Writing my second program for a class. It requires the following: [COLOR="Green"]Create a non-GUI-based Java application that calculates the payroll for a department in an organization. [COLOR="Green"]The application should display text that requests the user input for the name of the department, the number of employees in the department, and …

Member Avatar for TrickyT
0
143
Member Avatar for Upoma

in my recent project the user need to attach document when filling a form.But dont have any idea about the implementation.how may i do this?if you have any idea,please help me.

Member Avatar for bkd
0
124
Member Avatar for zerose

I'm doing speech recognition application. Now my application can recognize my speech command, but somehow my application still not working. Is it because i did not trigger an event like .getSource()? This is part of my program: [CODE] public void resultAccepted(javax.speech.recognition.ResultEvent e) { try{ Result r = (Result)(e.getSource()); ResultToken tokens[] …

Member Avatar for zerose
0
214
Member Avatar for deathmagnetix

Write an application that computes the cost of a telephone call. The inputs are the time the call was placed (this should be written as a 24-hour time, e.g., 2149 for a call placed a 9:49p.m.), the duration of the call in minutes, and the distance in miles of the …

Member Avatar for deathmagnetix
0
167
Member Avatar for nickliutw

I'm creating a program by using the generic array that allow user to define the capacity or use the default capacity. I'm running some problems with casting and methods is not exist errors when I tried to store the data into array. Here is my constructor and methods class: [CODE] …

Member Avatar for stultuske
0
101
Member Avatar for Karlwakim

Hi everybody, I am currently learning c++, and i would like to know more about java. As you know, c++ has no built-in functions to build GUI apps, does java have built-in functions to build gui apps ? Or we need 3rd party libraries ? Thanks

Member Avatar for Karlwakim
0
159
Member Avatar for stakeMyHeart

im creating a prototype for a hotel using netbeans ide 7.0. I used the drag and drop in designing the buttons, panels, label etc... then what i want to happen is when the button is clicked a jpanel/ jframe that i did will appear. How would i do that? I …

Member Avatar for stultuske
0
281
Member Avatar for jasonrefan

Hello, I am trying to validate that the user has entered data into the JTextField to be saved to a text file. My method is: Data saved to Text File Data loaded into an array upon execution Data saved to array, then written to Text File. My addProperty Method: [CODE] …

Member Avatar for jasonrefan
0
135
Member Avatar for jpsider

I'm working on a school project, beginner stuff. I need to output the data with 2 decimals. I've tried several variations of [CODE] printf("%4.2f" + variable) [/CODE] But it seems when I use more than one variable it craps out or wont compile. Thoughts? [CODE] public class Conference4 { public …

Member Avatar for jpsider
0
127
Member Avatar for hszforu

So here is something i am trying to do: 1.Store a mathematical expression eg. 23*32+12 in the String datatype. 2.Now i have to calculate the value of that expression. So i thought of converting the string to integer using parseInt , but for this the string need not contain *,+ …

Member Avatar for hszforu
0
313
Member Avatar for harinath_2007

I want to make my program sleep for 30 miutes or 1 hour . I can do that by using Thread.sleep() but is there any alternate way?

Member Avatar for harinath_2007
0
132
Member Avatar for Upoma

i am going to develop a java project with tomcat6.How to implement calender data type in date field? please help as soon as possible..

Member Avatar for JamesCherrill
0
184
Member Avatar for jot121

[CODE]import java.util.ArrayList; public class CSStudent { String[] requiredGeneralClasses = {"biology", "calculus", "chemistry", "english", "physics", "psychology", "economics"}; String[] requiredInMajorClasses = {"algorithms", "data structures", "numerical analysis", "graphics, databases"}; String[] completedClasses; int[] gradeForCompletedClasses; public CSStudent() { completedClasses = new String[10000]; gradeForCompletedClasses = new int[10000]; } public void completeClass(String classs /*class*/, int gradeOnHundredPointScale) { …

Member Avatar for NormR1
0
123
Member Avatar for zerose

I want to do some event when all my internal frames are invisible. I know we can set .visible(false) but i got 30++ internal frames. What should I do? Please help. What I want to do is: if (allMyInternalFramesAreInvisibleIsTrue)) { } Is it possible? Or I have to make 30++ …

Member Avatar for JamesCherrill
0
42
Member Avatar for Vampiricx3

Hey guys, I'm trying to build an Employee system GUI, and right now i'm trying to create a JComboBox to display all of the Employees, but whenever I compile, I get the following errors.. [code]nathan@ubuntu:~/Desktop/Employee GUI [Java]$ javac RectangleProgram.java RectangleProgram.java:42: cannot find symbol symbol : constructor JComboBox(java.lang.String) location: class javax.swing.JComboBox …

Member Avatar for JamesCherrill
0
148
Member Avatar for dennysimon
Member Avatar for JamesCherrill
0
136
Member Avatar for mlhuff12

Hello everybody. I'm obviously new here. As the thread says, I am a Senior Computer Science student at Millersville University in Pennsylvania. I will be graduating December 2012. I currently only know Java and C++, but I definitely want to broaden my knowledge in hopes to get a job some …

0
135
Member Avatar for witchDoc

Hello everyone. I can't figure out the best way to make a simple picture loop through the screen in a predefined trajectory (e.g. elliptic). Do i need to use some math or is there a way to like draw a trajectory and bind the pic to it? Thanks in advance.

Member Avatar for mrnutty
0
157
Member Avatar for sike.mausa

Greetings! I am trying to complete the last part of an assignment, though the 2d Arrays are stumping me. The comments are what is supposed to be done, and the rest of the code is stuff I've tried but has not worked. Any assistance would be greatly appreciated. Thanks! [CODE] …

Member Avatar for NormR1
0
164
Member Avatar for vaironl

Hello forum, Vaironl here. I have a little problem, in a fairly big piece of code. I'm making a recipe application, which is working fine, but there is one minor error. If I minimize the screen and restore it, some of the components inside it are somehow re sizing of …

0
65
Member Avatar for javalover

Sir, I need a java program (ie), if we mark a part of an image, the portion with same intensity in that image should also be segmented and saved separately .. Thanks in advance..

Member Avatar for hfx642
0
710
Member Avatar for jackbauer24

My son, a ten year old is so like "[B]I WANT TO MAKE SOFTWARE!!!!!I WANT TO PROGRAM!!!!!!!!!I DON'T WANT TO STEP INTO LANGUAGES LIKE [URL="http://www.simplecodeworks.com/website.html"]http://www.simplecodeworks.com/website.html[/URL] OR [URL="http://scratch.mit.edu/"]http://scratch.mit.edu/[/URL] OR [url]http://www.alice.org/[/url] !!!!![/B]"He knows--- [LIST=1] [*]Basic Python(for, while, variables, raw_input, readline) [*]Extremely little about C++ [*]Quite a lot of Javascript(alert, prompt, *a little …

Member Avatar for jbennet
0
552
Member Avatar for enterpise

now i'm writing a method which is checking the ip already exist or not [CODE]private boolean EXISTIP(String s) { boolean result = true; try{ for (int i = 0; i < Client_list.length; i++) { if (Client_list[i][0].equals(s)) { return true; } else { result = false; } } }catch(Exception e){ return …

Member Avatar for stultuske
0
123
Member Avatar for riahc3

Hey Using MyEclipse 10 for Spring while developing Matisse/Swing GUI applications something very annoying happens: Whenever I change anything on the form in Design view the view always changes to Source view. (In between a progress bar with 'formatting' text appears.) How can I this behaviour switch off? Thanks

0
56

The End.