• 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

Bunch of questions... Networking in applets and more

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a few problems that need addressing.

1) How do you use networking in applets?
2) Is it possible to transfer graphics and such (Sprites for instance) over said network connection? Where would they be stored / how would they be accessed?
3) Are there any good java networking tutorials out there other than sun's set?
4) I'm currently looking into Java2d, however I wanted to know if:
A) It can easily create GUIs that are functional without much work (Themed GUIs even)
B) It can load indexed PNGs correctly (I read something about Java not supporting PNGs very well, but it was pretty old)


Thats it for now, thanks
 
Ranch Hand
Posts: 1847
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1) Applets (unless signed) can only connect to the server they are coming from.
Other than that, there's no difference to any other Java class.
2) Why shouldn't it be possible? It's just a datastream, what you do with it after you get it from the server is up to you.
3) Get O'Reilly's Java Networking book. It's the definite work.
 
Jonathan Rush
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1) How do I sign applets?
2) What about saving images to, I don't know... Temporary internet files? Are there any right violations there? Can you easily access files saved to a folder like that?
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

This wiki page explains how to go about signing an applet.
 
Ranch Hand
Posts: 490
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
IMO, signing applets is more trouble then it is worth, can be expensive also. Besides, many users will not allow a signed applet to run with the priveleges granted signed applets, which negates your efforts.

If you need write access on the client or need to connect to some random server, create a java application instead.
 
Jonathan Rush
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How so, Rusty?
And the main reason why I want to use an applet, is so that this can be used in Schools (Campus and otherwise), and other areas that restrict access in some ways.
Would Java web start be able to get around this?

Also, love the name... King of the Hill rules
reply
    Bookmark Topic Watch Topic
  • New Topic