Terry Stehle

Greenhorn
+ Follow
since Mar 24, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Terry Stehle

Im currently working on a chess program. Anyways I just created a custom panel and overriden the painComponent method. Something like this
public class BoardPanel extends JPanel{
public void paintComponent(Graphics g){
super.paintComponent(g);
g.drawImage(Board,0,0,this);
//Add for loop to draw image for each square
g.drawImage(Piece[Col][Row],add math to align piece x, and y);
}

}
22 years ago
I was wondering what would be the best way to change the direction of the text on the following compents. I would appricate any help, Thanks Terry
22 years ago
I would like to change the Java Virtual Engine in JBuilder 3.0 from JDK1.2.1 to JDK1.3.1. I would appricaite any help in this matter, Thanks Terry
Im currently trying to create my own multi player game site. I was wondering if anyone can give me suggestions on some host that would be ideal for this. I'm currently using Web Source. But they do not support JSP. I would appriciate any help, Thanks Terry
22 years ago
Ya I know its going to be more complicated than just a chat system. I still need to creat a database to keep track of each user, a chat room needs to be created. But getting information from one user to the other is a good beginning. I figure it will half to be multi-thread application. Which I used to simulate the chat system on my computer. Each time some one connects to the server, a seperate thread would start for that user. My host does not support JSP it support ASP. If anyone knows of a host that might be better for what im trying to do, or if there are any good books that I should get let me know. Thanks Terry
[This message has been edited by Terry Stehle (edited October 22, 2001).]
22 years ago
I have been trying to make a multi player game using java. I currently running a web site and websitesource is my host. I have managed to simulate a chat on my system. What I need to know is how I can run the server side of the program on the server? Im hoping I can develope everything using java. Also, if you know of any books, or any sites that might help me please let me know. Thanks Terry
22 years ago
Im trying to lay out my game so that the board is on the left hand side of the JFrame and the JTextField is in the upper right, and the JTextArea is below that. I have tried the GridBagLayout but can seem to get it to work. This is kinda what Im looking for
.................
. .TextField.
.Board...........
. .TextArea .
.................
The board is approx 560 x 560 in size, and the text field and area is for the chat area. I would appricate any help on how I can accomplish this. Thanks Terry
22 years ago
Im using getImage from the java.applet library. And I was wondering if theres a way that I can check and see if the images are finished loading before I display them. I have tried using ImageIcon but having problems getting it to work on my web site. I get access denied errors. Anyways I would appricate any help in this matter. Thanks Terry.
22 years ago
Im currently trying to get a game up on my site and ran into a problem with java security. When the applet tries to red the gif images from my web site it says that access is denied. I have read a little about java security, policies, and jar files but im really confused. Im using java plug-in 1.3. Im hoping that I do not half to purchase some kind of certificate to just test my program on my web site. I would appricate any help, Thanks Terry
22 years ago
I have create an applet that launches a Frame and have not had a problem until I tried to add images to it. The images are on my web site, and I get a message excess denied. This is how part of the code looks
private Image myImage;//Defined before the constructor of my class
Toolkit kit = getDefaultToolkit();
myImage = kit.getImage("mywebaddress/filename");
The code is just an exsample. I have not problem running the program on my computer using the appletviewer but as soon as I try to bring it up in the browser, or place it on the web I get the error message. If I cannot use the Toolkit to grab the image, please let me know how. By the way parts of my image are transparent. So I need to keep the transparent parts transparent. I would appricate any help thanks Terry
22 years ago
Im trying to find out how chat systems work. Im currently trying to develop one for my web site. I have created a program that simulates this using a ServerSocket for my servet program, and creating a socket for the client program. Problem is that there can only be one ServerSocket. I was thinking that I could create the ServerSocket with a servlet, but there can only be one. Then I heard of JSP which I still know very little about. I would appriciate if anyone could help me on this matter. If you could just tell me the basic steps on creating a chat system using java, and/or tell me of any good books. Thanks Terry
22 years ago
I recieved this tip from someone else hope this helps
Microsoft Visual J++ is a Java IDE for editing, compiling,
and debugging Java source code. It also provides GUI editing tools
that generate code for you you.
Visual J++ added some extensions to the pure Java language that
you can easily disable.
The latest version of Visual J++ is 6.0. It supports JDK 1.1.
In order to use JDK 1.2, JDK 1.3, or beyond you must follow the
procedure below:
Modify the CLASSPATH in the registry. Run RegEdit.exe and locate
the following key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Java VM
and modify the CLASSPATH string to include the rt.jar file from
you JDK distribution. For example:
c:\Program Files\JavaSoft\JRE\1.3\lib\rt.jar
needs to be added to the end of the CLASSPATH string, and don't
forget the semi-colon separating each entry in the string. Also
note the "." at the end of the CLASSPATH string.
23 years ago

Originally posted by Raj Verma:
I am trying to create an application and my main frame for the application is JFrame. I want all the other windows to be contained in this JFrame, but they should not have the title bar, as in VB or PB where they are called child window. Is there anyway I can do it. I have tried using JInternalFrame.
Thanks


Maybe what you are looking for is JDesktopPane, anyways thought I would input
23 years ago
As everyone who has ever read my messages probably already know that Im currently working on a chess program. Im trying to create a chess program that two people can play online. This is a big project. And I may never complete it. But I don't give up easily. My programming experience is from practice only. What I'm trying to understand is servlets. What I believe is that they are programs that run on the server. The applet I guess is what runs on the clients computer, and is the graphical user interface of the game. What Im wondering is do I need a servlet for every game started. Or am I suppose to create a servlet to handle all the games at once. Which would seem almost impossible. Also do most web host support servlets. Anyways I would appriate any help on this subject. Thanks Terry Stehle
23 years ago
As everyone who has ever read my messages probably already know that Im currently working on a chess program. Im trying to create a chess program that two people can play online. This is a big project. And I may never complete it. But I don't give up easily. My programming experience is from practice only. What I'm trying to understand is servlets. What I believe is that they are programs that run on the server. The applet I guess is what runs on the clients computer, and is the graphical user interface of the game. What Im wondering is do I need a servlet for every game started. Or am I suppose to create a servlet to handle all the games at once. Which would seem almost impossible. Also do most web host support servlets. Anyways I would appriate any help on this subject. Thanks Terry Stehle
23 years ago