• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

could u guys help me in this GUI problem

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can start by reading Java Tutorial on the File Chooser Dialog and
IO - Reading and Writing
 
reply
    Bookmark Topic Watch Topic
  • New Topic