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

#1 jackofnothing  Icon 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?

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

Replies To: Creating buttons on JPanels in NetBeans

#2 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10804
  • View blog
  • Posts: 40,277
  • 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:
http://www.dreaminco...1&#entry1241597
http://download.orac...ting/index.html

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