32,199 Topics

Member Avatar for
Member Avatar for indranil

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]

Member Avatar for jwenting
0
118
Member Avatar for freesoft_2000

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 …

0
58
Member Avatar for kai13

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 …

Member Avatar for kai13
0
120
Member Avatar for JIMBOB963

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 …

Member Avatar for JIMBOB963
0
115
Member Avatar for server_crash

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 …

Member Avatar for server_crash
0
176
Member Avatar for magnia

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 …

Member Avatar for freesoft_2000
0
98
Member Avatar for rick4324528

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.

Member Avatar for freesoft_2000
0
65
Member Avatar for sam1

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

Member Avatar for freesoft_2000
0
59
Member Avatar for mark hughes

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?

Member Avatar for freesoft_2000
0
113
Member Avatar for femmegirl

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 { …

Member Avatar for freesoft_2000
0
81
Member Avatar for javaDumb

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 …

Member Avatar for freesoft_2000
0
197
Member Avatar for DannyDep

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 …

Member Avatar for Zachery
0
194
Member Avatar for santa_barbarian

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 …

Member Avatar for santa_barbarian
0
179
Member Avatar for Feirgon

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 …

Member Avatar for jwenting
0
108
Member Avatar for George2

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, …

Member Avatar for George2
0
154
Member Avatar for freesoft_2000

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 …

0
368
Member Avatar for mus_203

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 …

Member Avatar for mus_203
0
112
Member Avatar for MrScruff

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 …

0
70
Member Avatar for matt_5104

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 …

Member Avatar for jwenting
0
130
Member Avatar for ultimate_fusion

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 …

Member Avatar for jerbo
0
110
Member Avatar for MrScruff

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)) ; …

Member Avatar for jwenting
0
104
Member Avatar for fulmont99

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; …

Member Avatar for fulmont99
0
162
Member Avatar for jonoj

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. …

Member Avatar for jonoj
0
251
Member Avatar for dncloud

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' …

Member Avatar for jwenting
0
134
Member Avatar for y2sav

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 …

Member Avatar for jwenting
0
114
Member Avatar for alanna

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 …

Member Avatar for alanna
0
194
Member Avatar for vyk2rr

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:

Member Avatar for alc6379
0
178
Member Avatar for bright2000

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).

Member Avatar for Phaelax
0
79
Member Avatar for MrScruff

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 …

Member Avatar for jwenting
0
91
Member Avatar for grifflyn

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 …

Member Avatar for mcclth
0
179

The End.