Is there a way to implement a KeyListener and MouseListener in the same applet? I already tried any ways I thought that wou开发者_高级运维ld work and I tried Google. :\\
OK so I have a JList and the content is provided with an array. I know how to add elements to an array but I want to know how to refresh a JList... or is it even possible? I tried Google. :\\
OK so I\'m trying to output the current string from an array that was put into a list... However when I click on the list I get a NullPointerException... :\\
How does o开发者_Go百科ne change the background color of a Java AWT List item? By that I mean a single item in a AWT List, not the whole thing.You\'ll need a custom renderer. That is, if you\'re using
I have a applet witch enables to play Hangman. Now i want to create web application with this game code. What is the easiest way to perform this action and开发者_StackOverflow中文版 what tools or plat
OK so I have this applet thats like this BorderLayout.CENTER - (Within this is JPanel) BorderLayout.EAST - (Within this is a new GridLayout (4,5)
I\'m trying to make a 4x5 Grid within a JPanel that is on a BORDERLAYOUT in EAST... soo here is pic: Here is the code:
Sorry asking so many questions but believe me.. I tried Google first. :) When you use theg.drawIma开发者_如何学Cge in paint() on an Applet... is there a way you can remove it? What I mean is remove t
OK let\'s say I have this array: public int[][] loadBoard(int map) { if (map == 1) {return new int[][] {
OK so I have this applet which lets a player move his 32x32 character between tiles ... and anytime he is on the edge of the map then MOVES anywhere else... I get an ArrayIndexOutOfBounds exception. A