Changeset 1075


Ignore:
Timestamp:
06/14/16 10:52:44 (8 years ago)
Author:
davidb
Message:

Changes from private to protected to allow Browser to be inherited by another class, such as an experimental version of Expeditee using JFX events

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/gui/Browser.java

    r1039 r1075  
    8787        public static boolean _hasExited = false;
    8888       
    89         private MouseEventRouter _mouseEventRouter;
     89        protected MouseEventRouter _mouseEventRouter;
    9090
    9191        // A flag which is set once the application is exiting.
    92         private boolean _isExiting = false;
    93 
    94         private boolean _minimum_version6 = false;
     92        protected boolean _isExiting = false;
     93
     94        protected boolean _minimum_version6 = false;
    9595
    9696        public boolean isMinimumVersion6() {
     
    9898        }
    9999
    100         private static boolean _initComplete = false;
     100        protected static boolean _initComplete = false;
    101101       
    102         private static String _startFrame = null;
     102        protected static String _startFrame = null;
    103103
    104104        /**
     
    180180        }
    181181
    182         private Browser() {
     182        protected Browser() {
    183183                // center the frame on the screen
    184184                Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
     
    213213           
    214214            // set the layout to absolute layout for widgets
    215                 this.getContentPane().setLayout(new AbsoluteLayout());
     215            // => this used to be done here, but now has been moved to later in the method
     216            //    as is works better when put in a JFXPanel
     217            //this.getContentPane().setLayout(new AbsoluteLayout());
    216218
    217219                _mouseEventRouter = new MouseEventRouter(getJMenuBar(),
     
    227229                addComponentListener(this);
    228230                pack();
     231                this.getContentPane().setLayout(new AbsoluteLayout()); // moved to here to work with JFXPanel
    229232
    230233                // Reset windows to user specified size
     
    375378         * @return
    376379         */
    377         private Frame loadProfile(String userName) {
     380        protected Frame loadProfile(String userName) {
    378381                Frame profile = FrameIO.LoadProfile(userName);
    379382                if (profile == null) {
     
    392395        public Graphics2D g;
    393396
    394         private void setupGraphics() {
     397        protected void setupGraphics() {
    395398                if (g != null)
    396399                        g.dispose();
Note: See TracChangeset for help on using the changeset viewer.