3
我想在CodenameOne中垂直顯示滑塊。下面是我試圖使它成爲可能的代碼,但仍然水平顯示。如何在[CodenameOne]中顯示垂直滑塊
代碼:
Slider s1 = new Slider();
Slider s2 = new Slider();
s1.setVertical(true);
s1.repaint();
s2.setVertical(true);
s2.repaint();
findContMainT2O(f).add(BorderLayout.EAST, s1);
findContMainT2O(f).add(BorderLayout.WEST, s2);
findContMainT2O(f).repaint();
不錯的解決方案和工作太...只是爲了知識的目的,我想問你,SliderFull是如何被考慮?,因爲我可以映射滑塊在用戶界面而不是SliderFull。 –
如果你的Slider UIID是'SliderRed','SliderFull'將是'SliderRedFull' – Diamond