473,320 Members | 2,164 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

A button that opens a window?

6
I'm new to this language so please be nice.
Now can I have a button display two numbers one static and one from a file, and when the button is clicked it opens a new window with .xls file data in it?

What I'm trying to build is a little apt that will display an account number and the balance in the account stored in a file displayed on the button. Once the button is clicked it will load a new window with the data from a different file in it, list the log of each transaction.

Basic code is what I'm looking for I would like to modify the code to learn the language, but working code so I can see what effects my changes has on the program.

Thank You So Much,
BMD
Nov 23 '07 #1
7 1342
JosAH
11,448 Expert 8TB
I'm new to this language so please be nice.
Now can I have a button display two numbers one static and one from a file, and when the button is clicked it opens a new window with .xls file data in it?

What I'm trying to build is a little apt that will display an account number and the balance in the account stored in a file displayed on the button. Once the button is clicked it will load a new window with the data from a different file in it, list the log of each transaction.

Basic code is what I'm looking for I would like to modify the code to learn the language, but working code so I can see what effects my changes has on the program.

Thank You So Much,
BMD
Hi, google for "Sun Java Tutorials". Sun has a great set of tutorials (including source
code) available. Pay special attention to the Swing tutorials; there's all in there and
a lot more. I can't give you a link now, we had a fine repository available for posters
but it's sort of lost now. I apologize; you have to google for the link.

kind regards,

Jos
Nov 23 '07 #2
BMD
6
Thanks for the quick reply,
I have accessed the site and there is a lot of information here. Lots of reading and I did find one code bit but lots of digging to do.

Is what I'm trying to do able to work in java.

I would like to have in the an apt that when loaded it displays the balances in accounts and when click will load a transaction file and if a + or - is clicked next to the account button it will add or subtract the amount from the balance. Kind of short but something to learn on.

Thanks, again.
BMD
Nov 23 '07 #3
JosAH
11,448 Expert 8TB
Read a bit more: there's a lot of example code in there. Maybe it doesn't exactly
fit your needs but if you want to learn and study how everything works you can
write your own perfect solution. You don't want to copy and paste something to
your computer that you don't (quite) understand do you?

kind regards,

Jos
Nov 23 '07 #4
BMD
6
You don't want to copy and paste something to
your computer that you don't (quite) understand do you?
Not really but that is how I learned VB, and I am a hands on person I like to see the changes I made and the effects on the program.
Still reading,
BMD
Nov 23 '07 #5
JosAH
11,448 Expert 8TB
Not really but that is how I learned VB, and I am a hands on person I like to see the changes I made and the effects on the program.
Still reading,
BMD
Good; happy reading. If you know the Java language already you can move straight
on to the Swing tutorials. You seem to want a JFrame and one or more JButtons.
The next step is to understand how ActionListeners work, coupled to your buttons.
Forget about those excel files for the moment; if you manage to have an up and
running frame and button in your application: hats off to you.

kind regards,

Jos
Nov 23 '07 #6
BMD
6
If you manage to have an up and running frame and button in your application: hats off to you.
Well I have that partly borrow code from a calculator, I used a jpanel not a jframe, now I need to replace the numberListener (from the calculator) with an open command to open the file. I also need to add four more buttons to add and subtract from the total.

This is almost fun....
BMD
Nov 23 '07 #7
JosAH
11,448 Expert 8TB
This is almost fun....
BMD
Yep, it can be when you apply the right attitude; please do so.

kind regards,

Jos
Nov 23 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: snake_2k | last post by:
The button in the datetimepicker class that opens the calendar is too small for my touchscreen users. How can I make a regular button that opens the datetimepicker calendar ? I don't want to...
4
by: yfng | last post by:
In a web form, I want the user clicks on one button and this button will trigger another button/link which will open a new browser window? How to do that? Is there any method like...
6
by: Sujan | last post by:
Hello all, Help me! -------------------- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <script language="JavaScript"> <!--
1
by: Hrvoje Vrbanc | last post by:
Hello all, here is what I'd like to do: I have an ASPX page with certain buttons that opens in its window, naturally. When any of those buttons is clicked, I'd like the action to happen in...
1
by: bob | last post by:
I have a button on a web form in which I am calling some javascript. The button opens up another browser window as a dialog box. The problem is that I do not want the page to be resubmitted first...
4
by: Carlo Marchesoni | last post by:
I have a button that opens a new Window (some kind of search-window), which is fired using JavaScript (btnSearch.Attributes=".....";) Now I need to run some code behind code BEFORE this JavaScript...
3
by: needin4mation | last post by:
Hi, I have an asp:button that has a ShowModalDialog script attribute added to it. When the ShowModalDialog opens the user is supposed to select some data which is then sent back to the calling...
2
by: Bruce | last post by:
Hello, I have a form in an Access 2003 application which opens maximized. Its CloseButton property is set to false. On this form I have a command button that opens a report in preview mode. ...
1
by: alnino | last post by:
Hi, On a form I have a command button that allows a user to browse for a file (PDF, Word, etc…). This command button then stores a hyperlink to the file within an associated txtfield in the table....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.