32,199 Topics

Member Avatar for
Member Avatar for OffbeatPatriot

To keep things simple I have a spreadsheet that lists x and y values. I'm not sure how many of these data points there are but 13.5 million is a safe lower bound. Anyway, I wrote a program to parse this file and plot the points in jfreechart and the …

Member Avatar for kvprajapati
0
122
Member Avatar for sciocosmist

Greetings, I was wondering if someone could teach me how to run an executable in java. I have written a Java program that fills out some information, but I need to run a file that is normally run from a command prompt that is an executable. If someone could tell …

Member Avatar for peter_budo
0
5K
Member Avatar for iamsmooth

So my binary search tree doesn't seem to be traversing through all the nodes. each node has references to other nodes. So I'm traversing through right or left (depending on value) until I hit null, which means I can insert. After insertion, I reset root to first so it can …

Member Avatar for iamsmooth
0
122
Member Avatar for Stefano Mtangoo

Hi all, I'm just starting Java and have read some tutorials and reading also thinking in Java and I see it is a good language. I have a question though, what are MINIMUM requirement of ANY Java program for it to run?

Member Avatar for Stefano Mtangoo
0
120
Member Avatar for Tactical Fart

I'm trying to fetch and display an online image in a GUI. The method will "target" an online image (like [url]http://www.site.com/picture.jpg[/url]) and put it in the GUI. Also, I will need to be able to replace the image with another when the need arises. Any ideas?

0
68
Member Avatar for estefania

This program is a game which allows the user to play against a computer in a dice game called ``Pig''. Rules are: * Players alternate turns and try to be the first to reach 100 points. * A turn consists of rolling a die repeatedly until either a 1 is …

0
56
Member Avatar for icreamed

AHHH so i've been writing this code with my teachers help. IT will now be able to get 1 coordinate, but i want it to get teh same number of coordinates, i set my shipsize to.. waht can i do...my teacher said I could do a loop... but.... i couldnt …

0
75
Member Avatar for _dragonwolf_

This project is similar to, but not exactly like, my phonetic project. I am having to construct a GUI and have done so. I have been able to get everything except one part. What I need it to do is: 1) User inputs a string (this part works) 2) When …

Member Avatar for _dragonwolf_
0
241
Member Avatar for kjavaapclass

I am making a tic-tac-toe game and I am scanning in the players name and piece in the viewer. How am I able to access that in the component class? I am not able to put a method in my viewer, so I can't say getPlayer of getPiece, but there …

Member Avatar for santiagozky
0
72
Member Avatar for Bluesilver

I am trying to write a method that accepts two integer parameters and returns their average as a float, but for some reason it is only returning a double. I am quite sure that there needs to be "f" after the resulting value, but it's not showing up. Can someone …

Member Avatar for Bluesilver
0
141
Member Avatar for gibson.nathan

what i am trying to do is take alot of information and use it to calculate a persons carbon footprint based on a list of things that are in the second class of my program. im trying to make everything very easy to read program wise. im doing this assignment …

Member Avatar for gibson.nathan
0
122
Member Avatar for bkafroboy69

public boolean addEvent(int year, int month, int day, int hour, int minute, int duration, String what); This will return true if the event was added and false otherwise. Only valid events will be added to the list. i kind of understand what im suppose to do but i just cant …

Member Avatar for bkafroboy69
0
124
Member Avatar for nonshatter

