Thanks for all the help :)
I am working on a text based game like you said.
I have a few questions though:
How do I set a boolean to true if something happens but have the default be false?...
Type: Posts; User: DusteroftheCentury
Thanks for all the help :)
I am working on a text based game like you said.
I have a few questions though:
How do I set a boolean to true if something happens but have the default be false?...
Thanks so much! :)That is SO helpful. Especially the checklist. I know most of the basics, I will learn the things you mentioned I am not familiar with. As for Swing, I am already pretty sufficient...
Hello Guys,
I want to develop a simple 2d action/exploration game in Java. I am thinking the theme will be mining. Where to start? What API should I learn? How much much work must really go into...
Thanks, works perfectly now :)
-Duster
Link not working for me. (4o4)
Thanks for the helping.
-Duster
Hey guys I have a simple question. Do I have to manually tell a panel to update or something? And if so how?
Right now using this code
import javax.swing.*;
import java.awt.*;
import...
Thanks Norm that worked like a charm! ;)
Also thanks for the definition, I hat not being able to use proper terms.
Thanks so much for the simple explanation!
-Duster
^this
Here is the peice of code Im talking about:
public void actionPerformed(ActionEvent e)
{
if (e.getSource() == button1);
{
int low = 1;
Thanks guys.
Tjstretches link did it for me. Thanks for helping :)
Also for a related issue,(Part of same code) how do I change the text of a JLabel when I am in a different block of code? It...
Hello,
I have a simple question. How do I use an if statement to check and respond to a randomly generated integer? For instance if the number is 4, it would print "Chicken"
but for 5 it would...
Thank you so much. It works!
What line do I remove? Sorry Im just not very familiar with the many technical terms.
Thank you so much,
-Duster
Wow what is a robot in Java? :eek:
It prints this:
...
What lines of code would you reccomend checking? And how? I understand your blog, but I do not see how that would apply here, because I dont really use numbers and integers and such, which if I did...
Could you explain what null means? And what kind of printlns? I know they can be used to catch exceptions but how?
Thanks for the help,
-Duster
Thanks, I checked the link and touched up on ActionListeners. I wrote this code,
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.JFrame;
public class...
I really dont want to just use the code given, I want to figure it out with help.
Here is my new code:
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import...
I appreciate this but I understand that spoon feeding is bad. I only needed a few lines of that and that is what I will use.
Thank you.
@copeg I understand, I accidentally spoon fed someone...
I just want it to add a pic to the panel by using ImageIcon. This is the image: 981
How would I listen to the actions? I know I can do "textbox1.getText();" to retrieve the text, but what code do...
Here is my code so far:
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class MainClass extends JFrame implements ActionListener
{
public static void...
Didnt see your post there. I shall try.
980This image might help better explain what I want:
Hey,
First of all please excuse my lack of technical terms.
I want to have a JTextField be able to accept commands, and have the commands change pictures, display text etc.
Is their a...
Ok, I understand.
Ill go read the rules.
Where exactly are they located?