30,998 Topics

Member Avatar for
Member Avatar for George2

Hello everyone, I have a very important thread in my application and I do not want it to be terminated accidently, or in other words, if it is terminated for some reason (for example, be terminated by some unhandled Runtime exceptions), I want it to restart automatically. I am wondering …

Member Avatar for George2
0
146
Member Avatar for George2

Hello everyone, I want to load the binary content of a .class file in a dynamic approach. In more detail, I want it to work in the following approach. When given the name of a class, I can retrieve the binary content of the .class file. I have written the …

0
43
Member Avatar for paradox814

I have a library of my own stuff written in Java, and I use the JavaDoc feature to help me keep it organized. My question is how do I get JavaDoc to print my little blurb of the package? For instance, [URL]http://java.sun.com/j2se/1.5.0/docs/api/overview-summary.html[/URL] you can see what i'm talking about in …

Member Avatar for jwenting
0
73
Member Avatar for tigerxx

I need to open a word doc template from a java application and i also need to dynamically update the fields in the template with some values from the java application.. Can anybody help me????...... Thanks in advance..........

Member Avatar for tigerxx
0
157
Member Avatar for bsunkel

Hi It is difficult to explain my problem. I have 2 classes. 1 is called System and the other Phonebook. There is a button called phonebookButton on a frame which a have created in the System class. When you press the button, I create an Object of the Phonebook class(Phonebook …

Member Avatar for jwenting
0
114
Member Avatar for freesoft_2000

Hi everyone, I have a rather silly question but please bear with me for a while. If lets say i have a string which has the contents [code] "C:\\p\\kol\\pki.txt" [/code] the thing with the above string is that if i use as an argument in a fileinputstream it will only …

Member Avatar for tigerxx
0
184
Member Avatar for grussell

I have a CardLayout within which I have panels constituting each 'card'. However, the panels refuse, seemingly, to respond to my sizing requirements. doublePane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, comboPanel, lowerPanel); comboPanel.setSize(new Dimension(100, 600)); // totally ineffective lowerPanel.setSize(new Dimension(1100, 600)); JPanel displayPanel = new JPanel(); displayPanel.add(doublePane); displayPanel.setSize(1200, 600); mainPanel.setLayout(new CardLayout()); mainPanel.add("Main", displayPanel); …

Member Avatar for jwenting
0
100
Member Avatar for ShannonD

I brought some of my work home with me, but when I try to run the program here, I get the following errors: "SDClass.java": cannot find symbol; symbol : class JDOMException, location: package org.jdom at line 22, column 17 "SDClass.java": package org.jdom.input does not exist at line 23, column 23 …

Member Avatar for atul_manaskar
0
122
Member Avatar for Darkfoxx

Ok, I am working on a program that lets a user enter a year which they want a calender for. The program figures out if the year is a leap year (completed), what day January 1st falls on so that the calender has a starting point (completed, see new code …

Member Avatar for Darkfoxx
0
80
Member Avatar for Lord Felix

Im not very sure on how to store the (x,y) coordinates of the Point2D.Double object into an ArrayList so that I could access them later. I have looked through the Java classes on Point2D.Double, but have only found its constructors and methods and not on how the coordinates can be …

0
95
Member Avatar for BrownSuga

This is the error message I am getting and the driver and class is below it. Thank You if you can help me :) C:\My Documents\CS151\CircleSolutionDriver.java:18: cannot resolve symbol symbol : constructor Circle () location: class Circle Circle circle = new Circle(); ^ 1 error Tool completed with exit code …

Member Avatar for jerbo
0
91
Member Avatar for Trixie

