32,204 Topics

Member Avatar for
Member Avatar for RoflNinja

Hello again, got another Java question. I am trying to draw an oval from the Alien class to the Canvas in the Game class. Here is the code [CODE]import javax.swing.*; import java.awt.*; /** * The Evil Ovals! * * @author Eric Foertsch * @version Nov 2009(1.0.0a) */ public class Alien …

Member Avatar for adams161
0
554
Member Avatar for Philip435

Hey I need some help with my java game Im making. I wont to have an menu with 4 options, startgame, highscore, option and quit. They quit button is easy I just setVisible(false) but when i click on the other buttons I wont to remove the buttons and include new …

Member Avatar for Ezzaral
0
114
Member Avatar for smoothe19

welll it is just a program that generates 2 random numbers for the user...the user inputs their answer and if it is correct it adds 1pt to their score. But then it is also supposed to generate a new problem, but I do not know how to code that in. …

Member Avatar for smoothe19
0
131
Member Avatar for smart.java6

Hi! Dear Friends.. Can you please help me to answer : Can mutation testing be successfully used in an industrial environment? Thanks!

Member Avatar for gusano79
0
75
Member Avatar for Nagarajan.M

please tell me the reason for the error.[code]new Double("25D"); // Ok new Long("25L"); // Error[/code]

Member Avatar for majestic0110
0
77
Member Avatar for schandru

I need java program for SHA message digest and encrytion and decryption in RSA

Member Avatar for UIT
-3
127
Member Avatar for MxDev

Hi guy, I writing a simple syntax highlighting code which has loop due to comparisons of the reserved keyword against the input text , the code is a little bit processor hungry so, I decided to put the expensive loop on a separate thread, but with no good, in addition …

Member Avatar for masijade
0
88
Member Avatar for emcee123

Guys newbie here, I need your help. I need to create a program that will compute for the following entered values and will determine the equivalent grade: Formulas: Midterm Quizzes = 30% Midterm CS = 20% Midterm Exam = 50% Final Quizzes = 40% Final CS = 10% Final Exam …

Member Avatar for emcee123
-1
111
Member Avatar for Ryujin89

I have an program that allows a user to input their employee name and number and then their hourly wage and their total number of regular hours and overtime hours. Then writes out the data to a binary file. The program I need assistance with reads in that file, adds …

Member Avatar for AndreiDMS
0
244
Member Avatar for Nightryno

Hello, I am hoping that somebody can help to provide some guidance on this for me. I am tasked with writing this class for a Java class I'm taking: Write a class encapsulating the concept of coins, assuming that coins have the following attributes: a number of quarters, a number …

Member Avatar for JamesCherrill
0
228
Member Avatar for adams161

I"ve thought i have noticed some strange behavior after compiling. most of the time i compile the class files update with my changes. Now and then i feel i need to delete my class files in the folder and do essentially a rebuild all to make the program start working …

Member Avatar for masijade
0
104
Member Avatar for andypop

Hello Daniweb, I am working on a program, a basic poker game. I've run into a problem I can't seem to solve for the life of me, after hours of googling I thought I'd ask here. I have a Dealer class that basically controls the back end of the came, …

Member Avatar for BestJewSinceJC
0
3K
Member Avatar for JavaOwnsMe

Hey guys and gals, So for my Java class, (which I have been struggling all semester with) we are supposed to break down a code and say which park of the code does what and why. I selected a simple program that creates a bar graph. If anyone could give …

Member Avatar for BestJewSinceJC
0
157
Member Avatar for Murderality

Hi there, I'm relatively new and I'm making a program that reads reads a txt. file stores it in an array, validates and finally displays back. However I'm not getting the desired display when I tell my program to display txt. file contents, I get some of the correct content …

0
60
Member Avatar for Himerz

Hi all, I cant get my brain around the logic of making a check box add a specific color when it is checked. Also, when the other boxes are check, it will add that color to the selected color as well. here is my code: [CODE]import java.awt.BorderLayout; import java.awt.Color; import …

Member Avatar for adams161
0
98
Member Avatar for joewazen

