35,617 Topics

Member Avatar for
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
198
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
195
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
181
Member Avatar for fsoranno

Hi everyone, I am new to this forum. Thanks in advance to anyone who tries to solve this. I wrote .JSP reports along with two other members of my team. We each wrote some reports in our separate IPLANET sessions. In order to move them to system test we have …

0
97
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
155
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
113
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
131
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
105
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
163
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
195
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
179
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
81
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
92
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
181
Member Avatar for vrc_sekhar

hello everybody, ive devoloped an awt application in java, i want to call the paint() for drawing sytem time on a image through Graphics.drawString(String,int,int); now i want to refresh the time for each second by calling repaint(), but whats my problem is, each time i call repaint() the image i …

Member Avatar for mcclth
0
134
Member Avatar for alfageekwannabe

(I posted this last night & was told I should have posted it elsewhere - I hope this is "elsewhere".) Windows ME 4.90.3000, ie 5.50.4.807.2300 updates SP2; q834707;q867801; (at this moment) Seems to run very slowly (speed of computer probably) even though she has lots of ram. Using McAfee VirusScanOnline …

Member Avatar for alfageekwannabe
0
193
Member Avatar for ultimate_fusion

heres the start public class work { public static void main (String [] args) { int number = 1; } public static boolean ifstate() { if ( number == 0 ) blah blah } question - how do I get the second method to call on the varible from the …

Member Avatar for ultimate_fusion
0
142
Member Avatar for freesoft_2000

Hi everyone, I am currently trying to print even or odd pages only. I have a frame which contains a jtextpane with some text in it that spans about ten pages and it also contains two buttons. One button if clicked prints out only even pages and the other button …

0
64
Member Avatar for sam1

hi i have been given this cwk for java programming. and i need help getting started. i dont want u to do it all but if u can help to get me started i would really appreciate it thank u. this is the task: A large car dealing company wants …

Member Avatar for sam1
0
107
Member Avatar for rick4324528

i have declared a static global integer, and have assigned it a value. I have then attempted to alter the variable from another method.(Using Classname.Variablename), but it will not work. Nor is it generating a scope error. Any ideas?

Member Avatar for jwenting
0
44
Member Avatar for mmr

Hi All, Can anyone help me out in figuring how we can open an Internet explorer in say "Borderlayout.center" of the frame.

Member Avatar for nanosani
0
41
Member Avatar for freesoft_2000

Hi everyone, I have a jtextpane with some text which spans to about 10 pages and what i want to able to insert page numbers into the center bottom of the page. I am using the DefaultStyledDocument class as the default document type for my jtextpane. I hope someone can …

Member Avatar for freesoft_2000
0
87
Member Avatar for depaolm

Dear all, My names its Max, and seems that I have some problems with JAVA coding. What I need to create its a GUI interface, from the code below. But I am having bad time because I am trying hard but I get always errors! It really frustrating, I do …

0
59

The End.