Click here to Skip to main content
16,005,149 members
Home / Discussions / Java
   

Java

 
GeneralRe: Open source jars Pin
Brian Van Beek6-Jul-05 5:14
Brian Van Beek6-Jul-05 5:14 
GeneralWierd Message Format Pin
Brian Van Beek23-Jun-05 5:35
Brian Van Beek23-Jun-05 5:35 
GeneralTest for an empty string Pin
BrockVnm18-May-05 9:50
BrockVnm18-May-05 9:50 
GeneralRe: Test for an empty string Pin
Brian Van Beek20-May-05 6:39
Brian Van Beek20-May-05 6:39 
QuestionWhere did everyone go? Pin
BrockVnm21-Apr-05 5:13
BrockVnm21-Apr-05 5:13 
AnswerRe: Where did everyone go? Pin
jan larsen21-Apr-05 23:26
jan larsen21-Apr-05 23:26 
AnswerRe: Where did everyone go? Pin
Brian Van Beek22-Apr-05 10:53
Brian Van Beek22-Apr-05 10:53 
GeneralLaunching default Mail application Pin
BrockVnm19-Apr-05 4:14
BrockVnm19-Apr-05 4:14 
Hey,
I have a module that I have built that has uses swing. It has a table, an input panel and a bunch of buttons to do a few different tasks. The table is populated from the database and when the user enters his input vaules a column in the table gets populated. Now I have a button the user presses to print a report, a button the user presses to email his report and a user asked me to have a button that would just launch the email with the data dumped into the body of the email. So I have extracted the data and stored it into a StringBuffer. I have the data formated with tabs and returns. Now I am not sure how to lauch the default mail client. I tried doing it like so but it did not work because 1 my data was larger than 1K and 2 it does not support my tabs and returns:

cmd /c start \"\" \"mailto:?subject=test&body=" + body + "\""

Is there any way I can launch the default mail program and have my data dumped into the body of the email?

Thanks for all of your help! I have spent 2 days trying to figure this out and its driving me nutts! Frown | :(



There are 10 kinds of people in this world. Those who understand binary and those who don't.

We shouldn't assume something's debugged just because everyone in the whole world has access to the source code.
GeneralRe: Launching default Mail application Pin
Corinna John19-Apr-05 5:39
Corinna John19-Apr-05 5:39 
GeneralRe: Launching default Mail application Pin
BrockVnm19-Apr-05 5:53
BrockVnm19-Apr-05 5:53 
GeneralRe: Launching default Mail application Pin
Corinna John19-Apr-05 10:20
Corinna John19-Apr-05 10:20 
GeneralRe: Launching default Mail application Pin
BrockVnm19-Apr-05 10:32
BrockVnm19-Apr-05 10:32 
GeneralRe: Launching default Mail application Pin
jan larsen19-Apr-05 19:52
jan larsen19-Apr-05 19:52 
GeneralRe: Launching default Mail application Pin
BrockVnm20-Apr-05 1:40
BrockVnm20-Apr-05 1:40 
GeneralRe: Launching default Mail application Pin
BrockVnm19-Apr-05 6:23
BrockVnm19-Apr-05 6:23 
GeneralWow, a secret forum! Pin
Corinna John28-Jan-05 7:30
Corinna John28-Jan-05 7:30 
GeneralRe: Wow, a secret forum! Pin
jan larsen19-Apr-05 3:48
jan larsen19-Apr-05 3:48 
GeneralRe: Wow, a secret forum! Pin
Corinna John19-Apr-05 5:46
Corinna John19-Apr-05 5:46 
GeneralRe: Wow, a secret forum! Pin
Weiye Chen14-Jul-05 23:21
Weiye Chen14-Jul-05 23:21 
GeneralRe: Wow, a secret forum! Pin
Corinna John14-Jul-05 23:39
Corinna John14-Jul-05 23:39 
GeneralRe: Wow, a secret forum! Pin
Weiye Chen14-Jul-05 23:51
Weiye Chen14-Jul-05 23:51 
GeneralRe: Wow, a secret forum! Pin
Corinna John15-Jul-05 0:18
Corinna John15-Jul-05 0:18 
GeneralRe: Wow, a secret forum! Pin
badgrs16-Apr-07 1:04
badgrs16-Apr-07 1:04 
GeneralRe: Wow, a secret forum! Pin
Corinna John16-Apr-07 4:41
Corinna John16-Apr-07 4:41 
GeneralWell, it's still here... Pin
Shog919-Oct-04 10:02
sitebuilderShog919-Oct-04 10:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.