Ignore:
Timestamp:
2010-10-02T21:19:01+02:00 (15 years ago)
Author:
postfix
Message:
 
Location:
applications/editors/josm/plugins/smed/src/smed
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/smed/src/smed/plug/manager/SmedPluginManagerImpl.java

    r23437 r23445  
    22
    33import smed.plug.ifc.SmedPluginManager;
     4import smed.tabs.SmedTabAction;
    45
    56public class SmedPluginManagerImpl implements SmedPluginManager {
    6         private static String string = null;
     7        private String string = null;
    78       
    89        @Override
    910        public void showVisualMessage(String message) {
    10                 // TODO Auto-generated method stub
    11 
     11                if(SmedTabAction.smedStatusBar != null) SmedTabAction.smedStatusBar.setText(message);
    1212        }
    1313
  • applications/editors/josm/plugins/smed/src/smed/tabs/SmedTabAction.java

    r23437 r23445  
    1111import javax.swing.JFrame;
    1212import javax.swing.JMenuItem;
     13import javax.swing.JTextField;
    1314import javax.swing.SwingUtilities;
    1415import javax.swing.UIManager;
     
    3132        private JFrame frame = null;
    3233        private boolean isOpen = false;
    33         private JMenuItem osmItem;
     34        private JMenuItem osmItem =null;
     35        public static JTextField smedStatusBar = null;
    3436       
    3537    public SmedTabAction() {
     
    5961        //Create and set up the window.
    6062        frame = new JFrame("TabbedPaneDemo");
     63        smedStatusBar = new JTextField();
    6164        frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
    6265        frame.setResizable(false);
     
    6669        frame.setJMenuBar(smedMenu);
    6770        frame.add(smedTabs, BorderLayout.CENTER);
     71        frame.add(smedStatusBar,BorderLayout.PAGE_END);
    6872
    6973        //Display the window.
     
    7579                }
    7680        });
    77         frame.setSize(new Dimension(420, 550));
     81        frame.setSize(new Dimension(420, 470));
    7882        // frame.pack();
    7983        frame.setVisible(true);
  • applications/editors/josm/plugins/smed/src/smed/tabs/SmedTabbedPane.java

    r23443 r23445  
    3232        static private List<SmedPluggable> plugins = null;
    3333        static private JTabbedPane tabbedPane = null;
    34         @SuppressWarnings("unused")
     34        private SmedPluginManager manager = null;
    3535        private int activeIndex = -1;
    3636       
     
    5252                int i = 0;
    5353                SmedFile splugDir = new SmedFile(pluginDirName + "/splug");
    54                 SmedPluginManager manager = new SmedPluginManagerImpl();
     54                manager = new SmedPluginManagerImpl();
    5555           
    5656                for(SmedPluggable p : plugins) {
     
    7676                add(tabbedPane);
    7777
    78                 tabbedPane.setPreferredSize(new Dimension(400, 400));
     78                tabbedPane.setPreferredSize(new Dimension(400, 390));
    7979               
    8080                //The following line enables to use scrolling tabs.
     
    8686                                        @Override
    8787                                        public void stateChanged(ChangeEvent event) {
    88                                                 System.out.println("hello world");
    89                                                 System.out.println("activeIndex:\t" + activeIndex);
    9088                                                JTabbedPane pane = (JTabbedPane) event.getSource();
    9189                                               
     
    9492                                                }
    9593                                               
    96                                                 System.out.println(pane.getSelectedIndex());
    9794                                                activeIndex = pane.getSelectedIndex();
    9895                                                for(SmedPluggable p : plugins) {
Note: See TracChangeset for help on using the changeset viewer.