• Post Reply Bookmark Topic Watch Topic
  • New Topic

could u guys help me in this GUI problem

 
Abhi Chat
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was tryin to make a small application before i jump into my scjd project...

I was tryin to make a small swing based application. It has a menu and a adjacent screen to display results. Through the file menu..i can choose and go through any files(txt) in my computer. There is going to be a load button which esentially reads the file and displays it on the screen(full unformatted) and a analyis button whicch formats the file and displays the result.

The file im talkin of is like

NAME UNIT PRICE
java mug 2 9.99$
java book 3 19.99$
.....

The output

total price

price for java mug = 20
price for java book = 60
.....
total price = ...

guys could u help me in makeing the file menu and how should i do the open file option.. and then how would i be able to read the file and diplay it on the adjacent text screen.

Any form of suggestion would be helpful...

thanx

abhi
 
Joe Ess
Bartender
Posts: 9361
11
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can start by reading Java Tutorial on the File Chooser Dialog and
IO - Reading and Writing
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!