36,051 Topics

Member Avatar for
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
179
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
118
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
243
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
96
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
177
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
119
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
87
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
104
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
104
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
584
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
107
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
262
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
73
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
490
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
107
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
218
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
56
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
328
Member Avatar for atul

hi ppl, I was wondering why my JDK 1.4 gives error for not having any such method for dispose(); if i have button b1 on my applet it shud quit the applet when i press the button b1........but the error is shown......what would b possible solution....? my function : public …

Member Avatar for atul
0
78
Member Avatar for jengels

I have a question. Below is my driver, I've already written a class. The object of the program is to report a winner and loser based on a coin flip. Heads wins. I already have if (coin1.toString()==coin2.toString()) to take care of a tie. Hoiw do I report a winner for …

Member Avatar for jengels
0
82
Member Avatar for matt_5104

Hi, i'm working on an application cosisting of 7 individual jFrame screens. I was wondering, is it possible to code a button to go back to a previous screen, without removing any data a user has entered - i.e without reloading a new version of that screen? I other words, …

Member Avatar for jwenting
0
90
Member Avatar for djm123

Hi ., I have XP, at times I look at internet options & WONDER what SHOULD/SHOULD NOT Be checked to view pages properly, can anyone expand on that for me? Also there are times when I go to the SECOND Page of something & it might not display THE PAGE …

Member Avatar for OurNation
0
80
Member Avatar for matt_5104

Hi, I'm developing a GUI with several forms, one of which contains a jLabel that displays a JPEG image of a graph as it's icon. How do I go about plotting a simple 2d curve on that image from a set of data? I know of drawLine etc, but how …

Member Avatar for server_crash
0
113
Member Avatar for jengels

I understand I can write a statement like: if==12 or if <12 but how do you write an if statement for something like, A = 90-100 B = 80-89 How do you write the if statement for that? My java book doesnt tell you how to write an if statement …

Member Avatar for jengels
0
70
Member Avatar for anchi

I want to draw a surface in Java3D and I need to set bounds (using BoundingBox, BoundingSphere, BoundinLeaf or something else) because I'm working with infinite surface (in some cases I devide with number that is very close to 0). Computer automaticly sets bounds, but I need something else (for …

Member Avatar for server_crash
0
151
Member Avatar for phragix

I declared mNodes as a String Array and try to assign a value to it with sTemp which is a String as well...but there's an error occurred as: "array required, but java.lang.String found". I don't understand why. I need some suggestion please. Thank you. String sTemp; String mNodes[][] = new …

Member Avatar for phragix
0
539
Member Avatar for Dani

[b]Declaring Objects[/b] When one works with classes, each instance of the class which is defined is known as an object. C++ is an extremely object oriented language (perhaps not so much so as Java, however). In OOP, or Object Oriented Programming, one can easily perform multiple tasks on objects which …

Member Avatar for Pmaster
0
149
Member Avatar for zigzagmolly

I am so frustrated! I too have *Microsoft update wstcl.exe on my computer since this morning. I have tried everything. System restore is disabled. I have the following in safe mode: NAV and deleted everything it found, run HJT and deleted all references, run regedit and deleted all references, stop …

Member Avatar for zigzagmolly
0
228
Member Avatar for server_crash

I had all of this program finished except for the plotting like a week ago...Ever since then, I've been trying to figure out how to plot the stupid polynomials..I thought I had it, but the program seems to go crazy whenever it's suppose to repaint..It's like repainting components on top …

Member Avatar for server_crash
0
128
Member Avatar for freesoft_2000

Hi everyone, I need to serialize the java PageFormat and PrinterJob class to the disk as objects but the thing is that none of the java classes implements serializable. I have tried implementing serializable but it does not seem to work. I know it is weird to want to serialize …

0
63
Member Avatar for ecyarter

Can anyone tell me how to get rid of console window? I'm writing a gui program for an assignment... Spoiled by VB... I use the console for troubleshooting while testing or writing code, but would like to make it invisible or close it while sharing with the class. (We run …

Member Avatar for Ghost
0
140
Member Avatar for Dools

I am new to programming and have a project due and am at a total loss. I've been sitting here reading the book for two hours and can not figure my problem out. Here is my project: You're helping Danny Ocean with his plot to rob a casino or two …

Member Avatar for tonakai
0
88
Member Avatar for freesoft_2000

Hi everyone, I have a question about doing something. I have a jtextpane that you can type text and all but i need to create something like microsoft's word 2000 in where i can view the entire print layout of the jtextpane as a print layout but also be able …

0
41
Member Avatar for George2

Hello everyone, I am wondering where does the properties retrieved from System.getProperties defined, in some system level environment variables, some files or some other repositories. I am also wondering if I retrieved a specific property from System.getProperties, could I find out where it is defined (system level environment variable, some …

0
58
Member Avatar for server_crash

I have this problem with graphics, actually I know it's with my compiler... If I try to set the background of a button or something I get erros that's not even in my code.. I have this: [Code] btnCalc.setBackground(Color.blue); [/Code] and I get theses errors [Code] //g is already defined …

Member Avatar for server_crash
0
143
Member Avatar for OurNation

I have a GUI that displays a graph and I want to have some help with a code that allows you to click a point and then another point and then it draws a line. I need some help with this because I don't know were to start. ;)

Member Avatar for server_crash
0
103
Member Avatar for tigerxx

hey guys, I have problem in printing from java i have used PrinterJob in awt but it's going mad sometimes . it's going to it's print method two times some times doesn't print anything the code is ========================================================= [code] import java.awt.print.Printable; import java.awt.print.Book; import java.awt.Graphics; import java.awt.print.PageFormat; import java.awt.print.PrinterJob; import …

0
56
Member Avatar for joeman3285

could you guys look at my hjt log? my computer's been acting weird as of late. thanks alot Logfile of HijackThis v1.99.0 Scan saved at 1:13:18 AM, on 2/22/2005 Platform: Windows XP SP2 (WinNT 5.01.2600) MSIE: Internet Explorer v6.00 SP2 (6.00.2900.2180) Running processes: C:\WINDOWS\System32\smss.exe C:\WINDOWS\system32\winlogon.exe C:\WINDOWS\system32\services.exe C:\WINDOWS\system32\lsass.exe C:\WINDOWS\system32\Ati2evxx.exe C:\WINDOWS\system32\svchost.exe C:\WINDOWS\System32\svchost.exe …

Member Avatar for crunchie
0
118
Member Avatar for ultimate_fusion

code is below int average(){ //method in class int total = 0; int NOS=5; System.out.println(""); for(int i=0;i<10;i++){ if(ID ==" "){ NOS = i; break; } total += mark;// total is the problem, tried printing it // while thefor loop was running and at the end // and its says "0" …

Member Avatar for server_crash
0
125
Member Avatar for MrScruff

Is there anyway of actually changing the length of a slider. I have a some sliders in a grid layout and im wondering wether the grid layout will stop the sliders from expanding.

Member Avatar for paradox814
0
240
Member Avatar for ultimate_fusion

I have two erros which I have tried everything to fix them C:\Documents and Settings\java:14: array required, but java.lang.String found ID[count] = ID; ^ C:\Documents and Settings\java:15: array required, but int found mark[count] = mark; heres the code class Module { String[] ID = new String[10]; int[] score = new …

Member Avatar for server_crash
0
111
Member Avatar for Jason Marceau

Hi, I am learning Java and I have decided that I should create my first project. I have the application code for a Tax calculator and I would like to add a GUI to it but I am struggling to work out how to enable the text field box to …

Member Avatar for ecyarter
0
3K
Member Avatar for benjicake

on mozille browser and IE browser cannot access certain sites like ebay, yahoo, hotmail, amazon, msn, etc. thank in advanced for your help Logfile of HijackThis v1.99.1 Scan saved at 9:04:23 PM, on 2/20/2005 Platform: Windows XP SP2 (WinNT 5.01.2600) MSIE: Internet Explorer v6.00 SP2 (6.00.2900.2180) Running processes: C:\WINDOWS\System32\smss.exe C:\WINDOWS\system32\winlogon.exe …

Member Avatar for DMR
0
112
Member Avatar for the b

Hi all, does anyone know of a good compiler I can download for java? It would be nice if it was an IDE but it does not have to be. I currently have the j2sdk-1_4 compiler [url]http://java.sun.com/j2se/1.4.1/download.html[/url] and it does not seem to work that well. Also I know that …

Member Avatar for Jason Marceau
0
260
Member Avatar for server_crash

This class is suppose to create a JPanel with a bufferedimage to draw on..I instanstiate this class from the main driver class, and it shows up fine, but I can't draw anything on the image, or even set the background color of the jpanel. Here is the class, see if …

0
93
Member Avatar for cdt1983

Hi, I have set-up a while loop to iterate an amount specified by the user. However, is it possible to compare two numbers entered by a user inside the loop and then have the larger number replace the smaller? I am having trouble because I have the first result being …

Member Avatar for cdt1983
0
117
Member Avatar for mus_203

Hi I need help with devising a method that will calculate the frequency of elements in a chain data structure. Here's an example of what the method is supposed to do. If x = [3,6, 5, 9, 4, 5, 3, 5, 5, 1, 6, 10, 3, 3, 1, 7, 5, …

Member Avatar for tonakai
0
103
Member Avatar for George2

Hello everyone, I am wondering how to use java.util.Properties to get the corresponding value of a specific key whose corresponding value is an array, and I am also wondering how to express/format an array in a properties file. For example, I have a key "friends" whose corresponding value is a …

Member Avatar for George2
0
88
Member Avatar for server_crash

I plan on writing an app that will graph polynomial expressions. My question is, what should I draw the graph on? Should I just use the regular frame and use DrawLine(), or is there something like a bitmap, or canvas thing I should use?

Member Avatar for server_crash
0
100
Member Avatar for satimis

Hi folks, I shall start my first lesson to learn Java. I found following sites/tutorials; Tutorial (search) [url]http://onesearch.sun.com/search/onesearch/index.jsp?qt=java+tutorial&uid=6910019[/url] Java Tutorial [url]http://java.sun.com/docs/books/tutorial/[/url] [url]http://java.sun.com/docs/books/tutorial/information/download.html[/url] Java Tutorial Books [url]http://java.sun.com/docs/books/tutorial/book.html[/url] Java Tutorial Sites [url]http://java.sun.com/[/url] Java Tutorial, Trailmap [url]http://java.sun.com/docs/books/tutorial/trailmap.html[/url] Training [url]http://training.sun.com/[/url] Kindly advise which of them shall I stick to at start. Are there any …

Member Avatar for satimis
0
166

The End.