Maged Roshdy

Greenhorn
+ Follow
since Feb 08, 2003
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 Maged Roshdy

thank you Friedman for your reply
could you please tell me how to do this setting i'm working on windows xp
and do all the users of that application have to do this setting.
hi ranchers
could anyone help my to understand the problem in my chatting program
1. in my program there is a server running (main server) for public
chatting and many clients loggs on that server.
2. evrey client have a list of his freinds when he click on any of them he
starts a private chat with his freind.
3. when the client click on his frind's name he retreveis his ip from the
server and he try to connect to his freind (now his freind will act as
server and he will act as client)and start a private chat.

this program is working properly on the LAN but when i work on the internet
the private chat unforunaitly ain't work and the client(Socket) couldn't connect to his freind (ServerSocket), the client throws the following exception
java.net.ConnectException:Connect refused:connection timeout.
i think the porblem is near this fragment of code

-----------------------------------------------------------------------
Socket client=new Socket();
InetAddress inet=InetAddress.getByName(urls);//urls is the ip of other peer
client.connect(new InetSocketAddress(inet,2050),0);
-----------------------------------------------------------------------

and i use the same fragment when i connect to the main server(public chat server).

-----------------------------------------------------------------------
Socket client=new Socket();
InetAddress inet=InetAddress.getByName("www.mycompany.com");
client.connect(new InetSocketAddress(inet,2050),0);
-----------------------------------------------------------------------

and it works properly.
plz if there any solving to my problem if not
tell my why my program doesn't work on the internet.
thanks in advance..
hi ranchers
could anyone help my to understand the problem in my chatting program
1. in my chatting program i have to peers client and server
2. evrey client have a list of frends when he click on any of them he
starts a private chat with his frind.
3. when the client click on his frind name he retreveis his ip from the
server and the try to connect to his frind (now his frind will act as
server and he will act as client)and start a private chat.

this program is working properly on the LAN but when i use the WAN the
the private chat unforunaitly ain't work and the client(Socket) couldn't connect to his frind (ServerSocket).
i guss that the public chat works becouse the server have a real IP (fixed)
but clients connecting to the internet by an (ISP)internet service provider
so they don't have an real IP for other client to connect on
plz if i thinking true tell my if there any solving to my problem if not
tell my why my program doesn't work on WAN
thanks in advance..
in a chatting program i want to append the document that every client recive to the one the he allready have
first i used the method insertString(); so i find that i wanna send all the document with all it's attributs( icons , color ,font and blabal).
if you know how to do this or another way to send the message between clients please tell me
with my regards,
17 years ago
hi friends,
could any one knows how to update the jmf registry if i attach a new webcam
to my pc
17 years ago
hi all
i faced the same problem but my project uses (JMF)
so i have to install it first on evrey user's machine
and all user's have to go thrue the installaition process
and made shortcut's for jmf
i realy don't want all that to be happen
i want the user setup my program by double click on the plahpalh.exe
to install my program and don't go through the instalation of jmf
thanks
maged
18 years ago
hi all
i hope i find an answer to my question
in my GUI i have a jtextfiel and some jlabels
the jtextfeild do support arabic text
but the jlabel don't support that
i set the same font for both of them(that font can render arabic character)
18 years ago
Hi all of you
in any window application when i pressed the Alt+shift keys it's swich between the text direction form R to L or From L to R
and my country use the arabic language (RTL).
if anyone have a solution tell me please

another Question
is the any way to set a Label for any component in arabic language
other than useing the Unicode
18 years ago
Hi all,
in a chat program i used a JTextpane in either send area and recieve area
the question is how to deliver the massage with it's color ,font and size
if my message contains three words the first one colored with red and the second with black and the last with blue
when i try to send this message by sending sendArea's document
the sever recive this document and inserting it to the chat paper and sends the chat paper to all clients the message is recieved correctly but all the words with the red color .
thanks ,
Maged
18 years ago
in a chatting Program i want to append the text in the sendTextPane(JTextPane)to the recieveTextPane (JTextPane) with it's color and font
How to do that?
thanks
Maged
18 years ago
Hi all
when i tring to copy a file
i can read it corectly
and when i tried to create a new file and write on it i find the file is created with 0 mb size
and when i checked whether or not the file can write it returns false
and i don't know how to remove the read only permissin
could anybody help me?
thanks
Maged
18 years ago
Hi all
in a a file sharing program , i want to downlaod
somefiles at the same time so i wrote in the Listener's of the downlaod Button .
new Downlaod(some params).start();
to start a new thread with every new file to download , but the result is not what i expected
the result is that every time i start new thread
the previus one stoped.
could anyone hlep my
thanks
Hi all
in a filesharing program supose i'm a client and i want to download a file from someone
what is the type of Streams that i use to be suitable to copy all kinds of files
is it DataOutputStream
or OutputStreamWriter
or FileWriter
or PrintWriter
and which method should i use ?
i've tried
DataInputStream and DataOutputStream
with the methods
readByte() & writeByte()
and it works but with the problem that the file that has copied is not opened properly
18 years ago
Hi all,
sorry for that i could't share you to solve this
patch problem
but i want to learn how to run java program form
a patch file could anyone help me
thanks,
18 years ago
IDE
thanks Karpov,
my problem is with the linux cd it's damaged in the sector that hold's wine and i don't know where to download it ?
thanks allot
with my regards
Maged
18 years ago