32,204 Topics
| |
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 … | |
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 … | |
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 … | |
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] … | |
I'm thinking of moving to a mac, and thinking in advance I'm curious what the best way to develop Java programs is. The most obvious choice is Xcode but I've heard good and bad reviews on it. I can't try it in stores because they're afraid I'll use the power … | |
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 … |
The End.