32,199 Topics
| |
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. … | |
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 … | |
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 … | |
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 … | |
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. | |
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 … | |
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] … | |
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 … | |
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. | |
[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] | |
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 … | |
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 … | |
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 … | |
public int getInput() throws IOException ........more codes here in between return activity;//activity is an array The error is this: '.class' expected | |
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? | |
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 … | |
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 … | |
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 … | |
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 … | |
Hello Members, Is there a way to make a JDialog unmovable? Thank you! | |
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 … | |
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>"); … | |
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 … | |
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 … | |
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. … | |
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. … | |
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 … | |
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 … | |
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 | |
May I know how to find the largest number in an array? |
The End.