Prev: Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
Next: plotregion
From: Adrian Wanner on 26 Dec 2009 20:19 Hi all, I have a uitable with two columns: an editable one with checkboxes and a non-editable column displaying some strings. The background color of the uitable is set to black. But if a checkbox is selected, it changes its background color to grey - instead of changing to the usual selection color. The code-snipplet below demonstrates this behavior, at least for Matlab 7.7.0 running on Ubuntu 9.04... Any suggestions how to get rid of this? Perhaps there is a java-based solution? Or do you at least see the described behavior if you run the code-snipplet on your machines? Cheers, Adrian Code: %demo: uitable checkbox selection problem figure; columnname={'checkbox','name'}; columnformat={'logical','char'}; columneditable=[true,false]; table_data={true,'name1';false,'name2'}; handle=uitable(... 'Parent',gcf,... 'BackgroundColor',[0 0 0],... 'ForegroundColor',[1 1 1],... 'Visible','on',... 'ColumnName',columnname,... 'ColumnFormat',columnformat,... 'ColumnEditable',columneditable,... 'Data',table_data);
From: nanren888 on 28 Dec 2009 17:50 "Adrian Wanner" <wannerad(a)ini.phys.ethz.ch> wrote in message <hh6cm6$n8h$1(a)fred.mathworks.com>... > Hi all, > I have a uitable with two columns: an editable one with checkboxes and a non-editable column displaying some strings. The background color of the uitable is set to black. But if a checkbox is selected, it changes its background color to grey - instead of changing to the usual selection color. The code-snipplet below demonstrates this behavior, at least for Matlab 7.7.0 running on Ubuntu 9.04... > Any suggestions how to get rid of this? Perhaps there is a java-based solution? > Or do you at least see the described behavior if you run the code-snipplet on your machines? > > Cheers, > Adrian Not sure that this helps: Win7, x64 Code runs, Black background. Selecting the words makes background blue, selecting the checkbox column makes background go (what looks like) white. Not sure it's related, but I gave up on a similar graphical project some time back as I could not fathom the colours. Anyway, I think I've confirmed, same behaviour. Hope it helps.
From: Adrian Wanner on 28 Dec 2009 19:09 "nanren888 " <n.remove.this.scott(a)irl.cri.nz> wrote in message <hhbcnd$i6u$1(a)fred.mathworks.com>... > "Adrian Wanner" <wannerad(a)ini.phys.ethz.ch> wrote in message <hh6cm6$n8h$1(a)fred.mathworks.com>... > > Hi all, > > I have a uitable with two columns: an editable one with checkboxes and a non-editable column displaying some strings. The background color of the uitable is set to black. But if a checkbox is selected, it changes its background color to grey - instead of changing to the usual selection color. The code-snipplet below demonstrates this behavior, at least for Matlab 7.7.0 running on Ubuntu 9.04... > > Any suggestions how to get rid of this? Perhaps there is a java-based solution? > > Or do you at least see the described behavior if you run the code-snipplet on your machines? > > > > Cheers, > > Adrian > > Not sure that this helps: > Win7, x64 > Code runs, Black background. Selecting the words makes background blue, selecting the checkbox column makes background go (what looks like) white. > > Not sure it's related, but I gave up on a similar graphical project some time back as I could not fathom the colours. > Anyway, I think I've confirmed, same behaviour. > Hope it helps. Thanks - so it seems not to be platform dependent and thus it is probably a bug of the uitable component. However, I don't give up yet. Hey folks, any matlab geeks around? ;-)
|
Pages: 1 Prev: Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space Next: plotregion |