protected void frameUpdate() {
if (logger.isLoggable(Level.FINEST)) {
logger.finest("updating frame");
}
if (frameView != null) {
Window2D frameWindow = frameView.getWindow();
Window2D appWindow = getWindow();
if (appWindow != null) {
int appWidth = appWindow.getWidth();
int frameWidth = frameWindow.getWidth();
if (frameWidth != appWidth) {
// adjust frame to fit width of app window
frameView.getWindow().setSize(appWidth, frameWindow.getHeight());
}