36,051 Topics
![]() | |
I have a netbeans demo program with clasess and libraries the whole bit. I need to understand these lines of code because I need to click on the button I added:caputure the string in the jtextbox;put it into a query and put the resultset into a list and then display … | |
Dear friends, I have a piece of code that looks like this: JOptionPane.showMessageDialog(null,"List of Tax Payers for year 2006 (Sorted with NRIC):" + printList() ); However, the compile error was this: 'void' type not allowed here case 1 : JOptionPane.showMessageDialog(null,"List of Tax Payers for year 2006 (Sorted with NRIC):" +printList() … | |
Does anybody know how to make a parser???A program that checks wether the entered expression is correct or not..If the expression lacks a parentheses if that is needed in the expression, or invalid operator..etc... | |
Hey guys I've got a JText field set up and i append strings to the JTextField but im wondering how to invidually set the color of each string that i append? I've taken a look at the JLabel class and I did come up with the idea that I could … | |
hey hi to everyone im new in the site bout i thin its cool but the reason i am writing is that i have a home work in java and i have no idea how to do it can someone help me??????? a matrix in wich a number moves some … ![]() | |
[CODE] class Queue { int front, rear, max, size; int items[]; public Queue (int s) { front = rear = -1; max=5; size=0; items = new int [max]; } // should we still include the "front" in this section? public boolean enqueue (int x) { if (size==max) return false; else … | |
Hi everyone. I need an application that loads a window to the top of the screen -1 inch height. The window should be always on top, but here is the catch. Every other window should appear below it. I.e no window should be covered by my small window above and … | |
hi all, i want to access an application from the domain server. is there any possible way to do this task. if possible tell some idea with examples. Advance thanks. hidash | |
How do you display a drop down box with a resultset in a loop? I just get a sql exception with my current servlet code. any help appreciated Thanks [CODE] out.println("Select Reading List"); out.println("<select name=" + rs1.getString("degree")+ ">"); while(rs1.next()){ out.println("<option value=" + rs1.getString("idcol") + ">" + rs1.getString("degree") + "</option>"); } … | |
So I'm in the final days of being able to turn this in, yes it is a homework assignment, but I've almost got it completely done. In fact I'm only having issues with like the last 8 lines. (at least that's all that is causing an error right now.) Here … ![]() | |
Hi I'm trying to create more attractive UI in JSP. I want a mouse over hyperlink popup menu for my page navigations. If there is anyone who knows how it's done please help me out. | |
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 … | |
Is it possible to get the key value of any property file through JSP.. Let me explain.. I have following keys in my application.properties file. it has my.a=http://apple.com my.b=http://ball.com my.c=http://cat.com Now i want to access this from my jsp.. i tried to access like this.. <fmt:message id="alphabets" key="my.a" /> I … | |
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. | |
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) | |
i want to check the pid for a newly created process. i asked somebody they told to check it in the java native interface. but i didnt get the clear solution for this problem. can anyone is there to clear my problem.. | |
Hi everybody. First of all happy new year to all. Secondly, I am 3 months into learning Java and GUI and I am having some trouble with comparing strings. I am doing hangman and I have a text field set up for when the player wants to guess the entire … | |
Hi it would be great help if anybody can guide me through this Question Problem: Find the least cost path between two nodes in a graph. The input for building the node graph for the problem will be in the format as below. Enter Nodes and Weight (Q to terminate): … | |
how to code a function to send an email to a predetermine email address. I developt a sample but i got som error message due to mailhost . the error is showen in attached file. can anyone say me how to solve this problem. i tried several mailhost, but it … | |
hi pls tell me how to connect database pool of db2 from a jsp page | |
how to get output for this code. class a { public static void main(String args[]) { for (int i=0;i<args.Length();i++) System.out.println(args[i]); } } how can i give input for this code at netbean5.0 | |
Any direction someone could point me in for auto-sizing only the last (right-most) column in a jtable? I want the user to be able to set the size of columns and be allowed to set them beyond the scrollable viewing area, but if the viewing area is wider than the … |
The End.