i am using NetBeans 3.6 kit and i have a problem with jtable. when i insert new column to my jtable while program is runing, and then i want to change the value of any row of my inserted column. it changes another values of rows of different columns. how can i resolve this problem and how can i ...
518 byte By
Sandy25 at 2007-9-30 15:59:36
I'm brand new to Java and trying to learn. My class requires I use BlueJ with j2sdk1.4.2_5. I'm trying to write a simple program from my text book. The compiler returns, "cannot resolve symbol - class Scanner". The code that it's hung up on is:import java.util.Scanner;.....which is right ...
Hi ALLDoes any one knows if there any c++ to Java converter?thank you///////////////////////////////////////////////////////// Qt includes#include <qbuffer.h>#include <qcstring.h>#include <qimage.h>#include <qpaintdevicemetrics.h>#include <qregexp.h>#include ...
hi,I got a problem opening an iconified frame on Mac OS X. My app starts with an iconified JFrame, ie. you can seethe app in the task menu on Windows, Linux and MacOS X. On Windows and Linux the frame is opened when you klick onto the icon in the task bar. Not so on MacOS X. The frame just ...
Hi,I've installed the plugin required for integrating SunOne Application Server 7into JbuilderX. It's running fine but the problem is when I try to run the application server in debug mode from within the JBuilder then i'm not able to use the debugging contrlos of JBuilder like the controls ...
984 byte By
theFillm at 2007-9-30 16:02:58
Hi everyone,I am trying to write a GUI application for processing XML schema validated XML files. As I am using java's JAXB, i end up with an object, that contains all the element references as methods of that object. As I am trying to create a generic application, I get those names at ...
Hi,Say, I have a text file that contains information in (key,value) pair format. The key attribute can be some kind of string, whereas the value attribute are a set of executable statements. The executable statements can be method calls, conditional statements or loop statements (say in Java). ...
100 byte By
sledged at 2007-9-30 16:04:25
Does anyone know of an application that will convert a Makefile into a build.xml file?
163 byte By
WMEChan at 2007-9-30 16:04:46
Dear all,Is it OK to directly call a compiled class by such command - 'appletviewer c:classname.class'.Thks & Rgds,Edward
Hi,All my java programs compile fine, except for when I try to set the background color of a component. It's driving me nuts. I've uninstalled and reinstalled the Java JDK, but to no avail. Here's the text of the error message when I attempt to compile.Unexpected Signal : ...
I want to hyperterminal to serial port(com2) with a serial cable connected with my computer sending a AT command but the Nokia6610 not responding while the screen of the hyperterminal not show the "OK/Error" after type the command "AT"PLS help me.i m disherted no one help me in this forum.But i ...
295 byte By
CMW_ at 2007-9-30 16:05:29
Hi,I would like to use the JavaEditorKit provided by sun at http://java.sun.com/products/jfc/tsc/articles/text/editor_kit/However I can't seem to compile it as there are many errors that appear. Is there anyone that can teach me how to get it to work?Thanks!!
Hello,I want to read lines from a file "while (true)" ... because an other application will append some lines in this file at the same tim I will read lines from it.This code is bad because the readLine() is not blocking when no input is available and then it is consuming all CPU ...
777 byte By
jgamache at 2007-9-30 16:09:08
Anyone know why CDATA contents don't seem to work as a value in a key/value pair with java.util.prefs.Preferences? I'm using jdk1.4.2. It would be _really_ nice to allow embedded XML via a mechanism like:<node name="MyNodeName"> <map><entry key="aSpecificKey" ...
868 byte By
k_dhar at 2007-9-30 16:09:30
Hi have a general question, I am not sure if it right place to ask. But I will be grateful if some body could help on this one. I could not figure out what is that line of code (**) is doing or what does it mean. I gave sample implementation here. Public class Decoder{ InputStream in Public ...
Hi people,i'm having this compile time error that, when i create a class and calling that class in another class gives the error cannot resolve symbol classname and it also happened when i created a bean and referencing the bean class in another bean when i'm using Jsp. thanks in advance. ...
double LabelUtils::pixelToMm( double pixel, const QPaintDevice* device, int mode ){QPaintDeviceMetrics pdm( device );if( mode == DpiX )return (pixel * 25.4) / pdm.logicalDpiX();elsereturn (pixel * 25.4) / pdm.logicalDpiY();}double LabelUtils::mmToPixel( double mm, const QPaintDevice* device, ...
Hi,I am getting NoClassDefFoundErrror on HP Unix box , same runs on Windows.java.lang.NoClassDefFoundErrorat org.jCharts.properties.ChartProperties.<init>(Unknown Source)at com.twacs.tngadmin.twacspath.bo.ThresholdClusterBarChart.initChart(ThresholdClusterBarChart.java:125)Can any body ...
Sorry if this is redundant.Are int class fields assigned at random are is there a specific model underlying the assignment of certain numbers within each indiviual class.The event class, for example, assigns the integers 1008-1019 to the variables F1-F12. Aside from grouping the function keys, ...
ok I have been aquainted with java for about 24 hours and would like some help in plain english. First of all, when I try to compile a .java file, i get the error message "Exception in thread "main" java.lang.NoClassDefFoundError: component/java" I have read of a few problems similar to this ...
1428 byte By
tleis at 2007-9-30 16:14:57
GreetingsI'm developing an application (Senior) that contains a menu item that should open a dialog box upon clicking.and I have a separate application (selectDialog) that opens the desired dialog box.so, i'm calling the application (selectDialog) using the following ...
Java Note=========did a simple hello world program (my first in java), compiled it and then tried to run it but this happens (note bin is /java/bin);[root@localhost bin]# ./java [PATH TO PROGRAM]/helloException in thread "main" java.lang.NoClassDefFoundError: [PATH TO PROGRAM]/hellois this ...
I have a class which has thread as its element. This thread is running continously. There is another method in same class which will be called ocassionaly by another class. Now when this method is invoked I have to stop thread which is running. I have done that by putting that particular thread ...
281 byte By
artsi1 at 2007-9-30 16:17:28
Hi!How can define specified handler for some specified logger in properties file?I mean that i use ConsoleHandler&FileHandler, but only one specified logger should use FileHandler.and btw. can i use multiple FileHandler's?SeeU - Artsi
I wrote three programs with the names 'A.java', 'B.java' and 'C.java' (abc package). When i compile 'javac *.java', sometimes it is not compiling the programs though it is not giving any compiler errors. A uses B class.Please can somebody explain me the reason, why it is not compile ...
1855 byte By
feroz_ps at 2007-9-30 16:21:15
I have wriiten this code but the problem downloading continues beyond the size of the file ie from http server or ftp server any help out plz, import java.io.*;import java.net.*;public class BeConnect {URL url = null;InputStream fin = null;boolean con = true;File f = null;File f2 = ...
349 byte By
tyvain at 2007-9-30 16:21:48
Here it is :under WinNT I have this (working):File f = new File ("d:\\dir\\whateverFile.txt");f.isFile() // THIS RETURN TRUEunder Linux i have (not working... how come ?):File f = new File ("/www/dir/whateverFile.txt");f.isFile() // THIS RETURN FALSE, BUT SHOULD RETURN TRUE...Any idea? ...
Sorry if this was already discussed but when does 1.5 come out of Beta and go General Release? I didn't see any dates given in the roadmap article. Thx
278 byte By
tleis at 2007-9-30 16:24:16
HelloFrom my java program i'm calling another java program, but unfortunatly that second program, opens behind the main window of my program for the first time.closing that second application then calling it again opens it normally on top. any ideas
149 byte By
tleis at 2007-9-30 16:24:19
Greetings guysI remember that a line must be added to some file, or maybe a special command is used.Can you tell me how, please?
1816 byte By
xihan24 at 2007-9-30 16:26:52
Hi,I am new to use Xerces-2_6_2 for Java. I got trouble to operate with org.w3c.dom.NodeList. Here is part of my code. It is a simple practice. But I still got lost.I am appending 2 new elements to "xs:sequence" node. HOWEVER the printing result shows the oldList length is equal to the ...
how can i save the content on the applet to jpeg image
how can i save the content on the applet to jpeg imagei want to develpe a web math formula editor in the website.that means:when I access the website,I can use this program,this program will appear a math formula and I just config some number,then the program will save the formula and number to ...
I downloaded the bundle and a different computer and burned it to a CD. I brought It home and tried to install it straight from the CD, the computer said that It didnt have enough space on D:\. So I copied the bundle to C: and tried to install. Apart from the fact that the installer doent ...
Hi,I'm involved in developing a java based web application, and we're experiencing speed problems compiling java under windows.The entire project can be rebuilt in 90 seconds on a linux machine, but takes 6-10 minutes on the same or similar machines running Windows XP. We are seeing this ...
when create new jdialog and then i want to close it. but it hides self. after i try to load again it fails "OutofMemory". because always it is in my memory.how can i remove this jdialog from my memory and how can i clear this error?thanks a lot for your answers...Musa ...
1165 byte By
wikey at 2007-9-30 16:30:34
Halo,I'm seeking a best XSLT IDE...can anybody recommend one?I was using Alvota product which is "XML Spy" and "XML Stylevision" design PDF report interface all the while but this tool having some limitation where you can't have coding level of the look and feel features in the "XML ...
Does anybody know a really good way to format phone numbers (###) ###-####, I was trying using the java.text. package but seems to replace instead of format., and the Number format class doesn't work wellMaybe regex based? any ideas, examples will be welcome Thx in advance
Hi all,I have an instance where under CodeGuide 7.0, my code compiles fine. However when using the 1.5 beta 2 compiler from the command line (under Windows or Linux) 11 errors pop up out of no where (it is compiled using what is essentially an ANT script). Does anyone have any clues as to what ...
I am trying to download the Java 2 SDK 1.3.1_01for linux from the java.sun.com .I am not able to download rpm. when i click on download it is opening the rpm instead of downloading.Can you please let me know , where can i get a copy of this rpm.
315 byte By
tleis at 2007-9-30 16:33:04
GreetingsI want to separate some java files into a folder or package to avoid the mess in files.I tried to copy some java files into a folder ( menuBar ), and from the main application I imported :[code}: import menuBar.*;[/code]but it seems not to work, ...
155 byte By
tleis at 2007-9-30 16:33:05
I read once in this forum, that there is a tool to change .class files into .java files. What is the name of this tool and where i can download it?
288 byte By
prasad_x at 2007-9-30 16:35:13
Hello,I would just like to know if jdk1.4 comes with an inbuilt DOM parser? i.e. are there any API's, for parsing an xml document, inbuilt within jdk1.4?If yes, can anyone tell me how am i supposed to parse an input xml file and what are the API's present?thnx in advance
248 byte By
BluJava at 2007-9-30 16:35:39
By executing a synchronized instance method of that object. By executing the body of a synchronized statement that synchronizes on the object. For objects of type Class, by executing a synchronized static method of that class.
Hi,I am developing an application where i need to get list of free available (not used by any application) serial COM ports. Can you suggest an existing API or any method(s).ThanksSomesh
I have a thread that starts a file download. I tried using the following.On the mouse click event of a buttonthread.interrupt();in the file download methodif(!thread.isInterrupted()){do stuff}else{thread.interrupted();}The way it stands now, the file download stops and everything seems fine. ...
Hi All,I am trying to get list of available com port list but the program execution is not returning anything.There is not API in the CommPortIdentifier class that can give what the error is.I am attaching following bit of code from my program. Can you suggest what the error may ...
253 byte By
BosJava at 2007-9-30 16:38:00
How to exports data to MS-Access using Java API?Are there any APIs which I can use to export data to MS Access. Server platform is Linux/.Java based so MS file generation has been compliceted. Please help me in this regard.Thank you
I'm running into a problem mapping regions of a file with the FileChannel.map() method. On Windows (1.4.2_05) under load I receive a:java.io.IOException: Map failedat sun.nio.ch.FileChannelImpl.map0(Native Method)If I force an occassional garbage colllection, I don't run into the problem. If ...
Hi,I am very new to RMI. I just tried to run the following command to start the rmiregistryc:\> rmiregistry &After typing this command i can find my cursor just blinking in the second line and it stays on like that.I am unable to proceed further.But I used various other command like ...