32,199 Topics

Member Avatar for
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
173
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
215
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
173
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
345
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
104
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
193
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
380
Member Avatar for sejpal.dipesh

Hi, I have web application which is hosted on apache and develop in java, now how can I access that application running on the server from other client in the LAN. Please help me. Thank You.

0
33
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
63
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
213
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
175
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
63
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
127
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
Member Avatar for jrookie

Hi, I'm trying to write a program right now that requires inheritance. I understand the concept and what I'm supposed to do, but I'm having trouble with the syntax. I created a class called student and created its methods and attributes, and then I created a constructor called student. Next …

Member Avatar for JamesCherrill
0
113
Member Avatar for tkpanther

Hello everyone, It has been a while since I last logged on. It has been a while since I really needed any major help in programming. But I am here now and I do need a bit of help. Let me start off by saying that I have tried to …

Member Avatar for tkpanther
0
3K
Member Avatar for 2brite

HELP Please - I have hit a wall in trying to get the following perl created web page to work correctly. It is designed to find all the pictures (.jpg) in all folders below the designated one and to then display them in individual slideshows. I have a version of …

Member Avatar for mitchems
0
120
Member Avatar for sciprog1
Member Avatar for sciprog1
0
76
Member Avatar for rcossy1023

I am trying to write a dropout stack/queue using a Linked List, I have already done the code for Arrays but I am coming across a problem. I do not understand doubly linked list, specifically creating a pointer the previous. I believe I have done the push correctly (5 being …

0
57
Member Avatar for shrutinr

Hi.. I m haiving problem in retrieving selected data from combobox of servlet page . I have combobox in servlet and want to display selected value in d same page.. please help me to resolve this problem.. Here is my code: PrintWriter pw=response.getWriter(); pw.write("<h1>Welcome to Shopping cart</h1>"); pw.write("<form name=myform method=post>"); …

0
73
Member Avatar for lotrsimp12345

TITLE SHOULD ACTUALLY BE: how to get mouselistener to work on method in an class in java If I click a circle it should change the color of the circle. But, I am having difficult getting it to work. Help appreciated. Main just calls this class and calls the init …

Member Avatar for quuba
0
264
Member Avatar for ceyesuma

Hello. I am not sure how this is supposed to work. I need to find a file that will be in a folder data/gm in my package. If I move the program around is there a way to have the program find its new absolute path [icode].getAbsolutePath()[/icode] from its path …

0
72
Member Avatar for warook

So We will create a java program but i don't know how to start it. We should use OOP in this one. And there should be minimum of 3 classes (including the main).. Buy n’ Sell An electronics and appliance store would like to install a kiosk for customer use. …

Member Avatar for peter_budo
0
109
Member Avatar for warook

So We will create a java program but i don't know how to start it. We should use OOP in this one. And there should be minimum of 3 classes (including the main).. Buy n’ Sell An electronics and appliance store would like to install a kiosk for customer use. …

Member Avatar for JamesCherrill
0
316
Member Avatar for maxamillian

im new to java and need help with this code. i need to show stars to represent the numbers which have been entered. so far my for loop is only showing the one star, how can i get it to show the number of stars which represent the amount of …

Member Avatar for jon.kiparsky
0
80
Member Avatar for mangeshminal

I want to create linked list of type LinkedList<LinkedList<Integer>>. I plan to take integer values from user (via console), create a linkedlist by adding the values. Create multiple such linked lists and then create a master linkedlist which will have individual linked lists as its elements. Example: User types 1 …

Member Avatar for quuba
0
100
Member Avatar for sToXiC

Hello all. I have a string, e.g. "Testing" and I try to convert it to byte but I get a NumberFormatException. I tried with (byte), Byte.Parsebyte. Any help? thanks

Member Avatar for sToXiC
0
155
Member Avatar for Sunshineserene

The End.