Hello, I have an interface containing a table, i need to link that table to the DB Table so that it will automatically reflect the changes done in the DB Table to the Interface table. i.e: if someone (manually or another WEB Application) updated the DB table i want the …

Member Avatar for MxDev
0
141
Member Avatar for YingKang

I am writing a java applet that calculate heat index and wind chill. it requires the user to input temperature , wind speed and humidity, and then let the user choose either Metric ( kph, °C) or English (mph, °F) I have some problems with the code. First, the Calculate …

Member Avatar for YingKang
0
122
Member Avatar for glenlivet

I'm pretty new to java but have lots of coding experience with ruby, c and gui with gtk2 and qt. I'm trying to understand (and get rid of) the dead space to the far left portion of the window. The split panes have white backgrounds to separate it from the …

Member Avatar for glenlivet
0
184
Member Avatar for arunjassiar

Hi Guys, any one can reply me on if we can do some thing like in java or not sure for example [url]http://www.screentoaster.com/[/url] click on ?start recording?. [url]http://screenr.com/[/url] click on ?Record your screen cast now? [url]http://www.screencast-o-matic.com/[/url] click on ?Create? button. , basically i want transparent frame on top of any …

0
51
Member Avatar for adams161

Hi, I'm doing a bouncing ball game. i'm using y=mx + b I want to know when y hits certain numbers. that means it had a collision. the numbers are whole numbers like 539 etc. I increment Y slowly because i also want to not let x move much. when …

Member Avatar for adams161
0
89
Member Avatar for Archenemie

Ive been told that i can make Iphone Apps using java, but what IDE/File Extension/Code Structure do i use? can i simply use a converter program to swap my current java code into an iphone App or would i need to code from scratch? Any and all advice is greatly …

Member Avatar for jbennet
0
117
Member Avatar for intelnf09

I am taking an IT course and need help desperately. I have referred to several different resources and am having a hard time grasping OOP. I came across this site and thought I should give it a try. Please bear with me I am new to the site. I am …

Member Avatar for intelnf09
0
124
Member Avatar for mahkris
Member Avatar for peter_budo
0
35
Member Avatar for paolo_romeo13

Hi hoping for some help with what is wrong with my code. Basically i have 2 sets of arrays that need to be compared. I'm creating a computer shop so there is a set of arrays giving descriptions of the computer like CPU speed etc and there is another set …

0
53
Member Avatar for Beasts

I have a main class that sets up a blank JFrame, it adds a method from the GUI class I made... that takes 4 arguments, all arraylist… so the first arraylists sent are empty. Then in my game I made a “guiInstance” that calls the same GUI method. It is …

0
53
Member Avatar for Antenka

Hello, everybody. I had a problem while connecting to Oracle. Got messages: [QUOTE=Error]ORA-00604: error occurred at recursive SQL level 1 ORA-12705: Cannot access NLS data files or invalid environment specified[/QUOTE] And found solution for this - setting the default locale in java code: [code=java] Locale.setDefault(Locale.US); [/code] This works just fine …

Member Avatar for Antenka
0
143
Member Avatar for Perveance

Hello, I'm trying to create Frame with 2 JButtons and 1 JList. Buttons are Add and Remove. After clicking Add button JFileChooser creates and user choses a file. The file then must to be added to the JList. [CODE]public class GmFrame extends JFrame { private JButton bAdd; private JButton bRemove; …

Member Avatar for Perveance
0
241
Member Avatar for Sarah-perkins

Can you help me modify this program so that it contains loops within loops somewhere. I have a while loop but that is only one. To pass my task my program MUST contain Loops Within Loops somewhere. Thank you. [code] import javax.swing.*; class team { public static void main (String[] …

0
45
Member Avatar for NickT80

I have this simple project that I'm sure has come throught here before. I am take input from a user using JOptionPane, make sure it is >15 Chars, and count the uppercase. Here is what I have so far. I am having trouble setting the first loop correctly. [CODE] import …

Member Avatar for MxDev
0
130
Member Avatar for poorquality

I'm currently trying to create a client program that sends location variables (x and y) to a server, which then passes it on to another client and vice versa so when one client moves the object, the other client see's the change immediately on screen. I think get and set …

Member Avatar for poorquality
0
136

The End.