Monday, March 31, 2014

Get Object from selected Element JTable in Netbeans


To get Object or Entity from JTable in Netbeans

System.out.println(list1.get(Table.convertRowIndexToModel(Table.getSelectedRow())));

Friday, March 7, 2014

Install silverlight in linux


This post taken from webupd8.org


I've tested Pipelight with Netflix, under Chrome (Ubuntu 13.10) and I can confirm it works (and the playback was smooth!), as you can see in the screenshots in this article. Update: I've also tested it with Firefox and it works, but sometimes the browser freezes, something which doesn't happen with Chrome so I recommend using Chrome / Chromium with Pipelight.


Install Pipelight in Ubuntu


Microsoft Silverlight Google Chrome Linux

Before proceeding, it's strongly recommended to close your web browser. Without doing this, the plugin may fail to install or crash the browser (you can copy the instructions below to a text editor).

1. If you've installed the old Pipelight version, remove it before proceeding:
sudo apt-get remove pipelight

To add the Pipelight stable and Compholio PPAs and install Pipelight in Ubuntu, use the following commands:
sudo apt-add-repository ppa:pipelight/stable
sudo apt-get update
sudo apt-get install pipelight-multi

Then, you can install the Silverlight plugin using the following command:
- system-wide:
sudo pipelight-plugin --enable silverlight
- for your user only:
pipelight-plugin --enable silverlight

By default, this will install Silverlight 5.1, but you can install a different version, for instane 5.0, by using this command instead (don't use "sudo" if you don't want to install it system-wide):
sudo pipelight-plugin --disable silverlight --enable silverlight5.0

Once installed, start your browser and try THIS test Silverlight applet. If it doesn't work, check if Silverlight is available in your browser plugin list (e.g.: you can type "about:plugins" in the address bar).