Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JExcelApi and GUI

 
George Sarbu
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello !

I make a application with JExcelApi and GUI , for open a excel file and show the content .

My code:




The application work fine, but I want to add a button for make some calculations(e.g.: values_column A + values_Column B, and put the result in column C)
How can I do that ?


Thank you very much in advance
 
Darryl Burke
Bartender
Posts: 5148
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
George Sarbu wrote:Hello !

I make a application with JExcelApi and GUI ...

Really? And you've waited since 23 February 2006 to add a button?

http://netbeans.org/projects/www/downloads/download/ReadExcelUI.java

Please QuoteYourSources <- that's a link
 
George Sarbu
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry Sir, but I get the code from "java--.com", this week, not from 2006.
 
Rob Spoor
Sheriff
Pie
Posts: 20665
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then you've been lying to us, because you claim you wrote that code, yet the file from netbeans.org is the exact same except a) without all the extra line breaks, and b) with Created on 23 February 2006, 16:13 in the file's initial comment. You couldn't have written this code this week if the file says 2006.
 
George Sarbu
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I get the code from "java--.com"(not from netbeans .com); so, I don't write myself that code.
And I make a GUI application with that code, this week.


That code is free to use.
 
Rob Spoor
Sheriff
Pie
Posts: 20665
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please provide a full link to where you found this document.
 
George Sarbu
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

** = nb
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> but I want to add a button....

extremely easy if it wasn't netbeans-generated code (particularly the layout).

convert it to non-netbeans (or hand-written) code, and there'd be plenty here
willing to help.
 
Ranganathan Kaliyur Mannar
Bartender
Posts: 1101
10
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
George Sarbu wrote:The application work fine, but I want to add a button for make some calculations(e.g.: values_column A + values_Column B, and put the result in column C)

If it is NetBeans generated, then you can just drag the button from pallette on to the form (in 'Design' mode). However, to understand how the buttons are laid out, you would need to understand layouts. To perform an action on a button click (like add in your case), you need to write action listeners. You can read about actions here
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic