Stone Knives and Bear Skins

353 byte By asnotrocket at 2007-9-30 14:32:42
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 ...

How to extract email with attachments from outlook using java

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 ...

Help setting up web app connection pooling using Jakarta's DBCP

560 byte By aaabcdefg at 2007-9-30 14:32:45
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 ...

How to add a mouselistener on a TitledBorder

329 byte By nonakresal at 2007-9-30 14:32:51
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 ...

HTML editor

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?

writing "enter" or carrage return into a txt file

438 byte By silverdragon3001 at 2007-9-30 14:33:10
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 ...

occurances of a smaller string within a bigger

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 ...

help with a toString method

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 ...

bytes of memory reserved for arrays

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 ...

Run Swing program on remote sun solaris machine from windows workstation

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 ...

Track File Usage in Java

294 byte By MinaGavinmaur at 2007-9-30 14:33:23
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!!

Problem with latest IE update

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 ...

Hyperlink in an applet (to save files)

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!

What alternative wuld there be to using StreamTokenizer?

1069 byte By chris_5724 at 2007-9-30 14:33:39
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 ...

remote access

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?

how to set JFrame's color?

20 byte By aaa-bbb-ccc at 2007-9-30 14:33:44
thanks

Datagrams Over the Internet

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.

Anyone used CloudScape?

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?

key based compression

232 byte By sana_shabbir at 2007-9-30 14:33:55
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.

Thread

268 byte By srilkrishna at 2007-9-30 14:34:04
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.

Freeing up Memory

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!

Javamail problem

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 ...

Https and Zip File

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 ...

JFormattedTextField

408 byte By elliot.ng at 2007-9-30 14:34:18
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 ...

Volatile Keyword

1620 byte By mat430_2003 at 2007-9-30 14:34:24
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 ...

Casting an object whose type is unknown

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 ...

package com.bruceeckel.simpletest does not exist

311 byte By baxxterhp at 2007-9-30 14:34:33
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. ...

probs with LinkedList

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; ...

jdbc insert

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 ...

Need help creating a regular expression

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 ...

Request for comments

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 ...

Can enclosing instance for an inner class be null?

822 byte By JRTessier at 2007-9-30 14:34:48
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 ...

e-mail confirmation

256 byte By the_transporter at 2007-9-30 14:34:52
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.

Escaping $ sign

699 byte By ElangovanShanmugam at 2007-9-30 14:34:55
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 ...

installing my java app that requires javax.comm

422 byte By barbara_p1 at 2007-9-30 14:35:00
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 ...

Operations with dates?

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!!

Database Bug

464 byte By widiyantosg at 2007-9-30 14:35:19
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 > ...

Converting Bytes into String

236 byte By sachindere at 2007-9-30 14:35:20
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

Tree data in Memory

817 byte By newnprasanna23 at 2007-9-30 14:35:26
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 ...

FloatingDecimal

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.

Sample java program

863 byte By Rohit_India at 2007-9-30 14:35:47
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 ...

about microsoft word document parsing

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 ...

Converting Exponent value in decimal

152 byte By Java_Professional at 2007-9-30 14:35:54
While getting values from database I am geting values in Exponent form pls tell me how to convert that value in decimal from Thanks

sending email

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 ...

How to convert Hex String in UTF Format?

132 byte By sachindere at 2007-9-30 14:36:02
Hi Guys, Let me rephrase the earlier quesiton. my bad. how do i convert Hex String in UTF8 Format?thanks

eclipse xml plugin

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 ...

hwo to let JButton's shape is same as icon's shape

20 byte By aaa-bbb-ccc at 2007-9-30 14:36:14
thanks

include browser in the Form!

52 byte By DSPSystem at 2007-9-30 14:36:16
How i can include browser in the form?

Formatting Dates - Please Help!!!

1203 byte By staindfan0000 at 2007-9-30 14:36:17
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 ...

JVM environment makes my system reboot

1124 byte By carcophan at 2007-9-30 14:36:19
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, ...