I am using an older version of JBuilder and am wondering how I canget it to work with JDK1.4.2. I see a number of postings about it,but all of them are a few years old and I see a varying amount ofsuccess with some renegade patches they used.Has anyone successfully done this with something as ...
321 byte By
suprajav at 2007-9-30 14:32:44
My application will be getting emails to the server from the users.what it want to do is,it want to fetch the unread emails sent by the specifed users and it want to store the attachments from the mail into the specified folder in the harddisk of the server.Please let me how it will be done in ...
I have downloaded Jakarta's DBCP jar files and looked at their examples. I got a neat little example up and running that works quite nicely. I now want to integrate this connection pooling into my web-application. Problem is that I have read somewhere that static variables are not good in web ...
Hi,I have a challenging problem:I have a JPanel with a border around it which i set with setBorder(new TitledBorder("test")).How can i get a mouselistener on this border? Not on the panel but only on the word "test " of the border?Which genius can solve this problem?Thanks ...
100 byte By
syncat at 2007-9-30 14:33:02
Is there any set of classes or a small framework to emde into my app for editing HTML?
Hello, I am trying to write to a file. I am wondering how to get a carrage return into the text file. I used a for loop and type cast the ascii code into a char. the for loop goes from 0 to 127 but when the program writes to the file, none of them are a carrage return (enter). If anyone can ...
313 byte By
Andy_B. at 2007-9-30 14:33:15
hello!If i want to fin the startpositions of String hello within String helloheyhelloheyhelloheyhellothat is 0 ,8 ,16 ,24How do i do?....I have this:System.out.println(word.indexOf(word2));it gets me the first position....thanks for you help im stuck ...
844 byte By
Romaniuz at 2007-9-30 14:33:16
I have this ListIterator:public void displayMyHardware(){Iterator components = myHardware.iterator();while (components.hasNext()){System.out.println(components.next());}} but when it shows the contents of my list, they are in the format Component$CPU@26e431. What should my toString method look ...
346 byte By
annie613 at 2007-9-30 14:33:17
I am not sure if I even really need to know this for programming java, but its bothering me not to know...i know that an int stores 4 bytes of memory and a char stores 2 bytes...is it the same for an array? like if int a[100];does mean we give 100 cells * 4 bytes of memory?thanks in advance ...
397 byte By
Sisir_C. at 2007-9-30 14:33:18
Hi ,I have a remote Sun Solaris unix machine and a windows workstation.I have developed some swing application and placed it on remote unix machine. Now I want to run that application on unix machine from my windows workstation and want to see the GUI on my windows workstation.Please someone ...
Hi. Is it possible to track the number times a file is accessed/viewed in Java? I need this functionality to the new requirements for our project. Wherein the user will have an option to delete files that are less used/viewed. Any help will be greatly appreciated. Thanks!!
535 byte By
zildgian at 2007-9-30 14:33:24
Hello to all ...Yesterday, before I made the latest update for internet explorer KB867801 I have an applet that makes a request like this:getAppletContext().showDocument(new URL(javascript:appletSizedWindow("/APP",621,518)));It just open another applet in a new window.Until I made the update ...
263 byte By
choyos77 at 2007-9-30 14:33:33
Hi All,I want the user of an applet to be able to save a selected file ussing a button. I was wondering if that might be done with an hyperlink or something like that. How can I add an Hyperlik to a button? Any other ideas?Thanks much!
Hello,Currently I am using a StreamTokenizer to parse data from a file. The problem is that it goes way too slow. I'd like a faster way to process the data. If there is a better alternative to using StreamTokenizer I'd like to know. I've looked around and haven't found anything. I though ...
131 byte By
kvodski at 2007-9-30 14:33:41
Does anyone know how I can remotely access a machine and execute some instructions on it from within a java program?
thanks
259 byte By
matp93 at 2007-9-30 14:33:46
I made a chat program that uses datagrams. It works fine when i run it by myself but when i get someone else to recieve the messages from another computer it doesn't work. Why do my datagrams work over my own computer but not over the internet.
144 byte By
dubwai at 2007-9-30 14:33:54
I just saw somethig about IBM makig CloudScape open source. I was wondering if anyone has any experience using it. Is it any good?
i want to compress a file throgh java but i want to compress in such a way that it will take password n then compress the file n at the time of extratction it will verify password n then extract the file.thanks.
Hi,If I get an Exception in the run() method of Thread then how can I capture that (Something like divide by zero error) and will the system crash/will there be any memory out of Exception if a Thread runs in an infinite loop?Thanks.
276 byte By
Ryltar at 2007-9-30 14:34:05
Hi,I am using mucho memory in my application and I was wondering what the best tactics for free up memory is. IE I have some JPanels that I only use once or twice... is there a way to erase them after their use is up? Any tips like that would help thanks!
756 byte By
Adi1000 at 2007-9-30 14:34:12
Hi i just finished up developing a way to send/recieve emails.I am using pop3 to recieve mails and smtp to send the mails.It behaves as follows when i click on INBOX to go to pop id:--The mails which i just recieve,in case they have big attachments say 1 mb atleast,it first take time in ...
1686 byte By
falzabit at 2007-9-30 14:34:14
I am having a problem with reading (downloading) a zip file from https-URL connection.the same code works fine with http + url connection.the problem I have that the file gets created but It seems to be corrupted as I can not open it with WinZip.Does anybody have an explanation or ...
Let's say I created the following JFormatted TextField:fldText = new JFormattedTextField(NumberFormat.getNumberInstance());add(fldText); When I typed in anything less than .001, the program automatically rounds to 0. However, I need to be able to type in a very small number. How do you prevent ...
I am confused with the keyword "volatile". Few questions.I have seen two different descriptions for this keyword.1) Processors store data in their own registers for more efficient use.In Multiprocessor environments, the "volatile" keyword will ensure that a piece of shared data is always picked ...
550 byte By
jd_brown at 2007-9-30 14:34:25
Hi,I have an array of objects of various types stored in an array of objects Object [ ]. I would like to iterate through Object [ ] and call an instance method on each one. If the method does not exist, a NoSuchMethodException is thrown and dealt with. Now, before I can call an instance method ...
I have a problem with source book code. Exactly with c03\Assignment.java. When I'm try to compile the programm there is an error: D:\Java\Code\c03\Assignment.java:5: package com.bruceeckel.simpletest does not existimport com.bruceeckel.simpletest.*;I don't know how can I fix this. ...
1393 byte By
Romaniuz at 2007-9-30 14:34:34
I've got a problem adding objects to a linked list. I can add an object without problems, but when i add a second object, the new object overwrites the data from the first element.I have a class Component with a nested class CPUpublic class Component{public String maker; model, speed, price; ...
814 byte By
cindy85 at 2007-9-30 14:34:36
PreparedStatement pst =conn.prepareStatement("INSERT INTO s_elrn_data VALUES (?,?,?,?,?,?,?,?,?,?,?,?)");// Bind the column values into the PreparedStatementpst.setString(1, usid);.................. I am using this code to insert data in the table s_elrn_data. further code like ...
764 byte By
san1977h at 2007-9-30 14:34:38
I have a string containing the following.../f1/folder1/folder2/folder3/doc/companies/Yahoo/file.php /f1/folder1/folder2/folder3/doc/companies/MSN/logo-ahoo.gif /f1/folder1/folder2/folder3/doc/companies/Excite/afile.php/f1/folder1/folder2/folder3/doc/proditem/CompanyA/afile.php There will be ...
4464 byte By
scrotch at 2007-9-30 14:34:40
I just wrote some code to call methods from Strings so that commands can be issued to my app as Strings (from a file or network or command line, etc.). I thought I'd post it in the hopes that others might provide suggestions for improvements or maybe even benefit from it.It's an abstract ...
I have a class Solution, which defines an inner class, SolutionStep.In a third class I construct several SolutionStep objects, and later use them to construct a Solution.In this third class I have statements like this:-Solution solution = null;. . .aCollection.add(solution.new ...
Hi,I am programming an applet for a wedding website. It will contain name fields, e-mail fields, textbox etc. I was wondering how would I submit the information to an e-mail once the "submit" button is pressed.Thanks in advance.
How to escape dollar sign using RegEx? I m using gnu.regEx.RX. ///////////////////////////////////String message = "Print the value as <#1#>";String replaceWith = "$10,030.99";String pattern = "<#" + (i + 1) + "#>";if (message.indexOf(pattern) >= 0) {RE regexp = new ...
I have an app that I provide in a jar file. It now requires javax.comm.jar which requires win32com.dll and the javax.comm.properties file.To run properly, it seems that the win32com.dll needs to be in the <jre>\bin directory and the properties file needs to be in the <jre>\lib ...
199 byte By
Asamper at 2007-9-30 14:35:04
Hi.I need to get the actual date in a variable and the next day in another variable.D1 = 03/08/2004D2= 03/08/2004how can I do it? thanks a lot!!
Hi,I have this field in my database called "sending_time".If in this field, I put "04/08/2004 1:10:00 PM" then the time now is "04/08/2004 1:05:00 PM" then how should my SQL statement looked like? My current SQL statement is :SELECT * FROM schedule WHERE sending_time BETWEEN sending_time > ...
Hi Guys, do u know how to convert bytes into String? Im reading data from a serial port which is in byytes and need to convert it into human readable format. need any inputs or sample code...thanks,Sac
Dear Friends,I need your good suggestion on the following,I am working on a GUI application. The data is nothing but a Tree. There are 6 levels and top most is Root node. In the remaining 5 levels each and every node can have any number of child nodes. The required data is in the form of XML ...
140 byte By
Dcaptain at 2007-9-30 14:35:46
hello..why is it that their is no documentation for FloatingDecimal class in the J2SDK API specification?thanks.
Respected sir/ madamI have one doubt related to the following java program...I didnt understood why the error is occuring in the following program..Can any body please tell me why this error is occuring ,might be I am weak at my basics ....package p1;public class A {protected int i=10;public ...
512 byte By
cdontula at 2007-9-30 14:35:49
I have to parse a microsoft word document which contains information as questiona and answers. uestions are of differant types(standard,combo box, checkbox,option list etc... ) I have got a evolution version API(Davisr offsor) using this i am converting word document to XML file then i am using ...
While getting values from database I am geting values in Exponent form pls tell me how to convert that value in decimal from Thanks
374 byte By
pelegk2 at 2007-9-30 14:36:01
i want to send email from my javain php i do this simple code : [CODE]ini_set("SMTP","192.168.4.200");ini_set("smtp_port","25");ini_set("sendmail_from","best@email.com");mail("who@ever.com", "problem on doors :", "error : ".$msg);[/CODE] how cam i do the same in java?thnaks in advancepeleg ...
Hi Guys, Let me rephrase the earlier quesiton. my bad. how do i convert Hex String in UTF8 Format?thanks
651 byte By
perseios at 2007-9-30 14:36:13
hi allIs there a free xml-editoring plugin for eclipse 3.0?I tried x-men, but it doesn't work with eclipse 3.0 because of other required plugins (org.eclipse.xsd and org.apache.xerces)I tried to install them but:- org.eclipse.xsd writes some stuff to the error-log, It seems to depend on a ...
thanks
How i can include browser in the form?
Hello to all you Java Gurus,Just to give u a little background into my problem, i am a co owner of a company and have a large customer database (dunno why but the database is in excel at the minute), however the lady who inputs new customers has entered the wrong date format for the last few ...
I couldn't find a relevant topic about this problem anywhere on the web, so I was wondering if anyone here using this forum has had similar experience, or could possible know the solution to my Problem...anyways the problem is that when sometimes I have a java applet running in a browser (IE, ...