User Profile
Collapse
-
Seems like a... boring read, but it's also exactly what I asked for, so thanks! -
What's a good Java book for an "experienced" programmer?
Hey, I haven't posted on this forum in several years (I made this account a long time ago, hence the incredibly stupid username :/) and since then I've become a reasonable C++ programmer (reasonable to the sense that I've made a few applications in Qt and the likes). Anyhow, I'm taking AP Computer Science this summer and I currently don't know squat when it comes to Java. I was hoping that you guys could recommend me some Java books that I can... -
Begging Programming with Java For Dummies 2nd Edition uses Java 5.0...Leave a comment:
-
I have been learning. But I ecountered a problem because I couldn't find what to do. I will learn and learn how to program more if you tell me what to do. I'm not asking for the actual code. I'm asking for help on what to do. Now could you please help me....Leave a comment:
-
In you main.cpp file or whatever you named it at the top did you put:Code:#include<header.h>
Leave a comment:
-
Angry aren't we. But anyways I was asking how to get it to add the numbers. And I don't want it to add two, but as many as you would like. Like what the standard calculator at calculator.com (which I said in my first post in the this thread) can do. And my previous calculators weren't as good. They were text based which can have a lot of errors if for example you asked the user to enter an operator and they typed "aksdfhasdf ". Other...Leave a comment:
-
I wasn't dumping my code. And look at the post below yours....Leave a comment:
-
Calc Question
Hey guys. Once again I am making a calculator like I do so much. I ran into an error with this program though. I just couldn't figure out how to make the operators work. I want this calculator to be like a standard calculator on http://calculator.com/ So how do I do this? Here is my source code:Code:/****************************** ** Program Name: Calculator ** ** Date: June 3rd, 2008 ** ** Author: Edward Sanger
-
Read this: http://javaboutique.in ternet.com/tutorials/Java_Game_Progr amming/PongKIEng.htmlLeave a comment:
-
The problem is you are telling it to draw the String AuthorName but it doesn't know what AuthorName is. You need to declare the variable AuthorName of the string type so that it will know what to print out.Leave a comment:
-
Okay that could work. The user could just scroll back up but whatever....Leave a comment:
-
Different Browser Question
It seems like most of the questions on this forum are just involving different browsers. No one asks questions about -
-
Clear Output Pane
Is there a method I can use to delete all the text that has been outputted using the
System.out.prin tln(""); method? -
Usually just things like g.drawString("a sdfsdg", 123, 123); and things like that....Leave a comment:
-
Applet Question
Why is it whenever you scroll up and down on a web page an Applet flashes. -
No problemo. And here is some code that should make the program work:Code:import javax.swing.*; import java.awt.*; import java.awt.event.*; public abstract class gui implements ActionListener { public static void main(String[] args) { JFrame frame; final JButton button1, button2; final JTextField textfield; Container contentPane; FlowLayout layout;
Leave a comment:
-
No. And that would get everyone who visited your site REALLY angry. They wouldn't be able to leave. But you could make loads of money bombarding them with popups.Leave a comment:
-
I read all the replies. I was just giving him advice. That's how I write my code.
I create a JFrame, I create a Container, a Layout or I use setBounds, I make my components, I add my components to my Container, I set the actions that they preform to whatever I want, then I do all my frame setting things like the title and the default close operation. It always works out for me...Leave a comment:
-
You could try approaching the problem a different way and instead of making one event create 2 events for each button. Do something like this for each button:Code:button1.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent button1) { String value = chrisField.getText(); button2.setText(value); } });
Leave a comment:
No activity results to display
Show More
Leave a comment: