32,199 Topics

Member Avatar for
Member Avatar for Darkfoxx

Hi, I'm working on a simulation that uses a fish in a 1x5 "fish tube" matrix. The fish (this symbol: ">=)" ) moves randomly around the tube and the number of "bumps" against the top, bottom, right, and left sides are counted. What I want to do is this: Turn …

Member Avatar for jwenting
0
174
Member Avatar for MrScruff

Yeah for some reason - on my main prog i click a button brings up a little display window to show a few details. But when i move this window. it goes black :S Any ideas?

Member Avatar for server_crash
0
139
Member Avatar for Ghost

Hi everybody, I was wondering if it is possible (and if it is, how to do it) to put a JPasswordField into a JOptionPane. Thanks in advanced, C++

Member Avatar for server_crash
0
173
Member Avatar for AQWst

Can someone help me create a rounding routine? I have some mathematical calculations being done in a program that the final result is a double. The only trouble is, is when I want to display it, there are too many digits appearing. I have searched the Sun web site and …

Member Avatar for paradox814
0
609
Member Avatar for Dahlia

Hi everyone,i really hope you can assist with the following problem that i have been having,how do i add components to JApplets,what are the methods tha i should use for the task?

Member Avatar for paradox814
0
1K
Member Avatar for the b

Hi, I am supposed to write a program for a school assignment that asks the user to enter the amount of coins, and then output the amount in quarters, dimes, nickels, and pennies. That was easy enough, but I found out that I need to use a constuctor to initialize …

Member Avatar for Meldroz
0
324
Member Avatar for server_crash

My applet is not showing up in a web page, and all of the code is correct... I'll post it and the html code: [Code] // import all need packages import java.awt.*; import javax.swing.*; import java.awt.event.*; import java.applet.*; //extend JFrame for the user interface and actionlistener for events public class …

Member Avatar for server_crash
0
104
Member Avatar for Kaone

I am doing a visual traffic simulation project and i have the named problem in my main class.How do you solve it.the problem occurs in the following segment of the program:The roadDesigner,roadNetwork andsimPanel symbols cannot be resolve.(The problem starts at the bolded part of the program) [code] import java.awt.BorderLayout; import …

Member Avatar for Narue
0
297
Member Avatar for freesoft_2000

Hi everyone, I have an easy question but i can't seem to get it right. Bear with me. I have a buffered image where i would like to draw a rectangle around that buffered image. The thing is i need the thickness of the rectangle to be of a certain …

Member Avatar for Narue
0
97
Member Avatar for Juliane123

Hey guys, I need your help. I need to write a Java program for a simulation for a lottery. I got so far as I got numbers and everything. But how can i make sure that there is no number going to be there twice? Thanks for your help Julie

Member Avatar for Narue
0
1K
Member Avatar for Nashii

HI, I have problem cant open some pop up window as in links. Here's my system: AMD XP 2600 1.94GHz 514 Mb ram window XP professional 2002 SP2 IE ver 6 Some website that I've allowed pop up but not getting all pop ups to be opened. I've tried hold …

0
85
Member Avatar for Ghost

Hi: I made a java app. (with 3 windows) and I was wondering if there was a way to close two of the three forms (except one window) without closing the entire application (All 3 windows). Thanx in advanced, C++

Member Avatar for server_crash
0
136
Member Avatar for voodoolive

1. Problem Descriptions: People living in a Pacific island like to play four games. These games are similar to our lottery games. One of the games is play 6 that is to randomly pick 6 different numbers between 1 and 56 including both numbers. The second game is play 5 …

Member Avatar for jwenting
0
176
Member Avatar for server_crash

Does anyone know a good tutorial on parsing math equations? I would use google, but I don't know what to search.

Member Avatar for jwenting
0
115
Member Avatar for SyLk

