Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

~27.1K People Reached
Favorite Tags

35 Posted Topics

Member Avatar for redZERO

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.

Member Avatar for Samukelo
0
19K
Member Avatar for redZERO

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 …

Member Avatar for NormR1
0
2K
Member Avatar for redZERO

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 …

Member Avatar for NormR1
0
161
Member Avatar for redZERO

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 …

Member Avatar for tizon
0
138
Member Avatar for redZERO

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 …

Member Avatar for javalearn
0
586
Member Avatar for Dani

I design web sites. I don't really have the greatest knowledge, but I can learn if need be. I use DW.

Member Avatar for anuj_sharma
2
760
Member Avatar for redZERO

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.

Member Avatar for redZERO
0
437
Member Avatar for redZERO

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 …

Member Avatar for redZERO
0
363
Member Avatar for redZERO

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 …

Member Avatar for JamesCherrill
0
231
Member Avatar for redZERO

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]; …

Member Avatar for JamesCherrill
0
459
Member Avatar for redZERO

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 …

Member Avatar for Ezzaral
0
83
Member Avatar for redZERO

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?

Member Avatar for redZERO
0
102
Member Avatar for redZERO

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.

Member Avatar for peter_budo
0
65
Member Avatar for redZERO

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 …

Member Avatar for hell_tej
0
169
Member Avatar for redZERO

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 …

Member Avatar for Ezzaral
0
111
Member Avatar for redZERO

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 …

Member Avatar for redZERO
0
111
Member Avatar for atularora66

well, im not sure, but your code says [QUOTE]income = ITI1120.readInt( );[/QUOTE] and you declared income as a double. And provincial also relies on income for its value, so thats why it doesn't work.

Member Avatar for atularora66
0
104
Member Avatar for redZERO

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 …

Member Avatar for Ken Sharpe
0
73
Member Avatar for redZERO

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?

Member Avatar for Ken Sharpe
0
83
Member Avatar for amjad277

The else provides a fallback condition. Just a single if is there for one condition only. for example, if you put just an if in the code, it goes through one condition then continues with the code. with if-else, it checks the one condition, if that condition is not true …

Member Avatar for amjad277
0
99
Member Avatar for ali_shah

Well, add a method in the program which runs a batch file which can then compile for you. nobody is going to do this for you, don't demand us to do the project.

Member Avatar for redZERO
0
58
Member Avatar for redZERO

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 …

Member Avatar for redZERO
0
110
Member Avatar for esy928

This is how I would approach your problem: [code] import java.io.*; class homeWorklb { public static void main(String[] args) throws IOException { BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in)); String inPut; System.out.println("Please enter first integer"); inPut = stdin.readLine(); int num1 = Integer.parseInt(inPut); System.out.println("Please enter second integer"); inPut = stdin.readLine(); int num2 …

Member Avatar for esy928
0
134
Member Avatar for redZERO

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 …

Member Avatar for redZERO
0
81
Member Avatar for redZERO

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?

Member Avatar for VernonDozier
0
102
Member Avatar for Dragongamer

Use freewebs or something. Web hosting is so cheap, I don't know why you are fazed.

Member Avatar for roverfind
0
146
Member Avatar for Dani
Member Avatar for darsh999
0
158
Member Avatar for redZERO

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 …

Member Avatar for redZERO
0
75
Member Avatar for redZERO
Member Avatar for Grantmitch1
Member Avatar for redZERO

I want to pull a list or URL's from a database. They must go one by one, so should i make the table have one field called 'link', then whenever I call the top value, it performs the action, then deletes it, moving on to next url? Should i also …

Member Avatar for nav33n
0
270
Member Avatar for The Dude

I never cheat in Exam's, but in class tests I just look around and ask the answer.

Member Avatar for invisal
0
363
Member Avatar for redZERO

Hi, I would like to know a resource or simple solution for this, I have a mySQL database with lots of links. I need said solution to visit each link and download the HTML file for it. Like an indexer which is told where to index.

Member Avatar for digital-ether
0
127
Member Avatar for redZERO

hOW the hell do i stop getting notifcations when somebody has replied to my thread?

0
31
Member Avatar for redZERO

Hi what up. I'm a 15 year old web developer. I don't really know much about coding and programming, know only basic HTML. I do make up for it though by putting things together by breaking it into small pieces and tying it together. So once again, yo!

Member Avatar for zandiago
0
34

The End.