32,199 Topics
| |
Can anyone tell me what this error may mean? I can't figure it out. "javascript.ISException unknown name" | |
I need a little help converting my GUI panel into JButtons instead of text for some parts [code] //Davina Moore //TempConverterPanel //November 6, 2008 import java.awt.*; import java.awt.event.*; import javax.swing.*; public class TempConverterPanel extends JPanel { private JLabel input, results_f, results_c; private JButton output; private JTextField fahrenheit, celsius; public TempConverterPanel() … | |
Dear All, I've three questions. Kindly answer these. 1. Why we use enableEvents() method? 2. Can a GUI component handle its own events? If yes; then how? 3. Which technique/concept can be use to implement multiple inheritances in java? | |
Hi how are you all?hope fine I need quick help please, i'm a computer science student, in fourth year,and i should have a graduation project,the problem is i cannot find a good idea yet, so i need a quick help. i think a bout something in "java applet" ' but … | |
Hello everyone. I wanted to know how I could create a simple time restriction variable. For example making private double hour; not go over 2:59. Basically I don't want someone to be able to input a number greater than :59 in a Jtextfield. I can do a time application, but … | |
Hi, all.. Does anybody have experiencing on store the spoken word into database? For example, when the program hear the voice spoken by some person, the program can store the spoken word into the database? The database system use is MySQL. Anybody have any idea on it? | |
I don't know how to word this very well, so please bear with me... Is there any way to get a java program to respond in different ways to the results of other programs? Like, if an integer in the other program (not written in Java) is greater than say, … | |
I have a project where i am having to create a doubly link list of persons, with lastname, firstname, and id number. Basically, how do I implement my compareTo method in my add method of dbl list ??? thanks in advance. Here is my person class: [code=java] public class Person … | |
I am using a for loop and i want to print anwer vertically with the number. but rite now i am getting the answer horizontally i also \n but no luck below is the code. public String getMultiStringInformation(int num, String str) throws RemoteException { String result = "\n"; for ( … | |
I am building an apllication.In that i need to save a text typed in text area to a file.so when i open save dialog box and input a file name that is already present in the folder it prompts whether you want to replace the file or not.After answering "no" … | |
Fig.2.7: Inventory.java [code=java] // Inventory program import java.util.Arrays; import java.util.Comparator; import java.util.Scanner; import javax.swing.JOptionPane; public class Inventory { private static double totInventoryValue = 0; public static void main( String arg[] ){ product invProd[] = new product[3]; Scanner input = new Scanner( System.in ); for (int iter = 0; iter < … | |
please i am a final year student in one of the universities in UK and and i am developing a school portal for a secondary school as my final year project and the portal b/c of time i have narrowed to down the scope of the project to only handle … | |
how database can be created during runtime in java | |
Hi i have been trying to write a code that takes a picture and gets the odd valued pixels and turns them red, and also get the even values pixels and make them brighter. I am stuck and any help would be appriciated. [CODE]/** * Decrypt.java * Starter file for … | |
[code=java] public class GameOfLife implements GameInterface { private boolean[][] originalMap, // The initial cell configuration map, // The current cell configuration newMap; // The next generation configuration private GameGUI gui; private int generation = 0; private FileIO fileIO; // GameOfLife constructor public GameOfLife() { originalMap = new boolean[MAX_ROWS][MAX_COLS]; map = … | |
im trying to time stamp this code to plot a graph base on different array size eg 100 0.454sec 1000 0.467sec etc but so far im only getting 0's no matter the array size and id also want to find out the amount of comparisons made before the search key … | |
Is it possible to execute Perl code from java script? I have installed apache-tomcat for the same. In which folder should I paste the html file and the Perl file (uses cgi module) ? | |
hi my remove node is not working....can someone help me correct it // Polynomial.java public class Polynomial { private int degree; private Node head; public static Polynomial addPolys(Polynomial poly1, Polynomial poly2) { Polynomial polyRes = new Polynomial(); int power = (poly1.degree > poly2.degree) ? poly1.degree : poly2.degree; while (power >= … | |
I have wrrtten code for my mobile application, but while running it in java wireless toolkit, i get a screen that displays the following: " EnvGameMidlet.EnvGame.EnvGameMidletException.java.lang Class Not Found Exception: EnvGame/EnvGameMidlet." What could be the problem. it compiles well but displays that message when run. I am developing it using … | |
How can I use the Exceptions I have created below in the Cinema class? [B]//IllegalAgeException class[/B] [CODE] public class IllegalAgeException extends Exception { /** * Creates a new instance of <code>IllegalAgeException</code> without detail message. */ String exception; public IllegalAgeException() { exception="Unknown"; } /** * Constructs an instance of <code>IllegalAgeException</code> with … | |
ok, i have to get two mysql tables to work as one. one is called sale_mast_data and the other is called sale_mast_data_h. they both have the same columns. the only difference is that the one with the "_h" has the history of previous shift sales. the two tables both contain … | |
I am thinking about becoming a programmer and have a BA in socail science and computer tech certificate. Can I ge a job with just either a C ++ certificate or Java certificate. Which one would be better to take. Please advise. | |
Hope you can help. Windows XP Sp3 installed. Now Java applets on internet won't work. Explorer settings checked and enabled. Uninstalled Java and re-installed but still doesn't work. Checked Ashampoo Firewall settings and they're OK. Using Avast antivirus. | |
I seem to be able to load the files in my program. Then I can loop through the lines one time, but if I try a second loop to load the strings into an array that one won't work. Here's my code. I thank you for any help in advance. … | |
I'm doing a project for a class and it says to write a program that translates code from one programming language to another. It says that my class containing my static main method should be named "Translate". It should take as input source code of a programming language as a … | |
I am building an xml parser in java which will handle a catalog with some books (that have price and usefulness) and I want to implement an [B]optimum[/B] algorithm that selects the books from the catalog which have the maximum usefulness while staying within the budget. Example: [code] <catalog cash=”100”> … | |
I m working on a crawler and want to hash the urls that my crawler is crawled already. I have used hashcode() function but it is returning a null value. Is there any other efficient way for hashing them .Also i want to know abt hash functions related with string … | |
I'am making a mini project on telephone directory management system. My lecturer wants me to submit the documentation of the project.I'm not sure about how to prepare my documentation of project.What to tell??????? the feature which I could add to make my documentation impressive. | |
I'm a total nubie. I thought it would be useful to download the source for an applet and study the code. I picked a wonderful applet by Don Hatch: [URL]http://www.plunk.org/~hatch/HyperbolicApplet/?size=513[/URL]. The code in the jar file is all in .prejava files. My IDE (NetBeans) doesn't know what to do with … |
The End.