im having problems figuring out how to print this array in reverse.I believe it might be a logical issue. I don't want the answer. I'm thinkin my row must be initialized to the matrix.length. can someone give me a few hints as to go about this. public static void printMatrixReverse(int …

Member Avatar for Narue
0
241
Member Avatar for Ghost

Hi everybody, I was making an application that continuosly loads a Java String into a TextField in another program and then hits enter (hits the enter button in the external application) and then reeats the process. Can you tell me how 2 do this? Thanx, C++

Member Avatar for Ghost
0
93
Member Avatar for sye

i have no problems linking forms in microsoft visual j++ but linking a form previously created to anything other than a form gives me problems

Member Avatar for jwenting
0
174
Member Avatar for George2

Hello everyone, I am using HTTP protocol to transfer large amount of data across two machines. And I have found out that some packages will be lost when using the following source codes. I am wondering whether there are anything wrong or potential issues in them. Data request [Code] URLConnection …

Member Avatar for George2
0
117
Member Avatar for statc

hi, i was wondering if anyone could help me out? i have this project in my java class where i need to format an integer to a string with commas (ex:1000000->1,000,000) using recursion. I've tried it for 4 class periods and i just can't figure it out. If you feel …

Member Avatar for server_crash
0
82
Member Avatar for ZEEPLE

I am writing a simple statistical calculation program....I was wondering how do I package this so it is an executable from the desktop with an Icon to execute the program..It is written in java.....

Member Avatar for paradox814
0
99
Member Avatar for milaco8318

I have recently come in touch with the JAVA and I was wondering if somebody can help me with the console window code. Thanks in advance P.S - Also, when typing the code into the JBuilder, where does it go? Does it go straightafter: package XX; Thanks,

Member Avatar for server_crash
0
100
Member Avatar for SyLk

can someone explain to me how i can pass the array "test" and the int "total" back to the main by reference. public static void CalculateAverage() throws IOException { int[] test=new int[7]; int count; int total=0; for (count = 0;count < 5; count++) { test[count] = Integer.parseInt(tokenizer.nextToken()); total = test[count] …

Member Avatar for Narue
0
583
Member Avatar for tat2dlady

Does anyone know how to stop a Java thread? I am not very familiar with Java and am not really sure exactly what I am doing. I have to create the necessary classes to facilitate an indirect blocking and non-blocking communication environment between threads (producers and consumers) using a bounded …

Member Avatar for jwenting
0
104
Member Avatar for Ghost

Hi: I'm writing my own programming language and I wanted to be able to save the code. When I compile i get this error message: "cml.java": cannot resolve symbol: constructor cml (int[],int[],java.lang.String)in class cml at line 439, column 13 Here's the code: [CODE]//Cinnamon Machine Language Compiler import javax.swing.*; import javax.swing.event.*; …

Member Avatar for server_crash
0
257
Member Avatar for MrScruff

Hey guys, I can set the font of a label just fine. However I want to set the font of the text on a button. Alas JButton only takes a string as a parameter for the text on the button. Any ideas what i can do? Thanks for the help …

Member Avatar for server_crash
0
70
Member Avatar for SyLk

currently my program only reads in the one first name and last name with 5 grades and computes the average from the first line of my input file. eg. Albert Lake 54 23 54 32 12 average test score 35 im trying to edit this code so that the file …

Member Avatar for SyLk
0
487
Member Avatar for walljoshua

I am writing a program that has a membership class. Each Membership object contains details of a person's name, and the month and year in which they joined the club. All membership details are filled out when a Membership object is created. Then there is a club class that has …

Member Avatar for Narue
0
101
Member Avatar for AQWst

I have created a GUI Java menu using a pull down menu in which I want to have the date and time show up. I am currently getting null for my time value and I think it is because I am not refreshing this each time I calculate my time …

Member Avatar for AQWst
0
215
Member Avatar for grajeshmsc

I needs to create DSN on ODBC thru java ...[i'm using oracle 8i] So please help me out a perfect solution... Regards GR

Member Avatar for jwenting
0
54
Member Avatar for Steph102

Hi. I was on my laptop and I have had Trend Micro's program about a month now. Everything has been fine. I never took the Norton Anti off though. So all the sudden Trend Micro is popping up alerts like mad that a virus called JAVA OPENSTR.A is appearing in …

Member Avatar for crunchie
0
324

The End.