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;








0















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!










share|improve this question






















  • 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


















0















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!










share|improve this question






















  • 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














0












0








0








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!










share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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


















  • 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













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
);



);













draft saved

draft discarded


















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















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript