32,199 Topics

Member Avatar for
Member Avatar for carrl00

i need to make the Print JMenuItem to open a printdialog box when clicked but i dont know how to make it can u help me pls p.addActionListener(new ActionListener() heres the code can u add the printdialogbox i searched but i cant put it on the program import javax.swing.*; import …

Member Avatar for M4trixSh4d0w
0
148
Member Avatar for ezra.kim.98

How can I work out these questions?? Would really appreciate your help. things like looking for things in the Hashmap. • isRally - takes a String containing a rally code as a parameter and returns true if it represents a rally object stored in the allRallies collection, and false otherwise. …

Member Avatar for stultuske
0
192
Member Avatar for DevilDog22

So we are working on loops right now, I got the first portino of my program up and running how I want, took some messing around with but I finally got it. Here is my assignment: > Credit Card Number Check. The last digit of a credit card number is …

Member Avatar for stultuske
0
808
Member Avatar for RawrInYoMouth

//Hello(apologize for any formatting errors) //I am trying to finish this program that is supposed to act as a club bouncer. Only letting a max amount of people (125) in at one time. Naturally people leave throughout the night, so I was trying to //implement that with the random variable, …

Member Avatar for IIM
0
183
Member Avatar for SidNoob

Hello guys. I'm getting an error as follows: Error I get on the browser:- type Exception report message: descriptionThe server encountered an internal error () that prevented it from fulfilling this request. exception: org.apache.jasper.JasperException: PWC6033: Error in Javac compilation for JSP PWC6199: Generated servlet error: string:///GuestBookView_jsp.java:8: cannot find symbol symbol …

Member Avatar for LastMitch
0
228
Member Avatar for anisha.silva

HI, I have a class Customer and Vehicle. Fist a customer needs to be added to the application. when a vehicle is being added the customer id needs to be added also so i wrote the code as below @Override public void addVehicle( String make, String model, String year, String …

Member Avatar for anisha.silva
0
332
Member Avatar for HankReardon

Hello, What is the best way to check my code? I have written a program that counts the swaps required to sort an integer array using the Bubble, Selection, Insertion and Quick sort methods. How can I be absolutely certain that my swap counts are correct? Will someone take a …

Member Avatar for HankReardon
0
3K
Member Avatar for asifalizaman
Member Avatar for <M/>
0
210
Member Avatar for StefanRafa0

hello guys i want to make progress bar in netbeans i trying with this code but the progres bar doesnt work property just showing 100% when finish and doesnt have animation of doing that progress: public final class Music extends javax.swing.JFrame { public static class Start implements Runnable { @Override …

Member Avatar for mKorbel
0
279
Member Avatar for winnzor

So I am making a GUI that the user inputs the username and password to login to my schools website. I then want it to open up the default browser and open multiple tabs to the schools website while being logged in. I'm not entirely sure how to be logged …

Member Avatar for kindo
0
104
Member Avatar for needhelp88

Hi everyone, I have created an implementation of the game Tic Tac Toe using a board array that is 3 x 3. It reads in a turn from the user via the keyboard, and then the computer returns a move. I have written the computer AI to basically do the …

Member Avatar for needhelp88
0
371
Member Avatar for JavaGr33nh0rn

import java.io.*; import java.util.*; import java.util.Scanner; public class cooperativeCanteen60 { static Scanner console = new Scanner(System.in); static Scanner sc = new Scanner(System.in); public static void main(String[]args) { //throws java.io.IOException { Scanner in = new Scanner (System.in); int type; int discountRange; int discount; int customerType; int number; int rtotal; int vtotal; …

Member Avatar for JavaGr33nh0rn
0
254
Member Avatar for peymankop

Hi! I'm working on a notepad project and like original notepad i want the form title set by the name of the file that has been openned so how can i do that?! thanks...

Member Avatar for JamesCherrill
0
122
Member Avatar for iciaguevara

Someone try my code. And help me with the txtQty TextField. import java.awt.*; import java.awt.event.*; import java.applet.*; import java.text.*; import javax.swing.*; public class Cashier extends Applet implements ActionListener, KeyListener { private final double applePrice = 15.75, orangePrice = 13.50, pomeloPrice = 95.25; Panel topPanel, eastPanel, westPanel; Label lblTitle, lblQty, lblTotal; …

Member Avatar for edensigauke
0
195
Member Avatar for Ralphael

I am trying to play an mp3 file using the JMF java library and an mp3 codec with the following code but i am getting an error and don know the source package source; import java.io.File; import javax.media.Format; import javax.media.Manager; import javax.media.MediaLocator; import javax.media.Player; import javax.media.PlugInManager; import javax.media.format.AudioFormat; import javax.media.*; …

Member Avatar for stultuske
0
966
Member Avatar for iciaguevara

This is the output: https://fbcdn-sphotos-a-a.akamaihd.net/hphotos-ak-prn1/541619_462450913826230_932486202_n.jpg This happens when I input "1" in the quantity textfield. (The quantity textfield turns null after inputing a value) But when I put "1" in the quantity textfield and click Oranges, it overwrites the Apples. https://fbcdn-sphotos-g-a.akamaihd.net/hphotos-ak-ash4/299813_462450910492897_2137805386_n.jpg WHat i wanted to happen is that it'll tally …

Member Avatar for ~s.o.s~
0
242
Member Avatar for uknown2

Hi, I am trying to do a hotel system where i have written up this code, however i was wondering if the there was a way to make the main program simple. So what im trying to do is the code that ‘Views All rooms’ and ‘Adds customer to room’, …

Member Avatar for bguild
0
2K
Member Avatar for surendrak223

I have to access a java swing application which is on server machine from a java web application Please help me. I have to send few attributes tu Gui apps and in turn retrieve result from that..

Member Avatar for Whatever123
0
532
Member Avatar for ct_hunny

hello i have some problem in showing button, when data exist and data not exist. i want the button show if data exist also data not exist. my current problem right now the button only show when data exist but the button automatically hide when data not exist. here what …

Member Avatar for LastMitch
0
122
Member Avatar for TIM_M_91

OK so what I want to do is create an infinite loop scanner that will add up all the values from the previously entered values which will then produce after each entered number the total value. How do I do this?

Member Avatar for IIM
0
628
Member Avatar for uknown2

I would just like to know what is the difference between a CONSOLE APPLICATION and Windows Application in netbeans??

Member Avatar for stultuske
0
216
Member Avatar for musikluver4

Just a curious question, not important really. More for a discussion. Isn't using int i = 0; boolean count = false; pretty much the same thing when flagging? I mean when something goes right, change i = 1; count = true; and get the same result. What's the advantage of …

Member Avatar for stultuske
0
299
Member Avatar for somjit{}

code for : Percolation using Weighted Quick Union Find Algorithm. this is a homework assignment. iv made the code do what its supposed to do, and it works perfectly. The only problem im facing now is to model the code structure according to the given API. when i try to …

Member Avatar for somjit{}
0
297
Member Avatar for TIM_M_91

So what I want to do is extend my class 'TheTemplate' from my 'Squarer' class and override my abstract methods which will change the method 'isEnd' from 12 to 20. How do I do this? Code can be seen below: public class RunTemplateExample { public static void main(String[] args) { …

Member Avatar for stultuske
0
279
Member Avatar for StefanRafa0

somebody know how to make the text which is in the text field on click to disapear ex: If saying "Search" when ill click on the text field the text to disapear and i can write ... Thanks ! :)

Member Avatar for bguild
0
428
Member Avatar for rkrishnan2012

Hey guys! I will be hosting an online hackathon next weekend. Please join (50 bucks reward if you win)... In this case, you are given a theme and you need to code something relevant to that theme. The coolest program will get the prize money. You are given 24hours to …

Member Avatar for LastMitch
0
179
Member Avatar for gkaran487

I need to extract ONLY those publications from the web page http://www.informatik.uni-trier.de/~ley/pers/hd/r/Rao:Rahul.html, where the first author is Rahul Rao. I have tried the following code ,but it doesn't give me any output. for( Element element : doc.select("table span.this-person.title") ){ System.out.println(element.text()); } What do I need to get the preferred output? …

0
96
Member Avatar for StefanRafa0

how do i make to play sound in my program after turning on i tryed some codes but the song doesnt start ... I maked the song into 10 secounds but still cannot start. anyone help ?

Member Avatar for stultuske
0
181
Member Avatar for javauser1512

import java.io.*; import java.util.*; class Q9 { public static void main(String args[]) { int a,b,c; System.out.println("\n\t Enter the value of A,B & C "); Scanner sc = new Scanner(System.in); a = sc.nextInt();b = sc.nextInt(); c = sc.nextInt(); System.out.println("\nLargest = "+func(a,b,c)); } public static int func(int a,int b,int c) { if((a>=b)&&(a>=c)) …

Member Avatar for Starstreak
0
316
Member Avatar for pxmur76

Hello, I'm new to Java and GUI programming. I've just created my first simple GUI app which finds the appropriate FedEx zone based off of the zip coded entered in a text field. My question is how do I make it so the user can hit enter after entering in …

Member Avatar for stultuske
0
1K

The End.