A controversial topic indeed. What do they actually like? It's enigmatic. So I did some research on the Internet and found out some interesting facts.
Monday, January 24, 2011
Sunday, January 23, 2011
Client Implementation: Simple, yet improved JAVA Server Client Application
Now for the client.....
Since we use gui, we have to implement the client side a little careful than the server. We can't just copy and paste the code like we did for the server.
For the client,
1. There should be a method which collect data from the inputstream, which will run until the client says "bye".
2. Certain things should happen when client press the ok button.
Since we use gui, we have to implement the client side a little careful than the server. We can't just copy and paste the code like we did for the server.
For the client,
1. There should be a method which collect data from the inputstream, which will run until the client says "bye".
2. Certain things should happen when client press the ok button.
Server Implementation: Simple, yet improved JAVA Server Client Application
This requires basic knowledge on GUI in java. So make sure you have it.
First we will build the Server side.
Create an simple interface.
Create a JFrame, on that create a JScrollPane.
On the JScrollPane create a JTextArea.
Rename the JTextArea to statusArea.
Add the following methods to the JFrame class. Add this method like when you normally add a method to a class.
Now the server is done.....
Note: you can find the complete source code at the end of the Last post of the tutorial
First we will build the Server side.
Create an simple interface.
Create a JFrame, on that create a JScrollPane.
On the JScrollPane create a JTextArea.
Rename the JTextArea to statusArea.
Add the following methods to the JFrame class. Add this method like when you normally add a method to a class.
Now the server is done.....
Note: you can find the complete source code at the end of the Last post of the tutorial
Thursday, January 20, 2011
Introduction: Simple, yet improved JAVA Server Client Application
Now hold on a damn minute, what's server-client? Is this about some business contract? Well kind of, only this time we take it to a virtual context. We do business in programming language... Cool huh!
What is server - client model?
Ok now let's get to "BUSINESS". Three words! SERVER, CLIENT, PROTOCOLS. So that's all? Well almost, Server is the entity which renders some service, client simply send request to the server. Client communicate with the server according to some protocol agreed by both server and the client. Basically that's all! Simple isn't it?
What is server - client model?
Ok now let's get to "BUSINESS". Three words! SERVER, CLIENT, PROTOCOLS. So that's all? Well almost, Server is the entity which renders some service, client simply send request to the server. Client communicate with the server according to some protocol agreed by both server and the client. Basically that's all! Simple isn't it?
Wednesday, January 12, 2011
XNA Basics - Part 2
Last post we just touched XNA game studio virtually and felt what it is like. Now we'll get more serious step by step.
Now let's dive up a bit in the Game1.cs. Don't worry you will not have to talk about "Program.cs" much.
Game1.cs has some very important methods. These are some methods that needs to be overridden, since Game1 inherits from the "Game" in the XNA framework.
XNA Basics - Part 1
This is a really really short post on XNA Game Studio.
First you start a XNA project with File->New Project->Windows Game (3.0)
Then on the solution explorer you get some classes and folders with various names. Now don't be scared, යකා කියන තරම් කළු නෑ. ;-)
First you start a XNA project with File->New Project->Windows Game (3.0)
Then on the solution explorer you get some classes and folders with various names. Now don't be scared, යකා කියන තරම් කළු නෑ. ;-)
Sunday, January 2, 2011
Cursed Emails
Subscribe to:
Posts (Atom)