Author: fgilet Date: 2010-01-31 23:12:16 +0100 (Sun, 31 Jan 2010) New Revision: 49 Modified: trunk/src/main/java/org/nuiton/mapstoragemanager/ui/MainUI.css trunk/src/main/java/org/nuiton/mapstoragemanager/ui/MainUI.jaxx Log: test avec netbeans qui marche et test sur jaxx (relations avec css) Modified: trunk/src/main/java/org/nuiton/mapstoragemanager/ui/MainUI.css =================================================================== --- trunk/src/main/java/org/nuiton/mapstoragemanager/ui/MainUI.css 2010-01-31 18:29:35 UTC (rev 48) +++ trunk/src/main/java/org/nuiton/mapstoragemanager/ui/MainUI.css 2010-01-31 22:12:16 UTC (rev 49) @@ -1,8 +1,38 @@ +/** + * *##% observe-swing + * Copyright (C) 2008 - 2009 IRD + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Lesser Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. ##%* +*/ + Application { lookAndFeel: system; locationRelativeTo: {null}; + resizable: true; } +#mainFrame { + title:"Map Storage Manager"; +} + JLabel.boldUnderline { font-weight: bold; +} + +JSplitPane { + oneTouchExpandable:true; + continuousLayout:true; + dividerSize:6; } \ No newline at end of file Modified: trunk/src/main/java/org/nuiton/mapstoragemanager/ui/MainUI.jaxx =================================================================== --- trunk/src/main/java/org/nuiton/mapstoragemanager/ui/MainUI.jaxx 2010-01-31 18:29:35 UTC (rev 48) +++ trunk/src/main/java/org/nuiton/mapstoragemanager/ui/MainUI.jaxx 2010-01-31 22:12:16 UTC (rev 49) @@ -1,18 +1,12 @@ -<Application title='Hello' - height="{constants.DEFAULT_HEIGHT}" - width="{constants.DEFAULT_WIDTH}" - minimumSize="{new Dimension(constants.MINIMUM_SIZE_WIDTH,constants.MINIMUM_SIZE_HEIGHT)}" - maximumSize="{new Dimension(constants.MAXIMUM_SIZE_WIDTH,constants.MAXIMUM_SIZE_HEIGHT)}" - resizable='true'> +<Application id='mainFrame' width='800' height='600' + onWindowClosing='engine.close()'> <!-- include java files for treatment --> <script> <![CDATA[ - import org.nuiton.mapstoragemanager.ui.gui.ApplicationConstants; import org.nuiton.mapstoragemanager.ui.gui.ApplicationEngine; ApplicationEngine engine = new ApplicationEngine(); - ApplicationConstants constants = new ApplicationConstants(); ]]> </script> @@ -35,19 +29,19 @@ <JMenuItem text="About Us" onActionPerformed='engine.showGreeting()'/> </JMenu> </JMenuBar> - <java.awt.BorderLayout id='BorderLayout'/> - <JPanel layout='{BorderLayout}'> + + <JPanel layout='{new BorderLayout()}' id='demoPanel'> <JToolBar constraints='BorderLayout.NORTH' opaque='true'> - <JLabel text='name base :' styleClass='boldUnderline' /> - <JAXXComboBox> + <JLabel text='name base : ' styleClass='boldUnderline' /> + <JAXXComboBox id='nameBase'> <item value='{null}' label='Select a base name' /> <item value='HBase'/> <item value='Cassandra'/> <item value='Other'/> </JAXXComboBox> - <JLabel text='login :' styleClass='boldUnderline' /> + <JLabel text='login : ' styleClass='boldUnderline'/> <JTextField/> - <JLabel text='password :' styleClass='boldUnderline' /> + <JLabel text='password : ' styleClass='boldUnderline'/> <JPasswordField/> <JButton text='OK'/> </JToolBar>