Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (480)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (546)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  integrating an applet onto a swing panel  (Read 1016 times)
0 Members and 1 Guest are viewing this topic.
Offline emzic

Senior Member





« Posted 2007-05-21 08:59:48 »

hello, does anyone know of a possibility to display a java applet on a swing or awt panel in a regular java application?

thanks!

www.embege.com - personal website
webstart blendinspect - OpenGL BlendingModes visualization.
Offline broumbroum

Junior Member





« Reply #1 - Posted 2007-05-21 09:55:44 »

that is simple as adding a common component.
you will have to manually init the applet and then set its visibility on. Cheesy

::::... :..... :::::: ;;;:::™ b23:production 2006 GNU/GPL @ http://b23prodtm.webhop.info
on sf.net: /projects/sf3jswing
Java (1.6u10 plz) Web Start pool
dev' VODcast[/ur
jeffsu
Guest
« Reply #2 - Posted 2007-05-30 18:24:53 »

Will the applet painting be manageable independently of the swing, uh, stuff  <-- noob question

IE, if I take an applet with animation and multiple threads I developed previously and drop it into a swing app, will it still function the same?


I'm a little nervous posting here... the last time the response I got wasn't very friendly (or helpful)....
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Kova

Senior Member





« Reply #3 - Posted 2007-05-30 20:01:25 »

I'm a little nervous posting here... the last time the response I got wasn't very friendly (or helpful)....

what are you talking about, you got the answer and learned how to try to solve further problems yourself
jeffsu
Guest
« Reply #4 - Posted 2007-05-30 20:05:16 »

...sigh

Don't really think there's any point in going into it, but since you asked:

I had *already* searched google, and found nothing that helped me.  I had *already* tried calling the methods mentioned.  I was just hoping there might be some other way I was unaware or unable to find.

And, since I was posting in the "newbie" forum I had some expectation of openness / friendliness to basic questions.  My apologies, I will take my newbie questions to some other newbie forum from now on!


Offline Mr_Light

Senior Member




shiny.


« Reply #5 - Posted 2007-05-31 00:22:43 »

it's unfriendly to cough? must be a cultural difference. the coughing was about not understanding why the question was asked and implicitly asking if we might have misinterpered.

mind that must of us will be between 100km-20000km away, and thus won't be able to see whats happing on your screen. thus you have to tell us. and check that we understand you the way we should. (try looking up cognitive )

you shouldn't called the methods, you should override them and implement them to handle your case. those methods are points of entry/signal which you can use to do stuff at a certain time. To us this seems so trivial that we didn't consider that you would interper or assume as you assumed.

if the responses on this forum don't make your problem go away, post again. describe how you used the information profided and how it didn't yield the expected/wanted results. be discriptive; remember that java is also based on principle that verbose isn't a bad thing(there is reuse and ctrl+space) 

mind you we all started out at some point. Don't fear mistakes we've made them to and we've seen some and seen those of others, it won't likely provoke any emotion from most of us. As long as you'll listen we'll listen.

as for your actual question here:
It off course depence on how you call the applet (which thread),  and keep in mind that there is only one awt system per jvm(unless you hack I gues). I know this answer doesn't help you much but I somehow doubt writing a couple of pages here will help you either. so lets bring it back to the core: what do you expect to  be happing, what are you afraid off or how is it not working now and how should it work. etc.

It's harder to read code than to write it. - it's even harder to write readable code.

The gospel of brother Riven: "The guarantee that all bugs are in *your* code is worth gold." Amen brother a-m-e-n.
jeffsu
Guest
« Reply #6 - Posted 2007-05-31 03:44:12 »

Well,
Regarding the *coughing* it was pretty obviously meant to be belittling, which seems out of place answering an admitted newbie in a newbie forum.  I'm going to just move on and go away, though.   

Thanks for your response Mr Light.  It was friendly and helpfull.  I don't think this is the place for me, however.  You won't see me again.
Offline Kova

Senior Member





« Reply #7 - Posted 2007-05-31 17:28:49 »

strange character this one... hope he founds "appropriate" forum
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

atombrot (21 views)
2014-08-19 09:29:53

Tekkerue (21 views)
2014-08-16 06:45:27

Tekkerue (21 views)
2014-08-16 06:22:17

Tekkerue (12 views)
2014-08-16 06:20:21

Tekkerue (19 views)
2014-08-16 06:12:11

Rayexar (56 views)
2014-08-11 02:49:23

BurntPizza (37 views)
2014-08-09 21:09:32

BurntPizza (29 views)
2014-08-08 02:01:56

Norakomi (35 views)
2014-08-06 19:49:38

BurntPizza (65 views)
2014-08-03 02:57:17
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!