Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (539)
Games in Android Showcase (132)
games submitted by our members
Games in WIP (603)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Java Game APIs & Engines / Java 2D / Re: Very strange problem with animation on: 2004-09-11 21:57:28
One of the things I tried early on was having it load all the imageicons from the animation file as soon as the application loaded.  I waited a little bit to give it time to do this, then pressed the button that told it to specifically load the images fresh from the file.  It still had the same problem.
I also tried dinking with media tracker then and it didn't seem to relay any failure.  Then again I'm pretty inexperienced with media tracker, so I ought to try it again.
I'll be glad to look into synchronizing the method(s), using media tracker, and imageio, though I'm not sure what you meant by imageio.  Right now I'm busy with schoolwork though.
Thanks,
qb_mon
2  Java Game APIs & Engines / Java Sound & OpenAL / getting around the ports issue on: 2004-09-10 23:46:29
It's to my understanding that you can't really create Port instances because of a glitch in the programming of Java.
Thus currently you have to use mixers to create sound.
Is there any fix for the glitch?
If not, what's the best way to make sure a program will run with any mixer?
3  Java Game APIs & Engines / Java 2D / Very strange problem with animation on: 2004-09-10 23:32:32
I'm working on an animation class for a game I'm making.
In the class it takes a series of imageicon instances and stores them in an array.  It uses a Thread defined in an inner class to create animation with them, swapping between the pictures.  It outputs the current image to a series of JPanels using the paintIcon method of the ImageIcon class, so that they all display the exact same animation at the exact same time.  This part works fine.
It also can save them all together in a file using ObjectOutputStream.  The problem occurs when I load them from the file using ObjectOutStream.  I immediately set out to use that same thread to animate them.  Right now I'm testing it on 6 JPanels.   The odd part is that the last five animate perfectly fine.  But the first one sort of "flickers" at first.  At the current speed of about an image change every second or two, it clearly displays nothing during some of the first few image show ups.  This seems to happen randomly.  After enough images move along, the problem stops completely, even if I have the images cycle back to the beginning and start animating again.
I spent 3 hours testing out the problem and drew the following conclusions.  1) The problem does not occur until I execute the readObject statement.   (Of course if I do this, I have to have a bunch of imageicon instances that aren't from a compiled file)  2)  If I put a statement that tells it to paint one of the images to a particular JPanel before the for loop that prints them all, that particular JPanel is the one that flickers instead.
I tried running it on a machine in a computer lab and it worked fine there.  Thus I suspect it is a system specific problem.  Someone else suggested updating my graphic drivers and downloading a new version of the java runtime environment.  I downloaded a newer driver for my s3 prosavage ddr card, and I have a recent copy of the java runtime environment.  I'm not sure if JBuilder uses that directly, though.  I have JBuilder Personal 9.0.
If anyone has insight as to what's causing my problem, please let me know.
Thanks,
qb_mon
4  Discussions / General Discussions / Re: Need a moveable component that's not like a JF on: 2004-09-10 20:33:41
Thanks, that was very helpfull.
-qb_mon
5  Discussions / General Discussions / Re: Need a moveable component that's not like a JF on: 2004-08-22 05:37:17
Yes, I feel like an idiot for not knowing that.  I pretty much breezed past it in the book.

I was wondering:
Is there a way to restrict a JDialog so it can only be moved within a JFrame and cannot leave it?

Is there a way to remove the close button in its top right?

Thanks,
qb_mon
6  Discussions / General Discussions / Need a moveable component that's not like a JFrame on: 2004-08-22 02:24:29
I'm working on the GUI for an RPG maker.
Right now I have a little window that is supposed to pop up on top of what they're working with and let them make some choices.  I'm using a JFrame right now.  This of course means I get the nice little box at the bottom of the Windows DeskTop showing it is a frame that's open and this also means that it has close and minimize buttons whether I like it or not.
I was wanting to have a little moveable component pop up without these problems but that can still be moved over the other work area.   I might decide to to go ahead and put a close button on it.
What would the easiest way be to do this?
Thanks,
qb_mon
Pages: [1]
 

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

The first screenshot will be displayed as a thumbnail.

rwatson462 (33 views)
2014-12-15 09:26:44

Mr.CodeIt (23 views)
2014-12-14 19:50:38

BurntPizza (51 views)
2014-12-09 22:41:13

BurntPizza (84 views)
2014-12-08 04:46:31

JscottyBieshaar (45 views)
2014-12-05 12:39:02

SHC (59 views)
2014-12-03 16:27:13

CopyableCougar4 (59 views)
2014-11-29 21:32:03

toopeicgaming1999 (123 views)
2014-11-26 15:22:04

toopeicgaming1999 (114 views)
2014-11-26 15:20:36

toopeicgaming1999 (32 views)
2014-11-26 15:20:08
Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

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
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!