client-server connection using interfaceHow to read a single char from the console in Java (as the user types it)?Java HTTPS client certificate authenticationa simple client/server chat programa client/server program using java won't workHow can the server communicate to a specific client in a Client-Server system?UDP client and server connectionclient/server connection closing causes loop errorUnable to send message from server to the client in android through text fieldClient Server multiple connections in CClient-Server communication in Java
A map of non-pathological topology?
Why are MBA programs closing?
Write a function that checks if a string starts with something
How to hide rifle during medieval town entrance inspection?
USGS Relief map (GeoTIFF raster) misaligns with vector layers (QGIS)
What should I write in an apology letter, since I have decided not to join a company after accepting an offer letter
Why am I getting a strange double quote (“) in Open Office instead of the ordinary one (")?
Solve Riddle With Algebra
Is this a bug in plotting step functions?
Longest bridge/tunnel that can be cycled over/through?
How to safely destroy (a large quantity of) valid checks?
Can a human be transformed into a Mind Flayer?
Can the removal of a duty-free sales trolley result in a measurable reduction in emissions?
How to communicate to my GM that not being allowed to use stealth isn't fun for me?
How can I make 12 tone and atonal melodies sound interesting?
Why can my keyboard only digest 6 keypresses at a time?
Is there a set of positive integers of density 1 which contains no infinite arithmetic progression?
Ability To Change Root User Password (Vulnerability?)
Which is the better way to call a method that is only available to one class that implements an interface but not the other one?
60s or 70s novel about Empire of Man making 1st contact with 1st discovered alien race
Teaching a class likely meant to inflate the GPA of student athletes
Why was this person allowed to become Grand Maester?
How can I remove material from this wood beam?
Separate SPI data
client-server connection using interface
How to read a single char from the console in Java (as the user types it)?Java HTTPS client certificate authenticationa simple client/server chat programa client/server program using java won't workHow can the server communicate to a specific client in a Client-Server system?UDP client and server connectionclient/server connection closing causes loop errorUnable to send message from server to the client in android through text fieldClient Server multiple connections in CClient-Server communication in Java
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I am working on a client-server app in java..
Simple interface contain textField to write message and textarea to show messages exchanged. however, the problem is how to get the input from the textfield and send it?
I mean it must wait until I enter message and press Enter key and then continue. thanks in advance!
java client-server jtextfield
add a comment |
I am working on a client-server app in java..
Simple interface contain textField to write message and textarea to show messages exchanged. however, the problem is how to get the input from the textfield and send it?
I mean it must wait until I enter message and press Enter key and then continue. thanks in advance!
java client-server jtextfield
Here's the official swing tutorial Read it. docs.oracle.com/javase/tutorial/uiswing/index.html
– JB Nizet
Mar 24 at 20:00
thanks a lot for that, but what I am looking for is how to build input stream that takes input from textfield, and the important point is how to make the app waiting for input while exchanging messages, I wish it is clear now!!
– nader al-sleman
Mar 25 at 5:44
It has always bee clear. That's not, at all, how a GUI written using Swing works. You don't wait for things to be entered. Instead, the text field fires events to notify you when something is entered. It's all explained in the tutorial of course. And you need to read documentation if you want to understand how things work and how to use Swing. So just do it. Read the tutorial. Is reading really so hard?
– JB Nizet
Mar 25 at 7:32
add a comment |
I am working on a client-server app in java..
Simple interface contain textField to write message and textarea to show messages exchanged. however, the problem is how to get the input from the textfield and send it?
I mean it must wait until I enter message and press Enter key and then continue. thanks in advance!
java client-server jtextfield
I am working on a client-server app in java..
Simple interface contain textField to write message and textarea to show messages exchanged. however, the problem is how to get the input from the textfield and send it?
I mean it must wait until I enter message and press Enter key and then continue. thanks in advance!
java client-server jtextfield
java client-server jtextfield
asked Mar 24 at 19:55
nader al-slemannader al-sleman
81
81
Here's the official swing tutorial Read it. docs.oracle.com/javase/tutorial/uiswing/index.html
– JB Nizet
Mar 24 at 20:00
thanks a lot for that, but what I am looking for is how to build input stream that takes input from textfield, and the important point is how to make the app waiting for input while exchanging messages, I wish it is clear now!!
– nader al-sleman
Mar 25 at 5:44
It has always bee clear. That's not, at all, how a GUI written using Swing works. You don't wait for things to be entered. Instead, the text field fires events to notify you when something is entered. It's all explained in the tutorial of course. And you need to read documentation if you want to understand how things work and how to use Swing. So just do it. Read the tutorial. Is reading really so hard?
– JB Nizet
Mar 25 at 7:32
add a comment |
Here's the official swing tutorial Read it. docs.oracle.com/javase/tutorial/uiswing/index.html
– JB Nizet
Mar 24 at 20:00
thanks a lot for that, but what I am looking for is how to build input stream that takes input from textfield, and the important point is how to make the app waiting for input while exchanging messages, I wish it is clear now!!
– nader al-sleman
Mar 25 at 5:44
It has always bee clear. That's not, at all, how a GUI written using Swing works. You don't wait for things to be entered. Instead, the text field fires events to notify you when something is entered. It's all explained in the tutorial of course. And you need to read documentation if you want to understand how things work and how to use Swing. So just do it. Read the tutorial. Is reading really so hard?
– JB Nizet
Mar 25 at 7:32
Here's the official swing tutorial Read it. docs.oracle.com/javase/tutorial/uiswing/index.html
– JB Nizet
Mar 24 at 20:00
Here's the official swing tutorial Read it. docs.oracle.com/javase/tutorial/uiswing/index.html
– JB Nizet
Mar 24 at 20:00
thanks a lot for that, but what I am looking for is how to build input stream that takes input from textfield, and the important point is how to make the app waiting for input while exchanging messages, I wish it is clear now!!
– nader al-sleman
Mar 25 at 5:44
thanks a lot for that, but what I am looking for is how to build input stream that takes input from textfield, and the important point is how to make the app waiting for input while exchanging messages, I wish it is clear now!!
– nader al-sleman
Mar 25 at 5:44
It has always bee clear. That's not, at all, how a GUI written using Swing works. You don't wait for things to be entered. Instead, the text field fires events to notify you when something is entered. It's all explained in the tutorial of course. And you need to read documentation if you want to understand how things work and how to use Swing. So just do it. Read the tutorial. Is reading really so hard?
– JB Nizet
Mar 25 at 7:32
It has always bee clear. That's not, at all, how a GUI written using Swing works. You don't wait for things to be entered. Instead, the text field fires events to notify you when something is entered. It's all explained in the tutorial of course. And you need to read documentation if you want to understand how things work and how to use Swing. So just do it. Read the tutorial. Is reading really so hard?
– JB Nizet
Mar 25 at 7:32
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55327958%2fclient-server-connection-using-interface%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55327958%2fclient-server-connection-using-interface%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Here's the official swing tutorial Read it. docs.oracle.com/javase/tutorial/uiswing/index.html
– JB Nizet
Mar 24 at 20:00
thanks a lot for that, but what I am looking for is how to build input stream that takes input from textfield, and the important point is how to make the app waiting for input while exchanging messages, I wish it is clear now!!
– nader al-sleman
Mar 25 at 5:44
It has always bee clear. That's not, at all, how a GUI written using Swing works. You don't wait for things to be entered. Instead, the text field fires events to notify you when something is entered. It's all explained in the tutorial of course. And you need to read documentation if you want to understand how things work and how to use Swing. So just do it. Read the tutorial. Is reading really so hard?
– JB Nizet
Mar 25 at 7:32