• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

JExcelApi and GUI

 
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
 
Bartender
Posts: 5167
11
Netbeans IDE Opera Java
  • 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.
 
Sheriff
Posts: 21842
105
Eclipse IDE Spring VI Editor Chrome Java Ubuntu 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
Posts: 21842
105
Eclipse IDE Spring VI Editor Chrome Java Ubuntu 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
 
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.
 
Bartender
Posts: 1104
10
Netbeans IDE Java 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
 
I just had the craziest dream. This tiny ad was in it.
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!