Does anyone have any suggestions on how to determine, in a non-platform specific manner, how much space is left on a partition from within a java application?Joe Green
132 byte By
dupsy at 2007-9-26 1:43:24
I still don't know how I am going to use Map to automatically combine operators and variables for IF-ELSE statements.
1991 byte By
kjrana at 2007-9-26 1:43:25
I have 2 text areas in a JScrollPane which i've put as a left & right component in JSplitPane & the split pane is set as BorderLayout.NORTH component in a JPanel. My problem is when i call the append method of JTextArea the data is not being displayed at all. I am adding data ...
Hi ,I get a "variable declarator id error" when I try to do the follI am trying to comapre and then assign values to the arrayString[] custNumber ="";if(region.equals("AR")){custNumber[] = {"bak","tor","exe"};}where is the problemthanksArn ...
316 byte By
bslack at 2007-9-26 1:43:31
I am writing a HTTP server for my class. I need to have the server call scripts in the cgi-bin. When I use this line of code I get a nullPointerException: p = Runtime.getRuntime().exec(path, env);where p is a process.Does anyone have any ideas that can help/Thank you ...
Hmm, Is it possible to add more than 1 JTextArea to a JScrollPane, sort of like a triple split pane?And if so how?Jim
Hi, I am trying to change the accelerator keys within a JTable so that the enter key performs the same function as the ENTER key performs the same function as the TAB key: moves to the next cell. I figured this could be accomplished by simply changing the mapping of the ENTER key within the ...
Hi, I have a servlet that calls another servlet using the URLConnection class. This seems to work very well if I am using http. However when trying to call it using https using JSSE I get the following error:"javax.net.ssl.SSLHandshakeException: untrusted server cert chain." The following is ...
523 byte By
tjap at 2007-9-26 1:43:38
Hi,can anyone please tell me the simple steps to getting classes in Jbuilder3 to compileI've created a new project and added classes to the project (just by using the "add to Project" icon), but when I try to compile I get error messages saying that the classes my main class references are ...
740 byte By
geotdw at 2007-9-26 1:43:39
Hi..It's my first time to mess around with thejavax.crypto package. this is what i've done till now../CODE/import java.security.AlgorithmParameters;import javax.crypto.*;try{Cipher cipher = Cipher.getInstance("DES");cipher.init(Cipher.ENCRYPT_MODE, );}catch(NoSuchPaddingException Padding_ex) ...
317 byte By
LuckyLeo at 2007-9-26 1:43:40
hi all,look at this class relation:class A {Vector v; ClassB object1;......}Class B{....aMethod(){//?how can this method change the value of Vector v in class A? or can we access the method in class A? thanks in advance. ...
Hi, part of my Java software requires the application to download files from the Gnutella Network, as part of P2P component. Suppose I connect to Gnutella Network using JTella (see http://www.kenmccrary.com/jtella/) and get the following information from a SearchReply (the info about search ...
372 byte By
joneill0 at 2007-9-26 1:43:42
Specifically the length attribute. Pretty straightforward to understand but it is an example of something I cannot find documentation on and I am wondering if I am looking in the right place.When I pull up the SUN documentation for Class 'Array' there are no attributes listed. There is a ...
806 byte By
axxent at 2007-9-26 1:43:43
hello, i was wondering how to set the content of a primitive (namely, "char") to null, or the uninitialized state.i try:char c = null; and the compiler gives me the error:WordReader.java [56:1] Incompatible type for =. Can't convert Object to char.char c = null;^ it also doesn't like the ...
455 byte By
_Alain_ at 2007-9-26 1:43:44
Hello all,I am looking for a secure way to transfer files from a Java application to a remote location via TCP/IP. The transfer method does not matter, whether FTP, HTTP, etc. Basically, a jave application that copies myfile.txt to a location on a server, in a secured manner.I have looked at ...
Anyone know how to change the default behavior of unhandled exceptions? I need to redirect the stack trace to a file. I am doing this now by putting a try/catch block around the main thread, and every event listener. But I still miss exceptions from the event thread if the listener that ...
241 byte By
John. at 2007-9-26 1:43:48
Starting up from windows me I occasionally recieve messages that I have a stack over flow problem.I have increased my stack setting but continue to get the messages sometimes the number of errors changes.Any help.
257 byte By
gopisuri at 2007-9-26 1:43:49
Hi,Does anyone know how many bytes does java allocate when I declare a character or a string array like this:char[] a = new char[] without specifying the size.Is it a good idea to not to specify the size?Please help
456 byte By
_Alain_ at 2007-9-26 1:43:52
Hello all,I am looking for a secure way to transfer files from a Java application to a remote location via TCP/IP. The transfer method does not matter, whether FTP, HTTP, etc. Basically, a java application that copies myfile.txt to a location on a server, in a secured manner.I have looked at ...
137 byte By
rotoole at 2007-9-26 1:43:53
Can anyone suggest a good book for learning JavaScript? or better yet an online tutorial. I am already familiar with Java.
1123 byte By
dupsy at 2007-9-26 1:43:59
For example i have this program below. I have created an Interface LogicalOperator for < function. I have a class LESSTHAN that implements this interface. I still don't know how i can get the if-else statement with this example.import java.util.*;import javax.swing.*;public class ...
236 byte By
dupsy at 2007-9-26 1:44:02
I am confused by the keys and values used in Java.util.Map. I have the following questions below.What do the keys and their values signify in java.util.map?How are the values/keys defined and provided?
what is the difference between the two? thank you.
792 byte By
mxsing at 2007-9-26 1:44:05
I'am using InputVerifier to validate a JTextField text (sub account Number) . If the value is not in my database, I open another JDialog to get the parent accnum value. When the focus moves to the JDialog, a blinking cursor stays on the JTextField of the orignal dialog, and even upon disposing ...
Hello, i am getting an error when trying to use the distinct instuction in a query that involves data from an Access memo field.the error i get is:DataBaseException: DoQuery has an error java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Cannot include Memo, OLE, or Hyperlink ...
5187 byte By
cesarloo at 2007-9-26 1:44:08
I did a Japplet and I am getting a permission denied error in the console, the applet just keeps in loading. This only occurs when i try to open the applet in IE, but i have not problem loading the applet in appletviewer(even though i don't know if all the methods are working ok) . I created a ...
485 byte By
mlmosele at 2007-9-26 1:44:09
I'm having problems convincing a JTextPane not to word wrap. My JTextPane is contained in a JScrollPane. I've looked and found out how to turn off word wrap in a JTextArea, and applied suggestions about turning horizontal scrollbars on, but it doesn't work. My JTextPane keeps wrapping text ...
Hi all, I'm trying to read a file in the file input stream. What I need is, read some part of the file into byte array. For this I'm using read(byte[] b, int off, int len) method of FileInputStream.But it is giving me the error saying "java.lang.IndexOutOfBoundsException" To exlain it ...
Ok, I have an application that has an open button that launches a JFileChooser allowing the user to specify what file they want to open. Works fine. Now I want to make my save button work. Would I launch a JFileChooser or is there another Swing component that I should use for the save?thanks ...
I'd like to either add a button to the title bar (title pane?) or override the behavior of the resize button. As far as I can tell, the LookNFeel classes don't allow you to add anything, just change colors, icons, etc. The WindowListener classes don't let you get at the resize button. I ...
550 byte By
BrianB24 at 2007-9-26 1:44:17
I am using JDK 1.3.1. Isn't the javax package included with this version?I have a "import javax.sql.*;" line at the top of my java program, butwhen I attempt to compile I get this error message"package javax does not exist""import javax.sql.*;"I also downloaded JDBD 3.0 and put all of the ...
393 byte By
kenzo at 2007-9-26 1:44:18
I want to make a validated textfield that checks when a user enters a hardware address, for example:FF:FF:FF:FF:FF:FFI read about formatting numbers, currencies and dates in the Internationalization trail of tutorial, but I could not solve the problem that my set of values is 0..9,A..FDoes ...
172 byte By
watsonng at 2007-9-26 1:44:21
I have a dll wihtout source code. I do know the functions name and return type. How can I call the functions in this dll? Is JNI the only way to do it?
Is it possible to hide the servlet query string from the browser,eg., http://localhost:8080/servlet1?a=10&b=20$c=30If we click on this URL, the whole URL will be displayed in browser, I want to hode the URL, is it possible,Thanks in advancesam
Ok, I have an application that has an open button that launches a JFileChooser allowing the user to specify what file they want to open. Works fine. Now I want to make my save button work. Would I launch a JFileChooser or is there another Swing component that I should use for the save?thanks ...
411 byte By
kmkst48 at 2007-9-26 1:44:29
I want to create a JList of objects, where the list entries contain a JCheckBox that corresponds to a boolean property.It's easy to add the checkbox by writing a new ListCellRenderer. BUT, the checkbox can't be edited-- mouse-clicks only select/deselect the item.Can someone tell me if and ...
I know you can do this through the Swing/AWT framework, but is there a way you can catch signals like (Ctrl-C) from the console?Currently, everything just quits...
599 byte By
snapar at 2007-9-26 1:44:34
WHy does this not work: I get exception errors and errors like unparseable date. the string is "05231999"if (elementAttrValue.equals("DecisionDate")){System.out.println(elementAttrValue + " " + elmentValue);myString = elementValue;SimpleDateFormat myFormat = new ...
1500 byte By
isjm at 2007-9-26 1:44:38
Hi allCan someone please explain why this is happening. I have a modal Dialog that I construct from a frame, i.e.TransferPatientDialog d = new TransferDialog(this, "Downloading", true);Note there is no call to show()A stripped down version of my Dialog class:public class TransferPatientDialog ...
1540 byte By
dolzer at 2007-9-26 1:44:40
I'm trying to write a java program that will give me the same results as the unix "cksum" command. Is the CRC32 standard used in java1.2.2 different then what is used on unix operating systems?public static long checkSum(FileInputStream is){ CheckedInputStream cis = new CheckedInputStream(is, ...
922 byte By
suolon at 2007-9-26 1:44:41
Hey people,I've been killing myself with finding any light to my problem.This is what I am trying to do...1. I have a flat file with fields in a fixed position format..ie."Name Number Info Date ""Name1Number1Info1Date1"where positions 0-5 is the Name; 6-12 is the Number; 13-17 is the Info; and ...
922 byte By
suolon at 2007-9-26 1:44:42
Hey people,I've been killing myself with finding any light to my problem.This is what I am trying to do...1. I have a flat file with fields in a fixed position format..ie."Name Number Info Date ""Name1Number1Info1Date1"where positions 0-5 is the Name; 6-12 is the Number; 13-17 is the Info; and ...
250 byte By
virelay at 2007-9-26 1:44:43
Is it possible to create a JTree with the tree nodes being of the JPanel type where the JPanel containins multiple JLabels that can be dynamically modified? If so, how would one begin to produce such a thing?Thanks,Suzanne
I was wondering what it takes to create a java software development company? I know you have to have a couple of employees and computers but what else do you have to have? And how would you get it?
90 byte By
6tr6tr at 2007-9-26 1:44:48
What exactly is InheritableThreadLocal Storage, and how exactly do I use it?
2044 byte By
genus1 at 2007-9-26 1:44:49
It appears that FileReader and FileWriter were developed with different default charSets.I cannot find this problem as a bug or discussion and it pertains to 1.4.0 beta.When I write to a file the characters are as expected. When I look at the characters read in with the debugger they visually ...
I have a couple of applets on a site that work fine for me. But a few machines only see a grey box when viewing the applet and have the following error in the java console in ie.java.io.FileNotFoundException: for a couple of classes that are in the same jar file as the main applet class. If I ...
399 byte By
rayaduR at 2007-9-26 1:44:53
Does anyone have ideas about displaying two rows of table headers. The first is tied to the second. For Example , first table header has two columns "1" and "2", and the second table header has 5 columns "3","4"(belonging to "1") and "5","6","7"(belonging to "2"). Also all the rows in the table ...
My English is poor! I have a problem!How to get that day before seren days of today,and coveren(change) to string varilble. quest that because I need make this SQL.select * from table1 where theday=today-7
922 byte By
beckwest at 2007-9-26 1:44:59
I have a JButton that displays text rendered in HTML. ie. JButton but1 = new JButton("<html><STYLE=\"font-family: Dialog; font-size: 12pt\"><center>CurrentDate</center></STYLE></html>"); The reason for the STYLE tag is so that the font matches the rest of the ...