Kevin Dias

Greenhorn
+ Follow
since Nov 04, 2009
Merit badge: grant badges
For More
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
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Kevin Dias

There is nothing wrong with that tutorial. However, that tutorial demonstrates static internationalization. If you want the application to run on a different locale you would need to restart the application, or change the settings on your OS. I wanted to create a tutorial that went over dynamic internationalization, being able to change the locale "on-the-fly" while the program is running.
14 years ago
When I was developing an application that needed to be dynamically internationalized (allow the user to change the language while the program is running), I was having a hard time finding some example code. Therefore, I decided to write up an example. Hopefully this can be helpful to someone in the future:

Dynamic Internationalization Example

14 years ago
I guess I am confused because (in the example you showed me) I don't understand how to get the ID and Description if they are coming from two different entities to render as the value in the combobox.

Therefore, I am humbly asking for someone to show me an example that is based on the (Table A/Table B) example in the first post.

I am willing to pay. Clearly, an easier solution than paypal or a money transfer is to send you a gift. So this is open to anyone on the forums who can provide me the answer. Rob, it seems like it is really easy for you and would take you 5 minutes. At the $30 dollar value of the gift, that would value your time at $360 per hour. I think that is a fair price for this type of question. And if you don't like the gift, just point me to something else you would like.

So, if anyone could help me I would greatly appreciate it.

-Kevin
14 years ago
Thanks for your help Rob. I know you had referenced me to that example. Sorry for being thick, but I am having a hard time understanding how to translate that example into what I am trying to do. I am at novice at Java and programming in general (as you are well aware).

If you would be so kind as to translate that example into the short example I have in this thread I would be extremely grateful.

I will send you this gift basket for your time (just PM me your address):

[RP: removed linky]

Best,
Kevin
14 years ago
I am able render a jComboBox as shown in this tutorial:

Netbeans Tutorial

However, I would like to be able to render the jComboBox with data from two different tables (entities) instead of just one.

So say I have the following tables:

CREATE TABLE A (
ID INTEGER NOT NULL GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
NAME VARCHAR(50),
TYPE VARCHAR(50)
);

CREATE TABLE B (
ID INTEGER NOT NULL GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
DAYOFWEEK VARCHAR(50),
LENGTH INT
);

In my ComboBox, I want it to display the NAME from TABLE A and the DAYOFWEEK and LENGTH from TABLE B

I was hoping something like the following would work, but it casts a class exception.



Any help or examples would be appreciated.
Thanks in advance
-Kevin
14 years ago