Omar Dawod

Greenhorn
+ Follow
since Sep 19, 2013
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 Omar Dawod

Hi guys!

I want to change the width of the JComboBox drop-down list, I want it wider than the JComboBox:
This is what I want to achieve:
---------------------
| Small JCombobox | V |
--------------------------------------------
| "Long item 1" |
--------------------------------------------
| "Long item 2" |
--------------------------------------------
| "Long item 3" |
--------------------------------------------

I found this, but it does not work on Java 7:
http://stackoverflow.com/questions/3969757/how-to-have-jcombobox-drop-down-list-which-is-wider-than-the-jcombobox-itself

Regards
Omar
10 years ago
Hi guys!

Of course it's the method argument... How couldn't I see that
Thank you guys and have a great weekend.

Kind Regards
Omar
10 years ago
Hi Folks,

This is my first day in Lambda world.

And I cannot understand why this code works:
new JButton().addActionListener(e -> {System.err.println("Hello from lambda");});

And this doesn't:
new Thread(r -> {System.err.println("Hello from lambda");}).start();

What is the difference???

Thanks!

Omar
10 years ago