32,204 Topics

Member Avatar for
Member Avatar for VernonDozier

I am working on a program where there are several tasks that take time that users can implement. I would like a progress bar to pop up to inform the user how far the task has gotten. When the user presses a button on the main frame, I want a …

Member Avatar for VernonDozier
0
169
Member Avatar for BestJewSinceJC

I have two programs, one is a GUI and the other is a normal (non GUI) program. How do I make a method in the non-GUI program wait until a JButton on the GUI gets clicked before continuing? (No while loops) This is frustrating since I'm fairly certain somebody here …

Member Avatar for BestJewSinceJC
0
92
Member Avatar for AdventureX

We have been given a task to do the following:- Write a class LectureTheatre that has the following attributes (properties): lectureTheatreName / maxOccupancy / layoutStyle (the lecture theatre may be either flat or tiered) For example:- lectureTheatreName : Frankland LT ... or ... Fylde LT2 ... or ... George Fox …

Member Avatar for vee_liang
0
113
Member Avatar for carlcarman

This is part of an ongoing project and up to now i've been able to figure things out. This insallment is: 1. Create an instance array called employees that will hold Employee elements. 2. Modify your loop to create a new element in the employees array for each employee entered …

Member Avatar for carlcarman
0
155
Member Avatar for miso66

Hi guys! I am new to java and I have a little problem with ma Java code. My application should read and paint an Image from file. The information about the image are in text format and the image can be composed of rectangles and circles. An example: rectangle { …

Member Avatar for miso66
0
156
Member Avatar for DeadJustice

I tried to modify this merge sort method to sort an array of type T. Its an merge sort except iterative. I was just wondering why it wouldn't sort right? Can anyone help me out? [CODE=Java]public static <T extends Comparable<? super T>> void iterativeMergeSort(T[] input) { // Create a temporary …

Member Avatar for DeadJustice
0
153
Member Avatar for shubhang

Hi, I am making a java program to make a countdown timer. User enters time,then when time is up a message is printed. How do I print the time on the same line? Please tell me how to go about it. Thanks.

Member Avatar for stultuske
0
256
Member Avatar for l_03

i dont know how to solve this problem,,it seems that i dont know how to fixed this error Exception in thread "main" java.lang.StackOverflowError please helped me,,im stack on it,, i just have a class public class ATM{ BankAccount bank = new BankAccount(); SavingsAccount savings = new SavingsAccount(); CheckingAccount checking = …

Member Avatar for stultuske
0
770
Member Avatar for sahrourr

hello i need a help, if i have a text file that contains something like this: account num name credit account type 1 sara 1000 current 2 jerry 5000 comercial i wanna get out the number in the credit coloumn to add or subtract from it and i don't know …

Member Avatar for BestJewSinceJC
0
70
Member Avatar for BestJewSinceJC

Hey, one of you guys suggested that I go on Wikipedia's page for hash tables. It was actually pretty informative. I'm pressed for time so I am doing separate chaining for my hash table because it seems like it will be one of the easiest to implement (and according to …

Member Avatar for BestJewSinceJC
0
153
Member Avatar for modiri
Member Avatar for deven1974

Hello, I'm trying complie this SortedList Program and List Java, but I'm alot errors. If someone can help with this, I really appricated. Thanks import java.util.Iterator; /* * * SortedList.java * */ public class SortedList<E extends Comparable<? super E>> extends List<E> { private int size; public SortedList(){ head = null; …

Member Avatar for Antenka
0
318
Member Avatar for khalidmehmood

Hi Experts! I am new to Java any body guide me where i can download free java lectures. best regards Khalid Mehmood

Member Avatar for Freaky_Chris
0
146
Member Avatar for l_03

hello guyzz,,,i am almost finished with my code,,but our teacher require us to access a text file..this is it: in my text file: accountList.txt 12345 1234 200000 Jerry Lopez first column was accountNumber, then the pinNumber, then the balance and the name.. what i did was... import java.io.*; public class …

Member Avatar for l_03
0
215
Member Avatar for Soloz

Ok so.. I've been trying to customize a dialog box.. I'm pretty new to this.. So this might be a stupid question.. But anyways... Code: Object [] options = {"Course I do!", "Not Really"}; int n = JOptionPane.showOptionDialog (frame, "Do you Understand?", "Easy Question", JOptionPane.YES_NO_OPTION, JOptionPane.INFORMATION_MESSAGE, null, //do not use …

Member Avatar for stultuske
0
76
Member Avatar for nanosani

If I want to add a plugin which I have designed after I have written the software ... how should I do it. Suppose I designed a word pad ... and then I designed a spell checker ... how should I add the spell checker to my word pad to …

Member Avatar for stultuske
0
179
Member Avatar for ezkonekgal

This is what i did for the factorial assignment that we had.. but i have a little trouble in my recursionFactorial method.. can anyone help? tnx public class Factorial { public static void main(String[] args) { int index = JOptionPane.showConfirmDialog(null,"Would you like to compute\n" + "for the factorial of a …

0
91
Member Avatar for ebiz

I wondered if anyone could help. I am trying to use a FileChooser in java. I have got the dialog box to appear and can select the file, but the box just displays "opening" and the file name. how to I add to the code to make it actually open …

Member Avatar for javaAddict
0
216
Member Avatar for Tyrone.Wilson

The protection on code generated in NetBeans is great. untill it gets it wrong and you have an arbitrary line protected and it totally stuffs up your code and you can not longer work on your project!! Anyone know how to temporarily remove the protection, edit what you want and …

Member Avatar for Tyrone.Wilson
0
572
Member Avatar for ebiz

I currently have a table in oracle which I have created, but need to take a text file (which I have used a fileChooser for) and then use this file to update the records in the oracle database. How would I go about this? Thanks.

Member Avatar for Ezzaral
0
156
Member Avatar for cbickle

Hey everyone im working on a class in java that does several things. it is supposed to take a sky condition either sunny snowy cloudy or rainy and a temp between -50 and 150 f. the default sky is sunny and temp is 70. it needs a method that converts …

Member Avatar for Antenka
0
898
Member Avatar for shubhang

Hi, I am new at java. I have made the search class of an address book program with the functions of add, modify and delete. Please have a look into the code. Please also explain the function of [code] e.printstacktrace();[/code] [code] import java.io.*; import java.util.*; class search { private String …

Member Avatar for Antenka
0
163
Member Avatar for lone_emu

I got most of the basics but i need help on getting all of the requirements right and EVERYTHING I NEED TO DO. Is there a way to replace certain chars without actually using str.replace();, especially punctuation? This is the assignment 1. You will create a class that will perform …

Member Avatar for Antenka
0
611
Member Avatar for alip15379

Hi everybody I'm new to this forum, and I hope I get to know you all for as long as I'm gonna be coming here. I need help with my program. basically wat i need to do is to create a program in which it check the spelling of the …

Member Avatar for Antenka
0
177
Member Avatar for shubhang

I have made this delete class of my address book program. It gives an error when I use the renameTo() function. Please look into my program. [code] import java.io.*; import java.util.*; class del { private String stru,strf; BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); public void calc()throws IOException { System.out.println("enter record to be …

Member Avatar for bondo
0
167
Member Avatar for christiangirl

I have this program all working, except in how the text looks in the file. The text is supposed to be all on different lines, but its all on the same. Here's the code: [code] import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.io.*; /* * class LogOrder * Allows user …

Member Avatar for christiangirl
0
133
Member Avatar for freaky.pandit

hey guys... i need to integrate a fingerprint sacnner into a project wchich i am developing right now. but i do not know any java api which support hardware integration...so i m in a total mess... can anyone tell me a way to integrate the fingerprint scanner in my application. …

Member Avatar for AlbertPi
0
126
Member Avatar for java_programmer

Hi all, I am a new user of struts. I have a requirement where I need more than one ActionForm against a single DispatchAction, but I am not able to handle this situation. Is it possible to have more than one ActionForm against a single DispatchAction? Thanks in advance...

Member Avatar for AlbertPi
0
140
Member Avatar for MxDev

hi guys, i'm trying to connect java application to SQL server 2005 developer edition, i used the following code which comes with the microsoft jdbc-odbc driver 1.2, after that i modify the class path to load sqljdbc_auth.dll file. import java.sql.*; import com.microsoft.sqlserver.jdbc.*; public class connectDS { public static void main(String[] …

Member Avatar for AlbertPi
-1
169
Member Avatar for tte

Hi. I've built a HttpServlet that catch a request and parse a web page using InputStream, InputStreamReader and PrintWriter changing some content along the way and output it as a response. Everything works like a charm (parsing html, css, gif, jpg, aso) except for png images. Since png's are binary …

Member Avatar for AlbertPi
0
141

The End.