21 Discussion / Question Topics
Remove Filter How can I send some data to a MySQL database? I'm using php. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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' … | |
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 … | |
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. | |
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(); … | |
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; … | |
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. | |
How can I read/write to a file? I don't mean on the local hard drive (C:// ect) I mean as in the files on the internet (Files from FTP). Like in webs.com, you upload files or create new files. Now if I created a txt file on there, how can … | |
How can I get a single line of text of a textarea? So like if I had "Hello Mellow Yellow" Then line 1 would be Hello and line 2 would be Mellow ect. How can I get that? Something like: [CODE] JTextArea area = new JTextArea(); System.out.print(area.getLineOfText());[/CODE] Thanks. | |
I tried to #include <GL/glut.h> but when I compile, I get a [link error] at WinMain@16 or Win@16 (I forgot). I don't exactly know why and I don't know what to do either. Can somebody help please? Do you need that header file? (To fix it?) Thanks in advanced. | |
How can I detect a collision between 2 images? E.G if(Image1 collidesWith Image2){} | |
I'm trying to make it so when I press ESC, it RestoreScreen() but it doesn't work. Now I don't know whether it's my method RestoreScreen() or my listeners. This is my code: [code]import javax.swing.*; import java.awt.*; import java.awt.event.*; public class main extends JFrame implements MouseListener,KeyListener{ public void keyPressed(KeyEvent e) { … | |
Why won't this work? I'm trying to make a ball appear and move along my screen but it's failing :'( . I'm :( and also trying to make it so when you press any key it restores the full screen but that's also failing. :'( Can anyone help? [CODE]import javax.swing.*; … | |
How can I develop IPhone games with Java? I've tried something called XMLVL but that doesn't seem to be up to date and I can't use it because they don't have anything I can download to use... So is there any other alternative? | |
Is there anyway to play an mp3 file in java? P.S I'm new here, hello world? |
The End.