1 Replies - 1786 Views - Last Post: 10 June 2011 - 12:37 PM Rate Topic: -----

#1 jackofnothing   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 16-December 09

Creating buttons on JPanels in NetBeans

Posted 10 June 2011 - 12:33 PM

I am trying to create a form and have been having issues creating buttons to Print, Email w/attachments and Export to Excel. Anyone know where I can go for a tutorial or website that has the information?

Knee deep in Java
Is This A Good Question/Topic? 0
  • +

Replies To: Creating buttons on JPanels in NetBeans

#2 macosxnerd101   User is online

  • Games, Graphs, and Auctions
  • member icon

Reputation: 12360
  • View blog
  • Posts: 45,474
  • Joined: 27-December 08

Re: Creating buttons on JPanels in NetBeans

Posted 10 June 2011 - 12:37 PM

For mailing, check out the JavaMail API. Note that it is a pretty complex API. If you aren't comfortable with Swing, I wouldn't suggest trying to tackle emailing in Java.

For printing, check out these tutorials:

For exporting to Excel, you could use an API like JExcel. The easiest thing to do, imo, would be to write the contents to a CSV file. When Excel opens a CSV file, it parses it into the tabular format.

I'm assuming these were what you are asking about, and you are comfortable using ActionListeners. Also, in Java, IDE isn't a big deal. It doesn't matter if you are using NetBeans, Eclipse, etc., as they are all fancy editors. Just stay away from the Java visual GUI Builder.
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1