Ignore:
Timestamp:
02/19/20 10:44:38 (4 years ago)
Author:
bnemhaus
Message:

Frame::Parse has been updated to include a new boolean parameter. When true, widgets that are created as a result of the parse send not only notify the widget framework that they have been added, but are also visible. When false, they only notify they have been added.

The widget framework now distinguishes between added and visible widgets, this fixes a bug. Bug: when programmatically adding a widget to not the current frame, it never gets properly removed and therefore still catches click events from users. By distinguishing between adding and making visible this is avoided.


Another bug has been fixed. Bug: When setting a text item to have a right anchor, and then subsequently reducing the size of the window, this text item would get a width of zero assigned. This was caused by some issues with the logic of how right margins for items were calculated.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/items/widgets/SwingWidget.java

    r1191 r1511  
    1515
    1616import javax.swing.JComponent;
    17 import javax.swing.JPopupMenu;
    1817
    1918import org.expeditee.core.bounds.AxisAlignedBoxBounds;
     
    5251                onBoundsChanged();
    5352               
    54                 JPopupMenu.setDefaultLightWeightPopupEnabled(false);
     53                System.err.println("SwingWidget::Suppressed static setDefaultLightWeightPopupEnabled to false.");
     54                //JPopupMenu.setDefaultLightWeightPopupEnabled(false);
    5555        }
    5656
Note: See TracChangeset for help on using the changeset viewer.