Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+4
Strength to Decrease Rep
-1
68% Quality Score
Upvotes Received
6
Posts with Upvotes
6
Upvoting Members
6
Downvotes Received
3
Posts with Downvotes
3
Downvoting Members
3
6 Commented Posts
~65.5K People Reached
PC Specs
Windows XP/7 My crap 502mb RAM and 1.60ghz dual core Intel processor.
Favorite Tags
Member Avatar for mangopearapples
Member Avatar for Doctor Inferno
Member Avatar for Translucentbill

[CODE]import java.awt.*; import javax.swing.*; import java.awt.event.*; class ImagesClicking implements MouseListener{ public static void main(String[] args){ new ImagesClicking(); } public ImagesClicking(){ Image image = new ImageIcon("").getImage(); //or whatever way you get your image. image.addMouseListener(this); } public void MouseClicked(MouseEvent e){ int ClickedCount = e.getClickedCount(); if(ClickCount > 0){ //Stuff to do when image …

Member Avatar for goodtaste
0
1K
Member Avatar for mangopearapples

Hey everyone, I'm trying to make a button have an image, it used to work but for some reason, now it doesn't. This is the error: [COLOR="Red"]Exception in thread "main" java.lang.NullPointerException at javax.swing.ImageIcon.<init>(Unknown Source) at Main.createImageIcon(Main.java:109) at Main.<init>(Main.java:82) at Main.main(Main.java:103) [/COLOR] I see that the error is the: [CODE]ImageIcon NewFileIcon …

Member Avatar for Moraes V.A.
0
355
Member Avatar for mangopearapples

So, right, I just started to use Photoshop CS4 and I've only been using it for 3 days. I love it. Not Nuff said though. Cause I know you want to see my artwork raight? Probably not but I actually feel quite proud of the stuff I've drawn... So I'll …

Member Avatar for AliTheChamp
0
240
Member Avatar for mangopearapples

Hey guys, I'm having a little bit of trouble here. I have a variable called Latest1 and it's value is some HTML and PHP code. I have a function that does document.getElementById().innerHTML = Latest1; So when that happens, it runs the HTML code but for some reason it doesn't run …

Member Avatar for mangopearapples
0
216
Member Avatar for mangopearapples

Hey guys, I have Windows XP SP3 and 502mb RAM (Rubbish right?) and 1.60ghz dual core processor. What's a fun game that would hardly lag at all with this sort of specs range? Thanks. P.S I know that Cube 2 sauerbraten is a good one for my laptop, so something …

Member Avatar for striker_1
0
196
Member Avatar for mangopearapples

Hey guys, I was wondering how I could make games with Java3D. I've used Java3D but only in static programs. How could I 'repaint' with Java3D (Make games and such)? Also, where could I learn more of Java3D? I've only learn't what I know so far from a few tutorials …

Member Avatar for elite01
0
287
Member Avatar for mangopearapples

Hey people, How could I make it so when I right click and file and click 'Open With..' and choose my program so it loads the file? I already know how to load the file from when the program is already running and you click 'load' ect... [B]But,[/B] I tried …

Member Avatar for mangopearapples
0
175
Member Avatar for mangopearapples

Hey guys, I just started to try and use OpenGL and I wanted to run an example but I get linker errors. The code is just fine but it has linker errors says the console. Linker Errors/Console: [CODE] [Linker error] undefined reference to `glFinish@0' [Linker error] undefined reference to `wglSwapBuffers@4' …

Member Avatar for Stefano Mtangoo
0
527
Member Avatar for eoop.org
Member Avatar for Phil++

You had convert.addActionListener(null); but there's no ActionListener because the ActionListener you asigned to convert is nothing, null. Put 'implements ActionListener' after extends Applet and put 'this' in convert.addActionListener.

Member Avatar for Ezzaral
0
272
Member Avatar for arshalan

Sigh... He's saying you don't sound realistic. That it only sounds like a dream and probably won't come true. People won't believe you, that this idea of yours will become major or at least known well.

Member Avatar for Momerath
-3
409
Member Avatar for mangopearapples

I've been making games for a Nintendo DS homebrew with PAlib and DevkitPro and C code for a while now but I was wondering if DS game development would be available with Java. If not the DS, what would Java be able to make games with? I know that Android …

0
91
Member Avatar for shookees

You could make a window by using JFrame from javax.swing. [CODE]JFrame window = new JFrame("This is my windows title")[/CODE] You could use a JTextField so the user can input into the text field. [CODE]JTextField UserInput = new JTextField("Text to go inside the textfield, optional")[/CODE] and you could have a string …

Member Avatar for ztini
0
77
Member Avatar for Katana24

In the class that doesn't work, you imported the wrong Timer. What you need is javax.swing.Timer and not java.utils.Timer or some other Timer.

Member Avatar for Katana24
0
92
Member Avatar for ajayb

Maybe try TheNewBoston tutorials on Youtube as well. They're very helpful to get started. Just do all the normal Java Programming tutorials and then goto the the API's and Docs. [url]http://www.youtube.com/user/thenewboston[/url]

Member Avatar for ztini
0
396
Member Avatar for WigglesMcMuffin

In your KeyPressed (KeyEvent e)class: int getKey = e.getKeyCode(); if(getKey == KeyEvent.VK_0){ //if key 0 is pressed }

Member Avatar for WigglesMcMuffin
0
104
Member Avatar for kingofdrew
Member Avatar for mangopearapples

So say I have 4 images: <img><img><img><img> and I don't want any spacing between them so the images line up. How can I do this? thanks.

Member Avatar for mangopearapples
0
94
Member Avatar for mangopearapples

I don't know why. At all. Just that it won't repaint! My code: [CODE]import java.awt.Graphics; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import javax.swing.JFrame; import javax.swing.JPanel; @SuppressWarnings("serial") public class Frame extends JFrame implements KeyListener{ JPanel content; int W = 200; int H = 200; public Frame(){ setSize(700,250); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setResizable(false); content = new JPanel(); …

Member Avatar for mangopearapples
0
178
Member Avatar for haribasker

Akill10...Wut? Also haribasker, (sorry for the swear but,) WTF?? Why did you post this thread if you didn't really have a problem... Eric Cute asks you a question and you say 'thanks for ur reply'?! Anyway, it works so what's the problem? Is this meant to be some kind of …

Member Avatar for masijade
0
8K
Member Avatar for mangopearapples

Hi, for some reason, my JScrollPane isn't working with mt JTextArea. Probably the most important part: [CODE] JTextArea TextArea; JScrollPane scroll; TextArea = new JTextArea(); scroll = new JScrollPane(TextArea); add(TextArea,BorderLayout.CENTER); add(scroll,BorderLayout.LINE_START);[/CODE] Whole code if you're interested in what I'm making: [CODE]import java.awt.BorderLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.BufferedReader; import java.io.BufferedWriter; …

Member Avatar for mangopearapples
0
277
Member Avatar for MooGeek

My awesome electrons powered resolution generated by my big fat awesomely cool brain is: Get more presents than last year. I only got 10 pounds(GBP) this year :( Do my homework and not get carried away by Java. Complete my plan to make an semi-awesome Java app that will listen …

Member Avatar for ifiok.idiang
1
310
Member Avatar for stroper

[CODE] int timeLeft = 180; Timer countdown = new Timer(1000,new ActionListener(){ timeLeft--; if(timeLeft > 0){ guess(); } });[/CODE]

Member Avatar for mangopearapples
0
1K
Member Avatar for stroper

Use a Timer. [url]http://download.oracle.com/javase/tutorial/uiswing/misc/timer.html[/url] E.G [CODE] int timeLeft = 180; Timer countdown = new Timer(1000,new ActionListener(){ 180--; if(180 <= 0){ // Countdown finished } }); [/CODE]

Member Avatar for mangopearapples
0
307
Member Avatar for maipelo

Only advantage I can think of is that the viewer can't view the source...

Member Avatar for mangopearapples
0
75
Member Avatar for xshinichix

[CODE] //first java file public class Dummy1{} //2nd java file public class Dummy2{} //3rd public class Dummy3{} //MAIN CLASS public class Main{ public static void main(String[] args){ Dummy1 dum1 = new Dummy1(); Dummy2 dum2 = new Dummy2(); Dummy3 dum3 = new Dummy3(); String dum1Name = dum1.getClass().getName(); String dum2Name = dum2.getClass().getName(); …

Member Avatar for jon.kiparsky
0
188
Member Avatar for mangopearapples

Hi, I was wondering how I can use this type of list: [url]http://palib-dev.com/manual[/url] On the left, there are expandable lists. How can I use them? Thanks.

Member Avatar for mangopearapples
0
143
Member Avatar for hauda67