Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to generate a html page when a button is pressed  RSS feed

 
shiva kumar nanda
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friends
How can i generate a html page when i pressed a button
thanks
shiva
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm probably misunderstanding what you are asking, but you can attach an ActionListener to the button, and in its actionPerformed method create the HTML file (which is just a text file, so you can use all the java.io.* classes.)
 
miguel lisboa
Ranch Hand
Posts: 1281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
have you read this thread?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!