Hello all, I have the following exception: java.security.AccessControlException: access denied (java.io.FilePermission blahblah.. myfile.gif read etc... my code: JButton myButton = new JButton(new ImageIcon("myfile.gif")); I added the ff to my java.policy file grant codeBase "my domain-" { permission java.security.AllPermission; permission java.io.FilePermission "<<ALL FILES>>", "read, write"; }; No go :( Did I …

Member Avatar for jwenting
0
85
Member Avatar for jerbo

Here is a good tutorial link: [url]http://www.javaworld.com/javaworld/jw-05-2002/jw-0503-java101_p.html[/url] As a matter of fact: [url]http://www.javaworld.com/[/url] Has some excellent articals.

Member Avatar for jwenting
0
83
Member Avatar for jdl44lfhs

I am new to programming and I am trying to learn, I got a book and it has some problems in it, Here is one of the problems that I would like some help with if anyone could help me through it of if you have any code that is …

Member Avatar for jdl44lfhs
0
205
Member Avatar for freesoft_2000

Hi everyone, I have a question about carets. I have a textarea and want to be able to get the line number that the caret position is currently on. The caret listener seems to only have the getDot() position function but nothing about the the line number of the textarea. …

0
58
Member Avatar for nanosani

Is there any good vb to java convertor available ?? or should it be java to vb convertor ?

Member Avatar for jerbo
0
139
Member Avatar for warm heart

hi there good evevning >>>>> :lol: :lol: i hope all of u is good ..... sorry but i know i am new but i face aproblem with array i don't know how to solve problem with array >>>>> i have problem that said enter name of 15 studemt and there …

Member Avatar for jerbo
0
101
Member Avatar for Jeff20

I keep getting these errors. Anyone know how to fix them? My program was working before. Both directories seem to be the same tho so i have no clue what it means. "AppointmentMatthews.java": Package C:\javastuff\Appointment\AppointmentMatthews.java stated in source Massage does not match directory C:\javastuff\Appointment\AppointmentMatthews.java. at line 11, column 9 "MassageMatthews.java": …

Member Avatar for jwenting
0
127
Member Avatar for jonboy_us

Java2 homework help. Quick comment...Java was not meant for GUI! If you want GUI, then use VB. Now that I have that out of my system... Homework goal... To create a GUI java app that will save the info in the text fields to a file to a location that …

Member Avatar for jwenting
0
244
Member Avatar for freesoft_2000

Hi everyone, I am trying to compile some java codes from a .java file that i had saved to disk. Basically i am trying to build my own ide. I have a text area in which the java code is in and also have two buttons. What i need is …

Member Avatar for jwenting
0
178
Member Avatar for grussell

Sorry - my last statement of my problem wasn't too clear. I have all my panels and my CardLayout (as I originally wrote it), thus: private CardLayout wholeScreen = new CardLayout(); mainPanel.add("Main", displayPanel); mainPanel.add("Enquire", enquirePanel); mainPanel.setSize(1200, 600); getContentPane().add(wholeScreen); wholeScreen.show(mainPanel, "Main"); It comes up with this error: C:\myjava\TestClient.java:201: cannot resolve symbol …

0
65
Member Avatar for grussell

:sad: I have a CardLayout and a main panel to which I have added the panels I want to display. However, I cannot add the CardLayout to the JFrame using `getContentPane()`. I tried adding the application in which all my screen building takes place to `getContentPane()` but to no avail. …

0
108
Member Avatar for matt_5104

Hi, how would I go about changing the mouse cursor image? I have a jLabel with an image of graph on it and I would likt the mouse cursor to change to a cross-hair when the mouse is moved onto the jLabel. Does anyone have an idea as to how …

Member Avatar for mcclth
0
91
Member Avatar for George2

Hello everyone, I am using read method of InputStream to read a stream from a remote machine. The network connection is not very stable (for example, a wireless network whose the signal strength is relatively low). I am wondering if read method returns -1 (which indicates the end of the …

Member Avatar for George2
0
136
Member Avatar for justbboying

hi .... i have written a programm which solves the math equation : x = -b +- square root of b ^ 2 - 4 (a)(c) all / 2(a) programm is really short since am still a beginner so heer it is : import java.awt.*; import java.applet.Applet; public class MathEqu …

Member Avatar for justbboying
0
130
Member Avatar for CTBinCCP

hi guys, im new here, i have a project that i have to do but cannot complete... Write a program that prompts the user for a number from 1-9. Then display all of the numbers from 1 to 100 except for any numbers that are evenly divisible by the user’s …

Member Avatar for CTBinCCP
0
126
Member Avatar for freesoft_2000

Hi everyone, I have an application that i need to distribute as a jar but i have no idea how to create the jar archive as well as something called the manifest file. Basically i have only one class and the main is in that class itself. The path of …

Member Avatar for jwenting
0
269
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
72
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
149
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
253

The End.