32,204 Topics

Member Avatar for
Member Avatar for jasonrefan

Hello, I have an 'Add' method that validates JTextFields to ensure data has been entered into them as well as checking that certain fields only contain digits. This works perfectly for my add method. But when I try to import it into my 'save' method which is seperate to the …

Member Avatar for NormR1
0
124
Member Avatar for drico7041

Hey, I was having trouble making my vector print out randomly generated numbers in ascending order. Can I please get some help?. This is my assignment "Write a program name count.java that will use a Vector to store 10,000 randomly generated numbers (ranging from 1 to 99) Now sort the …

Member Avatar for drico7041
0
181
Member Avatar for Shodow

example i will enter timein: 1:30 timeout: 5:00 how to know their time difference?in timeformat or how to accept a timeformat input from the user

Member Avatar for DavidKroukamp
0
119
Member Avatar for bhallarahul

Is there is any way or method to get the content of pdf row by row/line by line which help to convert pdf to word using itext api??????????

Member Avatar for peter_budo
0
930
Member Avatar for shotokanpoloto

I want to run an exe file in my project. I mean when I run my codes,a specific executable file run. How can I do that?

Member Avatar for DavidKroukamp
0
242
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
196
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
222
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
322
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
216
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
161
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
283
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
137
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
149
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

The End.