joe encalada

Ranch Hand
+ Follow
since Sep 29, 2016
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
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 Rob.

Thanks for your suggestions, here my code corrected.



2 weeks ago
Hi Rob.

Thanks for your suggestions, here my modified code:





2 weeks ago
Hi everybody.
For a specific program I've used this line code:

However when I try to get same result using a custom TableCellEditor simply I don't get it.
I hope you can help me, in order to get those methods I need to implement.
Thanks.

The refered program is in this thread:
webpage
2 weeks ago
Hi Rob.

To anybody who are facing this situation...here my code....every working as I need. About last post asking for an editor, well I just dont needed since I used this code line:


Here my complete code:




For those who has other points of view, just let my know.

Thanks.
2 weeks ago
Hi Rob.

I've created a new renderer in order to convert column 0 of data[][] (String class) to boolean class, here my code:





Rendering is working ok since I can set background color to green when cell's value is true, but problem happens when I try to select JCheckBox in cell....nothing happens, I guest its because I need approiate editor.

Can you help me whit this?
2 weeks ago
Hi Rob....one question.

Since row 0 of data is boolean everythings ok,




but what about if I change row 0 of data to string I mean:


In this case what do you suggest to convert a String columnclass of column 0 (based on string values "true"/"false")  to a boolean columnsclass of column 0.

This last question because I'm facing string columns class which I need to convert to boolean class.

Thanks in advance.
2 weeks ago
Hi Rob,

Thanks for your code...everything works terrific. However I have modified your code this way to anybody who is facing this problem:






2 weeks ago
Hi Rob,
I been trying to change cell's background color without using a custom rederer. But, it is not working. Here my code. What I'm doing wrong ?

2 weeks ago
Hi Rob,

Thanks for your suggestions and your time. I did what you suggested, however what I need to do is to change cell's background color to green as soon as I check JCheckBox and get default cell's background color as soon as I uncheck JCheckBox. To reach this goal I guest I must implement a custom renderer and editor, correct me if I'm wrong.

2 weeks ago
Hi everybody,

I hope you can help me, I can change the cell's background color as soon as I check in JCheckBox. But cell's background color changes when I select other cell. In my program when I select a cell everything works ok since background color changes but when I uncheck the cell the cell's background color doesn't change immediately. Thats my problem.

Here  my code.





2 weeks ago
Hi, Tim thanks for your suggestions. A solve my problem after taken out alertDialog = new AlertDialog.Builder(MainActivityAlertDialog.this); of mostrarPopupRutas and putting it in onCreate method here below the modified code:

1 year ago

Hi, everybody. I'm new in Android and after doing some programming I'm facing this problem. In line 125 of my code in MainActivityAlertDialog where I set adapter for the listview  lvInternalStorage.setAdapter(adapter); I get this error:
MainActivityAlertDialog: checkInternalStorage: NULLPOINTEREXCEPTION Attempt to invoke virtual method 'void android.widget.ListView.setAdapter(android.widget.ListAdapter)' on a null object reference
After googling I've found this error is because of line 124 of MainActivityAlertDialog  ArrayAdapter<String> adapter = new ArrayAdapter<String>(MainActivityAlertDialog.this, android.R.layout.simple_list_item_1, FilePathStrings);
where anonymous onclicklistener cannot be converted to context , so If this is the case. What should I have to do?

I'll appreciate any help.







1 year ago
Thank you Ron it did the trick.

2 years ago
Please some help I dont know how to solve this problem.
Here is the code I've found in this website: https://www.mkyong.com/java/how-to-convert-string-to-date-java/



According to that page this is the output:

Fri Jun 07 12:10:56 MYT 2013
Friday, Jun 07, 2013 12:10:56 PM

But to my only get  :  java.text.ParseException: Unparseable date: "Friday, Jun 7, 2013 12:10:56 PM"

Can you tell me where is my error.
2 years ago
Sorry, I was traveling. I'll do a short example.
3 years ago