joe encalada

Ranch Hand
+ Follow
since Sep 29, 2016
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
3
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by joe encalada

Hi Piet, thanks for your help.
After writing your suggestions here is my code running perfectly.


1 year ago
Hi.
I hope you can help me. I have some problems with JLabel. I need to write a code just to make JLabel's text change from "ON" to "OFF" in 2 seconds after a JButton have been clicked. I guess is matter of JLabel but a I can't get way to deal with it. All the time when JButton is pressed only "OFF" is show in JLabel but never "ON". However, when I print "ON"  and then "OFF" after 2 seconds using "System.out.println()", I can see that change but JLabel doesn´t change its text. Here is my code:


Thanks.
1 year ago
Hi everybody.

Here the solution to my problem.






Thanks Paul/Les for your suggestions.
3 years ago
Hi Les.

Can you suggest to me a way to get that access:

"you can do it any way you can envision having a path of access to the property you wish to update--directly, or via an intermediary, but you have to have visibility to do it."

Thanks.
3 years ago
Hi Les.

Thanks for your comments. However, in this line:

CountersPanel is a class which uses TablePanel class as an argument, so in this case there is not way of getting update data from this class(which is the argument)?

Sorry if my question sounds kind of silly.
3 years ago
Hi everybody.

I hope you can helpme.
I'm trying to get updated numbers of rows of a JTable in TablePanel class to a JTextField in CountersPanel class when adding/removing buttons in ControlPanel class are pressed.
I think there may be a way so I can get events from external classes like TablePanel and CountersPanel since I'm passing one class as an argument to the other class.

Here below my code.







3 years ago
Hi Rob.

Your code was the solution.

Thanks for your help.
3 years ago
Hi everybody.

I hope you can helpme. I'm trying to get html data from clipboard to jeditorpane.
Lets see, when I go to coderanch web page and I select all page using Ctrl+a then copy all web page using Ctrl+c and then put clipboard content to jEditorPaneLeft using Ctrl +v I can see the web page of coderach even images in jEditorPaneLeft, but I don't know how to do it by code. In my code I should be able to pass clipboard to jEditorPaneLeft when I press bGetHtmlFromClipboard button.
Here is where I'm stuck:


Here below my complete code.

3 years ago
Hi Rob,

You were right.

Thanks.
3 years ago
Hi everibody.

I hope you can helpme, here my problem. I need to resize jpanels inside jdialog and everything goes ok while jdialog modal is false but when I set jdialog modal to true, jpanels inside jdialog don't resize. I saw jdialog addComponentListener doesn't work when I set jdialog modal to true, but I don't know why.

Here my code.



3 years ago
Hi all.

Thanks for your help.

After been struggling for a couple of days I have done all your suggestions. Finally Rob, you were right, it was matter of my coding, well it's embarrasing it was matter of my undertanding of my code. Since I didnt realilze of a filtering over blank cells in new rows added to my JTable, thats why I couldnt see new rows.

Here I put the code which help me to test all functionality of listener.




Thanks again.
3 years ago
Hi Rob thanks for your help.
Usually I've using you suggested code, however when objectX is a JTable I have a problem. For example if I add a new row to JTable from the listener JTable dont show new added row. Even if the new row is correctly added to the model of the JTable (DefaultTableModel). And it isnt clear to my why happen this with JTable.




3 years ago
Hi every body I hope you can help me.
I have listeners for many jbuttons and code inside listener do different things between them but what is common for all listener is they need to have access to  args of the class and get / modify some data of args.
Here my simplified code .


3 years ago
Hi Rob.

Thanks for your suggestions, here my code corrected.



4 years ago
Hi Rob.

Thanks for your suggestions, here my modified code:





4 years ago