• Post Reply Bookmark Topic Watch Topic
  • New Topic

save image file from JEditorPane  RSS feed

 
Shaik Vali
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.. All ,
I am able to set the image in JEditorPane , I want to save the same image to some other folder which is in JEdiotorPane when click the save button . Please give some suggestion


Thanks
 
Nicholas Jordan
Ranch Hand
Posts: 1282
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

if(newFile.exists()) {
...................;//
}else{
newFile.createNewFile(){...[/code]

This oversimplified, and others will suggest not using file.exists() and .createNewFile() - that may not even be in the library implementation of File - but in one way or another there are numerous io tools already available, what does the data type to be saved?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!