Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (754)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (842)
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.
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.
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.
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?

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?
Pages: [1]
DesertCoockie (22 views)
2018-05-13 18:23:11

nelsongames (73 views)
2018-04-24 18:15:36

nelsongames (68 views)
2018-04-24 18:14:32

ivj94 (751 views)
2018-03-24 14:47:39

ivj94 (81 views)
2018-03-24 14:46:31

ivj94 (605 views)
2018-03-24 14:43:53

Solater (97 views)
2018-03-17 05:04:08

nelsongames (170 views)
2018-03-05 17:56:34

Gornova (388 views)
2018-03-02 22:15:33

buddyBro (1048 views)
2018-02-28 16:59:18
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 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!