31,001 Topics

Member Avatar for
Member Avatar for Khodz

I've been writing a piece of code that will use a brute force approach to find 50 exponential equations that fit 5 points (x,y) that i've entered. The code is fine and works without a glitch.. The problem is when i try to make it keep a record of the …

0
106
Member Avatar for riahc3

Hey Im having a hard trouble drawing in a Java window so if there is a plugin that shows the coordinates in a Java window when I hover my mouse over that spot it would make my coordinate easier.

Member Avatar for adams161
0
183
Member Avatar for dusty_tomorrow

I really need help with a project that I have to write for my intro to Java programming class. I have absolutely no idea what to do or how to do it. I would appreciate any help or starts on the code or maybe, just maybe, a code for this …

Member Avatar for griswolf
0
133
Member Avatar for ShadoX

Hello all, I need to make a PdfPTable with some cells being split or merged into one. The problem is that I can't seem to find a way of doing that. Could someone please help me with this? I spent the last hour on Google and couldn't find anything.. :( …

0
35
Member Avatar for infinitus

Hello i'm having a problem with a program. Let me tell you first what program should do. The program should allow the tutor to enter in the various marks which the students have been awarded, until the tutor enters in a mark exceeding 100. At this point the program should …

Member Avatar for jon.kiparsky
0
447
Member Avatar for McCurry0x77

In an assignment, I have to use four different files in a single program. I know doing so has something to do with inheritance (which we're studying now), but I don't understand how to write each file to use the others. How do I use multiple files in this single …

Member Avatar for hanvyj
0
3K
Member Avatar for sweety_sharma

hello..everyone i m new to this website .i need your advice for project topic.. as i m begineer in java.. plz suggest some gud topics.. waiting for your reply... plz help me....

Member Avatar for masijade
-2
170
Member Avatar for NightFire91

Having problems with completing this code to a working program and running it. What is the final value of sum? What is the value of i when the loop terminates? [CODE]public class SumLargestToSmallest { int n = 2147483647; float old_sum = (float) 0.0; float sum = (float) 1.0; // already …

Member Avatar for NightFire91
0
83
Member Avatar for Him3

Hi all, I want to grab frames from video. (I want multiple frames from a video) using Java. I have tried with the code that is there on sun site. but it doesn't work(as it is for grabbing frames from web cam). If any body knows then reply asap. Thanks …

Member Avatar for peter_budo
0
118
Member Avatar for Ron2794

I am having a project that I have written in Java and now I want to convert that into .exe file so that it can be run on any windows platform. My project is a database connectivity project and I have used Mysql as the backend application I want that …

Member Avatar for peter_budo
0
109
Member Avatar for tylerjgarland

[B]This is a homework question[/B] I am attempting to write a hash function that will evenly distribute 20 randomly selected census name into 20 buckets. I may have up to three collisions of two each. [CODE] public int hashCode(Contact c) { // TODO Auto-generated method stub int result = 0; …

Member Avatar for mrnutty
-1
167
Member Avatar for hamste

Hi all! I'm new to Daniweb and to programming. I'm learning Java with the book Java how to program 7th edition. I'm stuck at an exercise where I'm supposed to create three objects that each inputs an hourly rate, number of hours, and a name for the employee given by …

Member Avatar for jon.kiparsky
0
206
Member Avatar for rowen17

these are the classes that i am going to add to my jar file: TestRegform, LogIn, LogIn$AccountInfo, and regForm. I have manifest.txt that contains: Main-Class: TestRegform (new line) then I typed this in the command line: D:\Project>jar cvfm Registration.jar manifest.txt *.class then, these came out: added manifest adding: LogIn$AccountInfo.class(in = …

0
139
Member Avatar for curbster

Hi all, I am in my first Java class at the local community college but my class is online and my teacher takes DAYS to respond via email. I need some help with my homework and thought I would try here. I'm not looking for someone to give me the …

Member Avatar for curbster
0
882
Member Avatar for phantomD

Hi, first post on the site and I hope I'll explain this properly: I'm tasked with creating a TicTacToe Applet using a JButton array. What I can't figure out is the problem I'm having with either setText or getSource (last bit of code). Can someone point out what I've done …

Member Avatar for phantomD
0
242
Member Avatar for jjemphoung

Good day! I'm a newbie in java and I'm using Netbeans 6.9.1 as my IDE. I want to connect the system that I'm developing to the MySQL 5.0 database in the WAMP installed in my computer. I already configured my MySQL by following several steps I found in netbeans.org tutorial. …

Member Avatar for datavirtue
0
172
Member Avatar for aanders5

Ok, so first off this code is insanely messy and very very long. So if anyone has any ideas on how I can reduce all the variables and make it just run nicer that would be nice. I have been trying many different types of layouts and saving forms and …

Member Avatar for aanders5
0
214
Member Avatar for bangor_boy

Hi, I have write a method to save amounts, the method has 1 argument which is where the amounts returned by a toString should be saved as text. I have no idea what to do and my searching on google or text books has been not helpful :( [CODE]public void …

Member Avatar for jon.kiparsky
0
125
Member Avatar for mikev9359

I am trying to change a program from an IF loop to a WHILE loop. The program started in Ch.05. It was modified in Ch.06 to an IF loop & now must be changed to a WHILE. I got it down to 2 errors and am totally lost. Maybe a …

Member Avatar for jon.kiparsky
0
162
Member Avatar for iammet

I NEED TO KNOW HOW TO GET THE CHOSEN RADIO BUTTON.MAYBE THE COUNTERPART OF getText FOR RADIO BUTTON... I HAVE ONLY MALE AND FEMALE.

Member Avatar for ajst
0
337
Member Avatar for gedas

hey guys, i have been asked to create a little web service. i have a very little understanding of how web services work but as far as im told is that all of my GUI has to be on client side and the logic of the program needs to be …

Member Avatar for gedas
0
103
Member Avatar for skylight25

Hi all, my problem is that i want to block my main frame when i call a JDialog! i try several things but cant! I use this to call the JDialog [CODE]public void showAboutBox() { if (info == null) { info = new Informacion(this);//call my jDialog info.setLocationRelativeTo(this); } info.setVisible(true); }[/CODE] …

Member Avatar for Dean_Grobler
0
183
Member Avatar for DARK_BYTE

Hi I have to develop an algorithm visualization tool for my project. I divided my tool into these 4 modules below: [QUOTE]The tool will be divided into 4 modules: -The GUI -The Visualisation module -The Calculate module -The Compile module The GUI the GUI class is the class that forms …

Member Avatar for JamesCherrill
0
377
Member Avatar for suger

[COLOR="Green"]Hi guys Can anyone show me some pieces of pseudo code to show how to drag the shape to move to anywhere when the mouse is released? Thanks heaps[/COLOR]

0
62
Member Avatar for lprk94

Hey everyone! So, I'm making a hangman game. I'm at the very beginning stages so I just have a String array and just to make sure it works correctly I want to print a random word from the array - simple, right? I am running into an error - the …

Member Avatar for lprk94
0
211
Member Avatar for rowen17

after compiling it this errors came out, what do u think is the possible solution for this? thanks! Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 9 at accountinfo.<init>(Main.java:73) at accountinfo.main(Main.java:142) [CODE] import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.io.*; class accountinfo implements ActionListener { private JFrame f3; private JButton jLogout; private JPanel …

Member Avatar for rowen17
0
173
Member Avatar for rcossy1023

Sorry about the double post but i dont know if you can delete posts? Anyway I need to have a circular linked stack where after 5 pushs the 6th push goes into front and replaces the data starting at front and going back. So theoretically if I put in a …

0
62
Member Avatar for Ja9mc

public int getInput() throws IOException ........more codes here in between return activity;//activity is an array The error is this: '.class' expected

Member Avatar for Ja9mc
-1
126
Member Avatar for rocku2008

i m not very clear about constructors,and different types of variables like:instance variables,local variables,etc,setter and getters. can u plz help me to distingush between all of them with examples?

Member Avatar for adams161
0
56
Member Avatar for Evanp

Hey, I've been working on a space invaders program for a class, and have gotten all of code correct except the collision that removes the sprite entity upon being hit. the RowofAlien code [CODE]import java.awt.Graphics; import java.awt.Image; // You do not have to throw an exception if an index is …

0
51

The End.