32,204 Topics
| |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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.. | |
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. | |
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 … | |
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) … | |
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.. | |
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. | |
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 … | |
hi guys, what is the difference between the Window and JWindow classes and Frame and JFrame in java thanx. | |
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. | |
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, | |
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 … | |
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 … | |
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; /** * … | |
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 … | |
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 … | |
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; … | |
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 … | |
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 | |
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: … | |
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) |
The End.