No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hi guys I can't seem to get a new line in a [CODE]JOptionPane.showMessageDialog(null, " ");[/CODE] statement. I try the /n command, but it still doesn't seem to work. Is there any way I can get a paragraph in a dialog box like this? Thanks. |
|
Hi everyone I have a project that I have created in Netbeans. I would like to deploy it as a JAR file, so i have "build"'ed it and I have a jar which runs nicely in the /dist folder. Problem is, the program in question requires reading from and writing … |
|
I know that i might be jumping straight into the 'deep end', however I want to make a program which accesses a file (.txt for example) over the network. For example, you type in the IP Address of the computer where the file is stored, and the program reads from … |
|
Hey guys This is more of a question of how people generally do things. Often in programs involving a GUI, I need to have more than one logical 'screen', for example if you were filling in a form, you would click "Next" and the next 'screen' would appear showing completely … |
|
Hi guys I am trying to build a program which scans data from a text file, but I keep getting an error when trying to compile it. The code [CODE] import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.Scanner; import java.io.*; class anything extends JFrame { public anything() { File stuff … |
|
Re:
Do you do freelance work as a web designer or web developer? If you do custom work for clients, you're welcome to advertise your service in our [URL="http://www.daniweb.com/techtalkforums/forum52.html"]Custom Services For Hire[/URL] forum within the Webmaster Marketplace. |
|
Hi guys, I am using boolean variables as flags in a program and i want to be able to invert the value. for example if the current value is true, then it must be changed to false; doesn't matter if i don't know what the current value is. |
|
Hi guys, I want to paint multiple layers of images onto one image. I'm going to be using BufferedImage for this. How would I go about painting these multiple images onto one (in essence creating a new image. sort of like a collage)? Would i get the graphics context and … |
|
Hey guys I'm using JLayeredPane because i want three distinct layers in my program. terrain, buildings and then characters. I thought that JLayeredPane was easily the best choice for this context. The problem is, I have only seen people *adding* components to their layers. I need to do my own … |
|
Hi guys I want to take an image and cut it into blocks, then store each block in an array of bufferedimages. I have tried many things [CODE]public void splitImage(int cols, int rows) { int w = thePic.getWidth()/cols; int h = thePic.getHeight()/rows; int num = 0; tileset = new BufferedImage[w*h]; … |
|
Hi, i'm making a class which runs on a different thread to the main class. I want this thread class to listen for keyboard events and then I will have specific action from there. The thing is, I don't know how to even start. I read that setFocus can only … |
|
I was wondering do all programs have a unnamed thread by default? For example, if i have a very basic program, can i put Thread.sleep(int) anywhere in it and it will make the program sleep for a set amount of time? |
|
Hi I am having problems with BufferedImage. What i would like to do is create a bufferedimage from an image stored on the hard disk. For example, i create a new file pointing to this image file. From this I would like to create a BufferedImage. |
|
Hi, I just wanted to ask for some help considering images. What I would like to do is take an image and then split it up into blocks of a certain dimension (say, 20x20). Then I would like to put these blocks into a 2D array. I tried searching for … |
|
Hi I'd like to use an array to store values of particular things. I would like names to correspond to each value in the array. What I was thinking was, should I perhaps create 2 arrays: String[] and int[]. Then, when I call data from say example_int[1] I call the … |
|
Hi again What is the name of the component in programs where there is: a 2 character text field and on the side there are up and down arrows to increase or decrease the value in the text field. There is usually one in the "Print" dialog in MSWord, with … |
|
Re:
I'm new to java and we have to create a program telling the user how much of their income will be taxed based on rates given out by the government of Canada. I am getting 2 errors, one saying that "variable federal might not have been initialized" and the other … |
|
Hi, I want to build my own simple 2D RPG in Java. Whilst I am new to Java, I do understand the fundamentals of OO programming, and I am quick to learn, as long as someone isn't too impatient. I just wonder if there is anybody who can check my … |
|
Hi, do any of you know any good resources for (2d) game development in java? I want to build a game but need a good tutorial/resource for such a thing. Can you help? |
|
Re:
Hello, does anybody know what is the difference between thies two codes? [B]1- With this code I get "NullPointerException at process1.getCurrentNode();"[/B] public void signal(ProcessEntity process) { ProcessEntity process1 = getEntityManager().find(ProcessEntity.class, process.getId()); if (process1 == null) { try { Thread.sleep(5000); } catch (InterruptedException e) { e.printStackTrace(); } signal(process); } NodeEntity currentNode … |
|
Re:
hi i m the student of bcs 6th term and i have a project in java and i am new to java plz help me how to create the IDE in java [B] project operation[/B] it can have all the editing capabilities it can compile the source code it can … |
|
Hi, I want to build my own simple 2D RPG in Java. Whilst I am new to Java, I do understand the fundamentals of OO programming, and I am quick to learn, as long as someone isn't too impatient. I just wonder if there is anybody who can check my … |
|
Re:
Hello! its me again, I need a liitle help. Our teacher gave us a homework where we need to create a program that will determine the larger of the two inputed number, plus we have to determine if the input is an integer or not. Ive already coded the program, … |
|
Hi, I don't want you to do the project for me, but I would like to ask about the logic behind building an RPG in java. You would have to assign a picture for trees and houses and stuff right? Then would you create an array and assign each map … |
|
I have not got javac on my computer, but I do have java. How do I get javac? I haven't downloaded the jdk yet because apparently it comes with Java as well, adding more to the download. can I just get JDK? |
|
Re:
If anyone would help me....I am working on a website that has 4 links off the original, if there is anyone who knows where I can go, who I can see...or anything it would be appriaciated |
|
Re:
Typing link:site.com into Yahoo! shows me a huge amount of backlinks from a wide variety of domains. Typing link:site.com into Google shows me a very small selection of backlinks, most from just a handful of domains (no idea why). Now I know that Google backlinks spit out completely old data … |
|
I have a script which takes the variable from a form and puts it into a mysql table. There is an entry, but inside the field it is blank. I have attached screenshots. This is my code [CODE] // prepare form values for insert $URL = mysql_real_escape_string($_POST['url']); // Make mysql … |
|
Re:
Hello one and all. In simple terms Im quite an amateurs, but learning fast. I have just finished making a web email form, and have found a problem. I need PHP, so I looked at what I made and using the help of a mate (who is quite skilled) we … |