I'm trying to create a client/server app using applets and servlets. (This is my first time playing with servlets, so please forgive any very ignorant remarks.) It looks fairly straightforward to make applet/servlet communication work when the applet makes requests to which the serlvet...
I'm trying to do some animation with a pretty good frame rate. I've heard this can be done by doing all the "drawing" onto an array of ints (where each int represents the RGB(a) values of a pixel) and then dumping the array to a Component (Frame, Panel, etc.). I haven't been able to...
I'm planning to develop an image viewer / paint application with zooming capability (i.e. where you can zoom in x2, x3, etc., making the image in the viewport display bigger & smaller, and being able to use scrollbars to move around the zoomed-in image). Are there standard Java objects...
I have NOT tried to create a custom Layout Manager yet. I think a Layout Manager would be the best approach, since otherwise I'll just end up having to do all that repositioning code in the "window resize" (?) event listener anyways, right? I guess maybe my question should be...
I would say, split the snake up into "square" segments, with each segment occupying a coordinate on the map. When the snake moves, all you really need to do is add a new "head" segment 1 coordinate north, south, east, or west of the current "head" and remove the...
I'm having layout problems, which I'm hoping will be easy to answer.
I'm trying to make a row of smarticons in my Frame. I made an ImageButton class and created several instances of it that I added to a Panel that's set up with a FlowLayout. This by itself works great if I just add the Panel...
<b>Excellent! Groovy! That did the trick!</b><br>So palbano, is there some book, web site, guru, or other source of important-but-not-obvious information such as "<FONT FACE=monospace><font color=blue>Component.update ()</font></font> paints the background color before calling <FONT...
<b>I made the below application to see if I could implement double-buffering to<br>avoid flicker during animation. I did the double-buffering, but I'm still<br>getting flicker. It appears to be caused by the MyFrame.paint () method<br>painting the Frame background before...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.