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

SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현