Can anyone shed some light on these errors? [CODE] public void FaultHandler () { int faultCount = 0; while ( faultCount < 4 ) { DatagramPacket request = new DatagramPacket(requestArray, requestArray.length, aHost, proxyPort); aSocket.send(request); try { aSocket.setSoTimeout(4000); aSocket.receive(reply); } catch ( SocketTimeoutException e ) { faultCount++; continue; } catch ( …

Member Avatar for Cronless
0
211
Member Avatar for shroomiin

Hello everyone. I am required to write a simple code that reads 10 numbers and displays the largest and last number entered. I thought i would be able to do this easily but for some reason the numbers wont get assigned to the variables like i thought. [code] import java.util.Scanner; …

Member Avatar for shroomiin
0
162
Member Avatar for jaison2

hi, i want to be able to draw two eyes with are exactly the same in radius and colour etc next to eachother. So when i open the window the pair of eyes are there in the centre. I have managed to get one eye but i dnt have a …

Member Avatar for jaison2
0
128
Member Avatar for Rahul002

Hello, I want to create database on SQL Server using Javascript and HTML. User will input following data. Server Name, Database name, File Sizes. When I will click "Submit" button database should be created on Selected server with entered name. I am using Client side HTML and Javascript. we need …

Member Avatar for kplcjl
0
474
Member Avatar for Potty391

Hi all, I've been working on a Java guessing game, similar to hangman which rewards you with a picture using the Gogga class (developed by the people who wrote my IT textbook for Grade 10, also I removed gogga for this website, since I doubt you'd be able to find …

0
198
Member Avatar for skelator

Hi, I'm new here. I have been looking around for the last few months. Very new to java and I need help with this assignment. I am to program hangman, I know that this has been asked multiple times. I just cannot seem to find the answers that I need. …

Member Avatar for skelator
0
142
Member Avatar for skiplatte

I'm getting StringIndexOutOfBoundsException when I try to reasign the value of a variable. [icode]protString = protString.substring(newRPos+1, input.length());[/icode] I understand that this is something I would rather not do... but as I don't know the index of newRPos I can't think of another way to iterate. Thanks

Member Avatar for masijade
0
95
Member Avatar for realdrouin

I have a simple program. On the left I have a tree view (obout) very good by the way, and a grid on the right. In my cs file, I wrote a class for the grid. I pass a value and the grid is populated. When I click on a …

Member Avatar for RunTimeError
0
107
Member Avatar for 2Mas

I have an int table, consisting of 7 ints, and is wondering if there is any way of avoiding the same int to be entered twice. And if entering the same int twice, the user of the program would have to re-enter the int again. this is what i've got …

Member Avatar for quuba
0
105
Member Avatar for Sandar Khin

Hi all. pls help me.I repair a program for my need.At that time Text are not appear.Original progarm is here. [code] import java.awt.Color; import java.awt.Dimension; import java.awt.Rectangle; import java.awt.Toolkit; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.io.IOException; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.Timer; public class MarqueeFrame …

Member Avatar for Ezzaral
0
164
Member Avatar for iamsmooth

Just wondering what the difference is. I don't think I need to post my code, but basically for my assignment, I have stubs for a binary search tree. There are nodes created in the constructor, and among them are: Node parent Node predecessor Node sucessor Node right Node left Is …

Member Avatar for quuba
0
127
Member Avatar for P00dle

Hi, I have stumbled on an interesting problem. I have thought 'n' thought, but haven't come up with any good ideas of how to handle this. I have a text file that contains many records, but without the records being seperated. I need to figure out how to seperate these …

Member Avatar for P00dle
0
141
Member Avatar for jrosh

I want to knw whether I can access WAMP 's function (of course mysql) such as export & import programatically. (I am using java) or as mysql commands??? Thanks

Member Avatar for peter_budo
0
92
Member Avatar for rakheeindia

plz help me in resolving a error:applet started:applet not initialized [code=java] import java.awt.*; import java.awt.Button; import java.awt.Label; import java.awt.TextField; import java.applet.*; import java.applet.Applet; import java.awt.event.*; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; //<applet code="prg9.class" height=600 width=500> </applet> public class prg9 extends Applet implements ActionListener { String str=" "; TextField tf[ ] = new …

Member Avatar for rakheeindia
0
74
Member Avatar for Jishnu

Hello, I've downloaded the setup of Netbeans-6 IDE JavaSE for Windows from Sun's website. When I run the setup, it says, "Error starting program: A required .DLL file, USERENV.DLL, was not found". Has anyone faced this problem before? Please guide me.

Member Avatar for jbennet
0
117
Member Avatar for smartdetect

v got a final year proj. which reqs us to build a network monitoring kinda tool initially we are just planning to do a basic boot failure detection of the client m/cs....atleast for this semester....then add better functionalities to it. 1) can anyone suggest how do v go about doin …

Member Avatar for ddbhai
0
167
Member Avatar for ushi324

Hi All, Please tell me a good research idea to do a good project for my final year within 6 months. This is for my BSc Software Engineering degree. Its going to be an individual project and it would be great if its a research idea. :S I'm good in …

Member Avatar for manishmannan
0
112
Member Avatar for vortex24

Hi, I am working on code to have a drop down menu from which you can pick items and add a button with that course. Unfortunetally, I can't get the button to display. And help is greatly appreciated. [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; public class ComboBoxFrame extends JFrame { …

Member Avatar for BestJewSinceJC
0
90

The End.