user interface - Refresh Button in java -


I need to create a simple refresh button for a GUI Java program, I have the button, but it works properly not doing. I'm not sure what the code should do to make the code work. Any help would really be appreciated. I have been guessed the following code: `

  refeshButton.addListener (new button listener adapter) {@Override Public Zero (button button, EventObject e) {/ {SendDataToServ1 ("Refresh");}} Public Zero SendDatetosAssurance 1 (String Action). ("Text" + button.get text), if (button .gettext (.) Equals ("refresh")) {System. Out.println ("Action: ----->" + verb); Async Callback & lt; Com.viji.example.domain.Record & gt; Callback = new async callback & lt; Com.viji.example.domain.Record & gt; () {Override public nullity on failure (system loading) {System.out.println ("failure");} success on public zero (com.viji.example.domain.Record result) {CompanySampledetails ( Results, 1); }}; If (action.trim (.) Equals ("refresh")) {System.out.println ("before refreshing"); DbService.getRecords (callback); }}});  

Warning: Local variable is buttonClickListener / Em>

After creating it, try to say refeshbutton.addListener (buttonClickListener);


Edit:

method sendDataToServ (string action) never references its parameters This is what your audience said The way to go Did you mean to call sendDataToServer (string action) instead? If this is the case then there is practically nothing with its parameters. examines verb against "add".

You should toss around a generous amount of logging statements.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -