32,204 Topics

Member Avatar for
Member Avatar for muddpigeon

hey there, i have recently started a java program for uni, and have a rough idea of where to start but need a wee nudge in the right direction. the program is for a company who sell tables chairs etc, and i have to implement the part of the system …

Member Avatar for Phaelax
0
80
Member Avatar for snitch321

how would i incorperate multi-threads in my coding to make the last section all execute at the same time(ive highlighted the last section): /** * draw a balloon on to a canvas * then to make them fly * * @author (chris twaits) * @version (12/10/07) */ public class Balloons …

Member Avatar for Ezzaral
0
179
Member Avatar for snitch321

sorry to be a nuisance, but ive solved my other problems but now come acropt another one. The problem is that the line highlighted has an error message saying '<identifier> expected' . What do i do to solve it? /** * create an input temperature gauge. * * @author (chris …

Member Avatar for snitch321
0
119
Member Avatar for ceyesuma

I am writing a program to display a mysql database. I have added a search button. I would like to have someone look at the program,click search (it will display the contents of the database) then if possible break down the logical steps to take to 1click search 2capture the …

Member Avatar for lovely12
0
74
Member Avatar for ceyesuma

How can I create a new query and a new List to hold a resultset? I have tried by using the follong code in the class below [code] @Action public Task search() { return new SearchTask(getApplication()); } private class SearchTask extends Task { private String searchQuery; private List searchList; SearchTask(org.jdesktop.application.Application …

0
51
Member Avatar for qacompenguit

Hey guys i'm new to java and this is the first time i'm posting a question on daniweb so please bear with me ... I have made a quiz for a school project and its almost done save a high scoring mechanism. What i want is first ask the user …

Member Avatar for PoovenM
0
2K
Member Avatar for Mr.UNOwen

Hello, I'm creating a program that will be dealing with multiple objects that extend Applet and a JFrame that will be displaying them. I created a test that swiched off between two applets I made. While I was creating the test, I noticed some things and have few questions regarding …

Member Avatar for ajaypatel
0
721
Member Avatar for mexaros

I am recently out of college and two friends and I have decided started creating a system for a law firm. One of our objectives is to create a file type for this system that is encrypted until a password is entered when accessed outside of the system(ie if they …

Member Avatar for jwenting
0
112
Member Avatar for the.alchemist

Hello, I'm currently developping a GUI OpenVPN wrapper in Java ( platform is WinXP ). I'm having a problem when I launch OpenVPN using Java Runtime.getRuntime().exec(), a problem I have been trying to solve for the 2 past days but in vein :yawn: Here is the code I'm using to …

Member Avatar for obdobion
0
233
Member Avatar for AceKnocks

I have been given this interface, [code] interface BinarySearchTree { public void insert(Integer data); public int size(); public int height(); public boolean contains(Integer target); } [/code] and I have to implement BST with all these functions. I have implemented the first insert and size like this way - [code] class …

Member Avatar for Narue
0
860
Member Avatar for tactfulsaint

I need a full code snipet. I have a this Applet thats all about selling music online but want a code to enable me play a song in the app. Would appreciate a lil help Thanks..

Member Avatar for Ezzaral
0
83
Member Avatar for MxDev

hi guys, i'm asking how to clear the system clipboard, by means there's nothing to paste it from the clipboard after you finishing copying a file..... how to acheive this in java... thanx.

Member Avatar for jbennet
0
120
Member Avatar for new_2_java

Hi all, In my project I have several classes. In some of my classes, I have to use an instances of my other classes. When I compile my class, which has a reference to another classe, it gives me an error. like this. [code] C:\MyProject>javac SomeClass.java SomeClass.java:9: cannot resolve symbol …

Member Avatar for new_2_java
0
108
Member Avatar for bops

As part of my University coursework I have to implement a simulation of a desert island with 2 sharks swimming around it in opposite directions and when a button (I have chosen the island) is clicked, the sharks should change their direction. As of now I have 2 sharks (cones) …

Member Avatar for bops
0
130
Member Avatar for babyfrostie

how can i bubble sort a txt file with some text in it? and then an output txt file should be created to show how much time the bubble sort took to finish the job... thanks..

Member Avatar for PoovenM
0
137
Member Avatar for onsir

hi, help me, how to make limit input only two decimal, i used jformattedtext. example : if i input more than two decimal in jformattedtext, then it can't and automatically delete by backspace. thanks for your help.

Member Avatar for PoovenM
0
190
Member Avatar for mamanbeti

want to know what u thing??? name: sara name:miky name:ducky code:1345X code:2238Y code:7569Z IF THE USER ENTERS WRONG NAME THE SYSTEM ASKS TO RE-ENTER. THE SYSTEM ONLY ALLOWS THREE CONSECTIVE ATTEMPTS.AFTER CORRECT NAME ENTERED THE SYSTEM ASKS FOR ALPHANUMERIC CODE WHICH AGAIN SYSTEM ALLOWS ONLY THREE CONSECTIVE ATTEMPTS. IF THE …

0
76
Member Avatar for MxDev

hi guys, what is the difference between the Window and JWindow classes and Frame and JFrame in java thanx.

Member Avatar for Ezzaral
0
90
Member Avatar for shimul_13

Hi I am new in java. It is quite hard to code cpu scheduling algorithm SJF(preemtive and nonpreemtive) with a class pcb, ready queue.Thanks all.

Member Avatar for jwenting
0
97
Member Avatar for TankMontna

Im trying to move an object, but I want the object to move every couple of seconds. I heared of the java script "time" or "timer" But im not sure how it goes.. Thanks,

Member Avatar for Ezzaral
0
275
Member Avatar for mamanbeti

hi thankyou very much to the person who replied me. you have asked for the combination the combinations are: name: sara name:miky name:ducky code:1345X code:2238Y code:7569Z IF THE USER ENTERS WRONG NAME THE SYSTEM ASKS TO RE-ENTER. THE SYSTEM ONLY ALLOWS THREE CONSECTIVE ATTEMPTS.AFTER CORRECT NAME ENTERED THE SYSTEM ASKS …

Member Avatar for mamanbeti
0
96
Member Avatar for PL.P27

Hi everybody. First of all thanks for taking the time to read this. I'm having a problem with initializing the buttons and adding them to JPanel. The problem is with everything else I have I'm trying to add the buttons in initButtons(); to the JPanel but I can't seem to …

Member Avatar for PL.P27
0
170
Member Avatar for snitch321

does anyone know how to fix the problem here;(it says 'Public void input(int)' that line has a problem? /** * Write a description of class randommizer here. * * @author (your name) * @version (a version number or a date) */ public class temperature { private int input; /** * …

Member Avatar for snitch321
0
94
Member Avatar for snitch321

sry to those whose tried to help before and would thank anyone who knows how to move the different shapes of my project to gether at the same time, so it looks lik balloons flying? could anyone help? /** * draw a balloon on to a canvas * * @author …

Member Avatar for snitch321
0
1K
Member Avatar for arunpawar

This sounds absurd to some developers here cause you'll say just create jar file and distributre to usr but sometimes there is not possiblity of having runtime environment in windows computers.So if we can bundle the enviroment and the setup together then packing into exe and then distribute like most …

Member Avatar for masijade
0
206
Member Avatar for sara_84

package dex.compiler.parser; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List; import dex.compiler.model.base.Place; import dex.compiler.model.expression.Call; import dex.compiler.model.expression.DirectCall; import dex.compiler.model.expression.Expression; import dex.compiler.model.expression.IdentifierExpression; import dex.compiler.model.expression.Infix; import dex.compiler.model.statement.Assignment; import dex.compiler.model.statement.Block; import dex.compiler.model.statement.CallStatement; import dex.compiler.model.statement.CatchBlock; import dex.compiler.model.statement.Comment; import dex.compiler.model.statement.Declaration; import dex.compiler.model.statement.DecrementStatement; import dex.compiler.model.statement.ForStatement; import dex.compiler.model.statement.IfStatement; import dex.compiler.model.statement.IncrementStatement; import dex.compiler.model.statement.ReturnStatement; import dex.compiler.model.statement.Statement; import dex.compiler.model.statement.SwitchCase; import dex.compiler.model.statement.SwitchStatement; …

Member Avatar for peter_budo
-1
82
Member Avatar for ceyesuma

Can any one look at the error message and give me an idea of how to begin to resolve it? Thanks Cannot add Jar dist/ContacApp.jar to this module as it is. Make a library wrapper module for it and add that as a dependency. I am using netbeans and adding …

Member Avatar for ceyesuma
0
69
Member Avatar for slayer10

ok i dont know if this is really java but if looking for a good java flash tutorial and possible download (if necessary), plz help

Member Avatar for slayer10
0
56
Member Avatar for freddiecool

Hi can anyone help me i get an illegal start of expression public static void main everytime i try to compile.My code is below. Thanks... public static void main (String []args){ PrylDialog pd=new PrylDialog(); System.out.println("Welcome!!!!! "); int option=0; do{ option=pd.kommando(); switch(option){ case 1:pd.skapaPerson(); break; case 2: pd.skapaPryl(); break; case 3: …

Member Avatar for freddiecool
0
231
Member Avatar for sara_84

please, i need a java code that convert if statement to switch statement (Contrarily) and convert for statement to while statement (Contrarily). ( deal with nested statement)

Member Avatar for Jishnu
0
189

The End.