35,618 Topics

Member Avatar for
Member Avatar for shane1987

hey all I found out today I needed to do a testdriver for my programme as we no it took me forever to do the programme so will some one explain the test driver to me or even help me I no this is a silly thing but im so …

Member Avatar for shane1987
-1
153
Member Avatar for wowz

i have absolutely no idea what to do, can someone explain the steps, or do it and explain what they did? [CODE]/** A purse has an array list of coin names that can be changed by adding coins. */ public class Purse { //instance variables private String[] coins; //the money …

Member Avatar for javaAddict
0
102
Member Avatar for theo23

hi,i would like to make a simple hotel.Firstly,I created a simple form(with no validations etc) but i don't know how when i press Submit button then this details to save in a database using Mysql. Can anyone tell me how to do this this? <br> [code]<%-- Document : StartPage Created …

Member Avatar for javaAddict
0
173
Member Avatar for sylvestri89

Please help me. I am in an intro computer programming class and I dont know how to use arrays. [url]http://i196.photobucket.com/albums/aa228/Sylvestri89/problem.jpg[/url]

Member Avatar for apines
0
123
Member Avatar for sijothomas

Dear friends my name is Sijo Thomas , now i would like to design an application for accessing a centralized database through a software in java(java used in software and J2EE in webapplication) That means i want to access a data from a centralized database by querying through a software …

Member Avatar for masijade
0
64
Member Avatar for sri.k

Hi this is sri and i am new to java.Here is a xml file. My task is to parse all the xml elements in java without using any parser like dom,sax. So pls help me[U] how to parse xml elements without parsers[/U].I have to get same out put as when …

Member Avatar for sri.k
0
198
Member Avatar for fregley

I'm relatively new to java, so please bear with me. Anyway, I've written a program that makes use of both images and audio, and I'm trying to package these into the .jar file. My goal is to be able to run the program without requiring any files besides the jar. …

Member Avatar for fregley
0
239
Member Avatar for lisy

Hi I need to create a [B]desktop shorcut to run my application [/B]locally in my PC, I need to [B]launch my web application using Java Web Start in Netbeans IDE[/B], i googled on this particular topic but it says in the project properties window, go to Application --> Enable web …

0
54
Member Avatar for cocoll

hello! i need your help to know which checkbox cause the event: i have 2 checkboxes and 2 radiobutton (in swing),then i add the 2 checkboxes to a buttongroup and the 2 radiobutton to a buttongroup,so as default 1 checkbox and 1 radiobutton are selected,so when i check other radiobutton …

Member Avatar for Ezzaral
0
89
Member Avatar for sciprog1

Hello Members, The following problem has troubled me for sometime now: I have an applet called FileA.java. It has two classes both of which are JPanels. Both these JPanels are then added to the applet in the public class of FileA.java. I use BlueJ. The program works well offline on …

Member Avatar for sciprog1
0
98
Member Avatar for sahib28
Member Avatar for jon.kiparsky
0
59
Member Avatar for markhowe56

i have a problem with a photocopying machine task i need to right class called photocopier and add the code to create the instance variables powerStatus, an integer instance variable ( -1= standby, 0=Off and 1 =On) letter, a string instance variable for (none, general, form,menu and paper) copying a …

Member Avatar for masijade
0
99
Member Avatar for starfruit

hi,everyone I try to make one software like microsoft office power point ,but i had problem 1)how to insert image(background) into JPanel (SLIDE)using JButton 2)how to preview the slide THANKS A LOT

Member Avatar for Ezzaral
0
39
Member Avatar for LianaN

How could I synchronise the timer with some process that runs during X seconds. I need the timer to count seconds only if the process is running. If the process is terminated, then the timer must stop. [COLOR="Red"]Most important is that the process execution time is not known apriori.[/COLOR] Otherwise, …

Member Avatar for LianaN
0
220
Member Avatar for hazeeel

Hey guys! Much help needed here! I am a student doing a protein structure alignment algorithm which is my final year project, using various forms of translation, rotation & computing the RMSD. From line 164: This is my loop calculation, basically it computes the Root Mean Square Deviation (RMSD) of …

Member Avatar for hazeeel
0
176
Member Avatar for Pokenerd

I know this is strange, but i have a simple syntax question. Right now I'm working with a thread in the following format. The use of "setDaemon" in the run function does not work, as you apparently must set Daemon before you start the thread. [ICODE]new Thread() { @Override public …

Member Avatar for Pokenerd
0
141
Member Avatar for Misklahr

Hi I'm new to java, and I'm trying to make a very basic game. The problem is that i have 3 classes that cooperates and I can't get one of the values from class "Board.java" to "gp1.java". In Board i have a button that "rolls the dice" x2 and adds …

Member Avatar for Misklahr
0
358
Member Avatar for Dhanish

hi to all....i have a video club system where am using an sql server to store records about films....i successfully created the database, the table and input data data into the database using the SQL Command window in netbeans.....however when i use the JOption Pane to input data the VideoName …

0
62
Member Avatar for ceyesuma

Hello I am not sure what is getting serialized. I would like to serialize a JInternalFrame. So what do I send my SaveFrame.java. because it puts a file "null.dat" in the folder. I sent the frame got null.dat sent something I thought was the class of the frame (as shown …

Member Avatar for ceyesuma
0
145
Member Avatar for dhanh90

I have the problem like that ". Write a short Java program that outputs all possible strings formed by using the character ‘c’, ‘a’,’r’, ‘b’, ‘o’ , and ‘n’ exactly one."..and the code here: [CODE]public class StringPermutation { //---------------------------------------------------------------------------- private static char source[] = {'c', 'a', 'r', 'b', 'o', 'n'}; …

Member Avatar for apines
0
427
Member Avatar for jengels

I have an assignment to write a java class. What I need to do is write a class and a driver. I need to write a class that stores instance data as members names. Golfmember(name : String) then in the driver I would have something like: golfer1 = new Golfmember(); …

Member Avatar for apines
0
163
Member Avatar for icccapital

I am wanting to have a select box populate from a database query based on the information pulled from another select box as the user chooses it (ie a user chooses a state and the city choices populate or something like that). I am using JSP, Servlets and Beans. Seems …

Member Avatar for icccapital
0
184
Member Avatar for sariberri

This might be a stupid question but I can't figure out how to set my array equal to my method which returns an array. This is what I did and there's an error. :/ [CODE]array=array.resize();[/CODE] Thanks guys

Member Avatar for apines
0
115
Member Avatar for merse

I've made an empty mynote.txt in the same directory, and open the following code with Internet Explorer, and allow to write on hard disk (when IE asked) but nothing in the text file: mynote.txt after the run. what is the problem? [CODE]<html> <body> <script type="text/javascript"> function WriteFile() { var fh …

Member Avatar for peter_budo
-1
91
Member Avatar for shane1987

Array of Random Numbers Write a program called Random50 that fills an array with fifty random values between 1 and 999. However, before a random value is entered into the array the program must check that the number generated is not already in the array. If it is already present …

Member Avatar for lee.j.baxter
-1
5K
Member Avatar for appooti

[code]import java.io.*; import java.io.File; import java.net.*; import java.net.UnknownHostException; import java.net.InetAddress; public class Rfc{ protected String ip; protected int host; public BufferedReader reader; protected PrintWriter writer; public static void main(String[] args){ try{InetAddress address = InetAddress.getLocalHost(); String ip = address.getHostAddress(); System.out.println(ip); }catch(Exception e){ System.out.println("error2"+e); } Rfc rfc =new Rfc(ip,80); rfc.setUpConnection(); String s …

Member Avatar for apines
0
128
Member Avatar for LianaN

Hi! I want to create a stopwatch that will counter seconds starting from 0. This code worked in case of a real time counter (using Calendar). However, now the counter is fixed on 0. Does anybody know what could cause an error? Thanks! [CODE] timer = new javax.swing.Timer(1000, new ActionListener() …

Member Avatar for apines
0
103
Member Avatar for adamleefe

Hey, so far i have created some code that reads a text file and outputs the information if i run it in eclipse and i now want to have an option when it runs to either show the information in plainscript or html, how would i do this does anyone …

0
59
Member Avatar for Dean_Grobler

Hi there, In my little code snipet below I am trying to convert an arraylist to an array of type contact. Obviously it's expecting an arraylist of type contact to convert it to an array of type contact. But it's picking up the arraylist as type object for some reason. …

Member Avatar for Dean_Grobler
0
139
Member Avatar for yap_1991

hi all i have 2 files one of which is a gui, the other a java file. I need to take my gui input and put it through the java file. How do i do that? I've tried calling the classes but the input just doesnt seem to be going …

Member Avatar for yap_1991
-1
156

The End.