• 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

Java Web Start

 
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I want to to select the .doc file from my local machine and want to process the files. I want this with the help of JWS. For that I have to prepare the Swing application to browse and then select the file. Can anybody share the code so that it would be easy for me to do the further coding.


Thanks in advance.

Kushagra
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am confused.
If you get the code, what "further" coding are you planning to do?
Have you read this?
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Specifically, what do you have so far, and where are you stuck making progress?
 
Kushagra Bindal
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I have generated two screen on Swings that will open the file and then after that will process on the same. But I don't seems it as much efficient in look. So thats why I was asking for a code in which I can see where was I lag.

If anybody can help me means for UI and look n fill perpective. Otherwise I have done most of my coding.

Thanks for all your support.

Kushagra
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm afraid it's still quite unclear what you have, and why that isn't good enough. For example, you mention how it doesn't seem efficient - what does that mean? If it works correctly, how could it be more efficient? If it doesn't work, then it's meaningless to talk about efficiency.
[ October 15, 2008: Message edited by: Ulf Dittmer ]
 
Ranch Hand
Posts: 349
Hibernate Eclipse IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Kushagra,

Can you please explain us clearly on what you have done so far? Do you have problems in the look and feel? Any alignment issues? If yes share us your code to help you.

Regards,
Ananth Chellthurai
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So far I haven't seen anything specific to JNLP in this thread, and I think it should be moved to the Swing forum. But then there really aren't enough specific details for me to know.

Kushagra, are you having problems with this code because you're running it in a JNLP environment? In other words are there problems which don't exist when you run it as an ordinary Java application? If not, let me know (either by PM or by posting here and saying so) and I will move this thread to the Swing forum for you.
 
Kushagra Bindal
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ya we can move this to swing forum and i think that will be better.

thanks
Kushagra
 
Maneesh Godbole
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Kushagra Bindal: But I don't seems it as much efficient in look.
If anybody can help me means for UI and look n fill perpective.[/QB]



Just a wild guess as you havent posted any screen shots.
You are getting the default LAF and you are not quite happy with it.

Add this as the first line in your main method

That should fix your problem.

PS. I hope you have gone through this article:
http://java.sun.com/docs/books/tutorial/uiswing/components/filechooser.html
 
Seriously Rick? Seriously? You might as well just read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic