32,199 Topics
| |
when i run start i get syntex error using CATALINA_BASE: .. using CATALINA_HOME: .. using CATALINA_TMPDIR: ..\TEMP using JAVA_HOME: C:JDK1.3 PLEASE HELP ME TO RECTIFY THIS ERROR MY EMAIL IS [email]indranilray@yahoo.com[/email] | |
Hi everyone, I have a weird problem. Currently i am using a jtextpane with the HTMLDocument class as its default document. I am tryin to change the background colour of the htmldocument but still it does not seem to work. I cannot use the JTextPane's setBackground method as if i … | |
I'm currently stuck in my program. I'm supposed to create a new method that inputs a message string and takes each letter and converts it into a two dimensional array of 1's and 0's. For example the letter 'H' would be 10001 10001 11111 10001 10001 My thoughts were to … | |
I get an error message that reads: "Your web Browser does not support Java Applets or Java is not enabled in web browser Preferences." It is there a way to correct this problem? I am new to Java. Please give me a detailed explanation if possible. I am running "Windows … | |
I made a text editor with very basic funtionalities. I wrote it all in one class because I really wasn't sure what to put into other classes. Right now the code is pretty messy and I want to rewrite it. I was wondering if anyone could give me some input … | |
can anyone help me this im just trying to read some integers into a linked list from a textfile the file will be something like this, ive done the code but it wont compile Arrival Times Burst times 23 .5454 34 .78 12 .96 Code: import java.util.LinkedList; import java.util.ListIterator; import … | |
I have created a DrawingWindow in the 'main' method, but i cannot draw to it from another method within the same class, although both classes are public. | |
i have a super class called employee1 and subclass fulltime whenever i run it i get this error: javac employees/FullTime.java employees/FullTime.java:3: cannot resolve symbol symbol : constructor employee1 () location: class employees.employee1 public class FullTime extends employee1 ^ 1 error can anyone help plz | |
I'm trying to find a site where can download a java sdk1.4 for windows 98. I've tried the Sun site, but i keep getting an error page. Any ideas? | |
I have to write a program that allows the user to enter a string and the it needs to count the number of upper case letters in the string. This is the code I have come up with, can anyone help me fix it? import java.util.StringTokenizer; public class TestStringTokenizer { … | |
Hello all from javaDumb! I'm in my first java class and this is my first post so please be patient. I'm suppose to use StringTokenizer to search a document and replace some text, but the book for this course only explains how to print the text to the screen as … | |
I am having several problems with IE 6.0.2800.1106.xpsp2.030422-1633 128-bit. On a few commercial websites I get no response at all when I click on certain links on their webpages. It is not a script error because I have Disalbe Script Debugging turned off and Display a Notification about Every Script … | |
I am a java programmer trying to understand a c++ oddity that I ran into. My c++ program writes a few MB of data using ofstream. Just before the program ends I close the ofstream. However when the program terminates, the amount of free memory on my linux box has … | |
I'm trying to figure out how to test the speed of seach engines. I'm not sure if Java is best to use for this purpose, but I figured it would be good since it is supposed to interact with the internet and other applications well. However, I can't seem to … | |
Hello everyone, If I am using two threads, the task of one thread is to read the first 1k bytes from a specific file and the task of second thread is to write (maybe modify without the change of 1k length, maybe append some additional bytes making the file larger, … | |
Hi everyone, I have a textpane with some text inside and trying to search for a particular text in the textpane by highlighting it. Basically i the main function that does this is as follows TextPane is an instance of my JTextPane public void findtext(int pos1, String str1) { //This … | |
I'm writing a Lottery program where the user type sin 4 numbers between 1 and 30, the program generates 4 random numbers. In my program I have stored the random numbers and the numbers chosen by the player in 2 separate arrays. The problem I have is that I dont … | |
Hello, I am currently working on some coursework from which i have to write a syntax analyser to parse a grammer. Unfortunatly I am finding it hard to understand what I am meant to be doing - and if i am doing it right. I have looked through many tutorials … | |
Hi, I'm creating a GUI in which users are required to interact with graphs. I have a jFrame on which I have put a jLabel and used this label to import a JPEG of a graph (i.e it's an icon). My problem is that the user needs to pick a … | |
might be main or another method // dont know yet int[] num1 = new int[intA]; int[] num2 = new int[intB]; public static void cal(what do i put here) blah blah and class Homework7v2 { int a=0; // i need to use this int all the way through and // it … | |
Ive been given this code as part of a lexical analyser for which i will be coding a syntax analyser - however the file the lexical analyser will be reading will come throught this code: public static void main(String[] args) throws IOException { BufferedReader din = new BufferedReader(new InputStreamReader(System.in)) ; … | |
Im writing an encription program and it keeps saying their are 2 missing return statements :cry: , any ideas? public class EncryptedMessage { public static final int NO_OF_LETTERS = 26; //a-z incl public static final int NO_OF_NUMBERS = 10; //0-9 incl public static final int NO_OF_CHARACTERS = NO_OF_LETTERS + NO_OF_NUMBERS; … | |
| Gday all Just wondering what is the best Java editor(developer tool) to use. At the moment I am using emacs, but i am getting sick of after every new emacs page i open a command prompt window comes up aswell. Also the shortcut keys in emacs are a tad wierd. … |
How can I write a program that will read as input two strings and display the word true if the strings are the same and false otherwise. In this activity, two strings are the same if they contain exactly the same characters in the same order (i.e. 'A' and 'a' … | |
hi i have to verify a string entered, the first 5 letters of the string must be bongo and the next 3 characters are numbers which must be between 2 and 9 for example bongo 343, it is part of a an airline booking system which i will produce the … | |
I'm writing a program that generates 5 cards, and I need it to tell me what type of poker hand it is. I really need help with this as soon as possible, so any suggestions that you could give me would be appreciated SO SO SO SO SO much. I … | |
Ando comenzando en la programacion en Java, ¿Alguien sabe por donde puedo comenzar? O podrian mas omenso intruirme acerca de las classes de java teoricamente hablando :rolleyes: | |
there are 2 dimension arrays, how can print out the position of value than 4? for example 0 2 3 2 2 2 0 1 1 2 5 3 1 2 3 3 2 1 print out: The pos is ( 4,1). | |
Is there anyway i can get some labels and sliders to alignproperly when they are both using grid layouts attached to a border layout. Basically using one gridlayout for the lot meant that the labels had excessive space - so i opted for a border layout so the sizes would … | |
Hi i have written a program to reconise palendromes in a sentance. I have written a method to reverse a word but dont know how to get the string tokeniser to reconise the words in a sentance. could any one give me some advice on how to use HasMoreTokens this … |
The End.