31,001 Topics

Member Avatar for
Member Avatar for Luminus

Please. I'm writing a Test Engine Software and I have a big issue. I have a large question database about 1000 questions and I need to load 50 random questions for each test instance. i.e Each time a user runs the test, 50 DISTINCT questions will be loaded. They should …

Member Avatar for Luminus
0
74
Member Avatar for Roopak

An unexpected exception has been detected in native code outside the VM. Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x7C33784 Function=Java_sun_awt_font_NativeFontWrapper_registerFonts+0x14C0 Library=C:\Program Files\Java\j2re1.4.2\bin\fontmanager.dll Current Java thread: at sun.awt.font.NativeFontWrapper.registerFonts(Native Method) - locked <0x161a9eb0> (a java.lang.Class) at sun.java2d.SunGraphicsEnvironment.addPathFonts(Unknown Source) at sun.java2d.SunGraphicsEnvironment.registerFonts(Unknown Source) at sun.java2d.SunGraphicsEnvironment.access$200(Unknown Source) at sun.java2d.SunGraphicsEnvironment$2.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at …

Member Avatar for freesoft_2000
0
150
Member Avatar for Vinay

Afsah Shafqat is the 14 year old girl who made the entire nation proud by breaking so many records in the field of IT, doing professional IT courses at a very young age. Afsah, in 10th grade, has been called the "Princess of Operation Badar." [img]http://img18.exs.cx/img18/289/u3qj2ee.gif[/img] She recently passed her …

Member Avatar for jwenting
0
254
Member Avatar for MrScruff

Hey people, Im just wondering what type of layout you would recommend to set up a grid of labels and sliders: This is the format that i would like them to be in. [CENTER]JLabel - Jslider - JLabel[/CENTER] [CENTER]JLabel - Jslider - JLabel[/CENTER] [CENTER]Slider Name - Slider - Slider Value[/CENTER] …

Member Avatar for MrScruff
0
128
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
57
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
174
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
112
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
80
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
196
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
107
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
153
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
358
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
64
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
129
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
109
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
103
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
180
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

The End.