32,199 Topics

Member Avatar for
Member Avatar for Ambislm

I have 3 combobox in my index.jsp file. I have filled first 2 combobox with data's from database... Now i have to fill 3rd combobox with the values which i have in java file such as: [code=Java]private static String[] types = { "Vehicle Reporting", "Vehicle Revisits", "RO - JDP Count" …

Member Avatar for Ambislm
0
211
Member Avatar for coco24

Hello all: The task is to: Create a row of Alien attackers, class RowOfAlien, patterned after the partially filled array. Put five Aliens in the row. When the row hits the left or right of the screen, the Aliens snake downwards (see demo). Note that this is different from the …

Member Avatar for coil
0
177
Member Avatar for ndkv

I have problem how to calculate mutiple checkboxes on the panel. ex: 24 roses with a bear: This costs $72 or 1000 points and $12. 14 Lilies: $24 or 360 points [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; import javax.swing.border.*; import java.io.*; import java.text.NumberFormat; public class customerInfoGUI extends JFrame …

Member Avatar for quuba
0
1K
Member Avatar for nitins60

Hello friends, I am new to java and enum use. Actually I need to give only 3 options to customer for Payment Type. So i thought of using enum and making the limited members of Payment [CODE]enum PaymentType { CHEQUE, CREDITCARD, CASH }; public void Customer(String name, PaymentType paymentType) { …

Member Avatar for quuba
0
104
Member Avatar for adams161

I'm a little self taught at java. I have a package: package: package org.newdawn.spaceinvaders there's folders like org and newdawn are created and nested. the main is Game.java at end of those folders. How do i run it? i went to the end folder and typed java Game that didn't …

Member Avatar for adams161
0
89
Member Avatar for ems11

Hi i am in the final stages of my hangman program and need some pointers. I've gotten to a point where i am stuck and need a fresh pair of eyes to help me go over some of my problems any advice given will be greatly appreciated. [CODE]import java.util.*; import …

Member Avatar for jon.kiparsky
0
130
Member Avatar for shiftee

Hi all, I have a simple question that I can't find the answer to i'm using the following Exam.java (interface) ExamImpl.java (implementation) ExamFactory.java (interface) ExamFactoryImpl.java (implementation) The ExamFactory interface says the newExam() method return type is "Exam" The ExamFactoryImpl code currently returns "ExamImpl" Is this a problem?? i.e. Are Exam …

Member Avatar for JamesCherrill
0
280
Member Avatar for Sal Shah

PLEASE COULD YOU HELP ME IN CREATING A DOT GAME IN JAVA? ******************************************************* THIS IS MY ASSIGNMENT *************************************************** Design and develop an interactive visual 'stand‐alone' event‐driven Java application implementing the “Dots Game”. This is a two‐player game in which each player clicks in turn on a dot from a matrix …

Member Avatar for Sal Shah
0
114
Member Avatar for akinfemi

string.indexOf(letter) checks for the first occurence. what can check for all occurences public class Hangman extends ConsoleProgram { private static final int MAX_NUMBER = 9; private RandomGenerator rgen = new RandomGenerator(); HangmanLexicon lexicon = new HangmanLexicon (); private static boolean end; private HangmanCanvas canvas; private static int x = 30; …

Member Avatar for JavaDad
0
230
Member Avatar for DallasFan3

[ICODE]Ok, I am typing up a program in which will play hangman with a user. I have done most of the program, but I have to let the program randomly choose a word from the list of words stored in your array. Afterwards, it should clear the screen and display …

Member Avatar for JavaDad
0
409
Member Avatar for DallasFan3

Ok, Iam now doing my last assignment for my class. Thank god. lol Well I have to make a problem that will write an interactive Java program that allows the user to play the game of Hangman with words that are given to me from a file. Here is what …

Member Avatar for jon.kiparsky
0
614
Member Avatar for ajst

Hi, I'm trying to use JAVA GUI for first time. I've got a Jframe that when loaded adds a jpanel. the problem is it will not show any swing controls that get added to the jPanel. I'm using netbeans 6.9.1. any idea to why is happerning would be greatful [CODE] …

Member Avatar for JamesCherrill
0
3K
Member Avatar for rcogq7

* This program inputs ten integers and * displays the mode using parallel arrays. * Use a method to calculate the mode. This is my specs. I cannot figure out a solution as to how to find the mode using only two arrays. Help would be gratefully appreciated

Member Avatar for JamesCherrill
0
98
Member Avatar for ndkv

I have problem how to calculate mutiple checkboxes on the panel. ex: 24 roses with a bear: This costs $72 or 1000 points and $12. 14 Lilies: $24 or 360 points [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; import javax.swing.border.*; import java.io.*; import java.text.NumberFormat; public class customerInfoGUI extends JFrame …

0
59
Member Avatar for mallak alrooh

Hello Friends I have This important question about implementing double link list I have done it but it dosenot work , please try to find what is wrong.. Thank you but I need this work queckly... [COLOR="red"]CLASS LINK LIST:-[/COLOR] [ICODE]public class LinkList { [I][/I] public class LinkedList<T> { private DoubleLinkList<T> …

Member Avatar for mallak alrooh
0
116
Member Avatar for reyarita

guys good day!! i need ure help with this problem. we are going to make a program. 1. Store first memory location og program into base register (for memory protection). 2. Set program counter (it keeps track of memory space used by the program) equal to address of first memory …

Member Avatar for reyarita
0
91
Member Avatar for urlstwohim

I have two classes.CyberLibraray and CyberBook These are the requirements: Design a CyberLibrary class which houses CyberBooks. Because of local laws, the CyberLibrary class has a limitation: the maximum number of books is 200. The CyberLibrary has the following constructors: Constructor #1: the default - Creates a CyberLibrary with the …

Member Avatar for urlstwohim
0
4K
Member Avatar for sivaprakashm

[code]abstract class foo { abstract void bar( ); // <-- this is ok abstract static void bar2(); //<-- this isn't why? } [/code]why can't I define an abstract static method?

Member Avatar for masijade
0
137
Member Avatar for ceyesuma

Hello. I have search my app for all classes to implement java.io.Serializable. I think that the needed classes are covered.I create and serialize JInternalFrames. When I re-open a JInternalFrame some of the JMenuItems do not do thier job. Also when I right click the Tabs on the JTabbedPane to bring …

Member Avatar for ceyesuma
0
89
Member Avatar for blknmld69

I am having a problem get my program to compile. [B]ERROR[/B] Stopwatch.java:35: cannot find symbol symbol : method start() location: class Timer timer.start(); ^ Stopwatch.java:44: cannot find symbol symbol : method stop() location: class Timer timer.stop(); ^ Stopwatch.java:52: cannot find symbol symbol : constructor Timer(int,Stopwatch) location: class Timer timer = …

Member Avatar for JamesCherrill
0
649
Member Avatar for incubus9x9

Please dont tell me to "google" it obviously I'v tried everything and this is my last resort. k thanks :) ok so I have to set a value to be restricted in the constructor ___________ Modify the constructor and set methods of the Shape class to verify the values of …

Member Avatar for seanbp
0
204
Member Avatar for rayden150

its a basic calculator that sums number and i want to make a GUI for it but i dont know where i messed up please help [CODE] import java.util.Scanner; import javax.swing.*; public class Sum { public static void main (String args []){ Scanner result = new Scanner(System.in); int num1; int …

Member Avatar for masijade
0
86
Member Avatar for spades0001

I was reading and researching about adding color into my program. I found this code, which compiles perfectly, but does not show the desired outcome. Here's the code: [code] import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; import java.awt.Color; import java.awt.Graphics; public class Login extends JFrame implements ActionListener{ private JTextField …

Member Avatar for masijade
-1
117
Member Avatar for Awesomeness

I want to remove all the spaces, carriage returns, and "comments" (the text inside the <>'s) from this document: I tried the regular expression [ICODE]( )|(\n)(|<.*>)[/ICODE], but that removes everything but the [ICODE]-1[/ICODE] at the end. It doesn't do that if I remove the [ICODE]|(<.*>)[/ICODE], but then it doesn't remove …

Member Avatar for masijade
0
95
Member Avatar for ejsuarez

Hi! I'm new around here and I'm not quite sure how this works, but the main reason I subscribe to this web page is because I'm looking for someone who can write a program for me. I've done a little bit of it, probably 10% or less but I need …

Member Avatar for ejsuarez
0
110
Member Avatar for adityagarwal

[CODE]public void takeGuess () throws IOException { temp=" "; Hangman obj = new Hangman(); System.out.println ("Enter a character or type in 'hint' for a hint!"); DataInputStream input=new DataInputStream(System.in); temp= input.readLine(); if (temp.length()==1) { guess=temp.charAt(0); if ((guess >= 'a' && guess <='z') || (guess >='A' && guess <='Z')) {System.out.println();} else {System.out.println …

Member Avatar for jon.kiparsky
0
499
Member Avatar for serph09

The question asks: Enhance the [I]addInterest[/I] method of the [I]SavingsAccount[/I] class to compute the interest on the minimum balance since the last call to [I]addInterest[/I]. [I]Hint[/I]: You need to modify the withdraw method as well, and you need to add an instance variable to remember the minimum balance. (Oh, and …

0
97
Member Avatar for SerialSpiller

Here's what I got so far. I am trying to add the two fractions together while following the UML. I attached the assignment to this as well. I have no Idea how to create the add method. It's for an online class, and this one is just killing me. Thank …

Member Avatar for jane010794
0
1K
Member Avatar for red7devil

Hi guys, im facing a real problem with a project im doing at the moment as Im new to Java. Ive set all the buttons for the program however, i need to make the pictures show randomly. also, il need to make some buttons work, like the nudge button for …

Member Avatar for sirlink99
0
148
Member Avatar for Mattan360

Hi! I'm trying to login to my website throught my program, to do that I need a password and username. The password is encrypted using C# SHA256 but on the server it uses an javascript code I got from the web. My problem is that my C# Hash differs in …

Member Avatar for kvprajapati
0
2K

The End.