< prev index next >

src/java.desktop/windows/native/libawt/windows/awt_MenuItem.cpp

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1996, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 1996, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 67,78 **** HBITMAP AwtMenuItem::bmpCheck; jobject AwtMenuItem::systemFont; jfieldID AwtMenuItem::labelID; jfieldID AwtMenuItem::enabledID; - jfieldID AwtMenuItem::fontID; - jfieldID AwtMenuItem::appContextID; jfieldID AwtMenuItem::shortcutLabelID; jfieldID AwtMenuItem::isCheckboxID; jfieldID AwtMenuItem::stateID; jmethodID AwtMenuItem::getDefaultFontMID; --- 67,76 ----
*** 956,972 **** extern "C" { JNIEXPORT void JNICALL Java_java_awt_MenuComponent_initIDs(JNIEnv *env, jclass cls) { - TRY; - - AwtMenuItem::fontID = env->GetFieldID(cls, "font", "Ljava/awt/Font;"); - CHECK_NULL(AwtMenuItem::fontID); - AwtMenuItem::appContextID = env->GetFieldID(cls, "appContext", "Lsun/awt/AppContext;"); - - CATCH_BAD_ALLOC; } } /* extern "C" */ --- 954,963 ----
< prev index next >