Hi!
I've developped a notebook example program in python, with global
keybindings and close button on each tab.
Screenshot:
http://img205.imageshack.us/img205/3049/notebookwithclosebutton0xk.png
The program has the following features:
- Close button on each tab
- Global keybindings (Ctrl-q - quit, Ctrl-w - close the actual tab,
Ctrl-t - add a new notebook tab)
The sourcecode: http://pastebin.com/690534
Im porting this python code to java. I want to make working the same
features. And really want to make included this example code in the
documentation.
The current code can be found here: http://pastebin.com/697738
It can be compiled, and runs fine. What is MISSING:
1. Global keybindings (lin 43 - 51)
2. It cant dinamically calcule the icon size from the theme (line 85-87)
3. the close button remove always the actual page, and not where it was
clicked (line 148)
I have trouble with the 3. point (some java help really appreciated),
for the 1-2 have no idea (I think its unimplemented).
Thanks for any help!
Best regards,
Khiraly
|