Hi !
Featured games (85)
games approved by the League of Dukes
Games in Showcase (623)
Games in Android Showcase (176)
games submitted by our members
Games in WIP (674)
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 1184 times)
0 Members and 1 Guest are viewing this topic.
Offline emzic

Senior Devvie

« 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?

Offline broumbroum

Junior Devvie

« 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 @
on /projects/sf3jswing
Java (1.6u10 plz) Web Start pool
dev' VODcast[/ur
« 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 Devvie

« 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
« Reply #4 - Posted 2007-05-30 20:05:16 »


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 Devvie

Medals: 1


« 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.
« Reply #6 - Posted 2007-05-31 03:44:12 »

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 Devvie

« 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.

basil_ (37 views)
2015-09-30 17:04:40

shadowstryker (18 views)
2015-09-29 15:55:06

TheSpaceHedgehog (24 views)
2015-09-29 01:58:48

GamerC4 (47 views)
2015-09-24 21:10:38

GamerC4 (67 views)
2015-09-24 21:09:48

htuy (22 views)
2015-09-24 04:57:24

htuy (31 views)
2015-09-24 04:56:35

htuy (23 views)
2015-09-24 04:56:09

htuy (23 views)
2015-09-24 04:47:33

Roquen (59 views)
2015-09-21 12:54:28
Math: Inequality properties
by Roquen
2015-10-01 13:30:46

Math: Inequality properties
by Roquen
2015-09-30 16:06:05

HotSpot Options
by Roquen
2015-08-29 11:33:11

Rendering resources
by Roquen
2015-08-17 12:42:29

Rendering resources
by Roquen
2015-08-17 09:36:56

Rendering resources
by Roquen
2015-08-13 07:40:51

Networking Resources
by Roquen
2015-08-13 07:40:43

List of Learning Resources
by gouessej
2015-07-09 11:29:36 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‑
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!