src/share/classes/javax/swing/plaf/basic/BasicHTML.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1998, 2006, 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) 1998, 2014, 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
*** 274,283 **** --- 274,284 ---- * head, title, unknown tags, etc. * <li>It installs a different set of css settings from the default * provided by HTMLEditorKit. * </ul> */ + @SuppressWarnings("serial") // JDK-implementation class static class BasicEditorKit extends HTMLEditorKit { /** Shared base style for all documents created by us use. */ private static StyleSheet defaultStyles; /**
*** 343,352 **** --- 344,354 ---- /** * The subclass of HTMLDocument that is used as the model. getForeground * is overridden to return the foreground property from the Component this * was created for. */ + @SuppressWarnings("serial") // Superclass is not serializable across versions static class BasicDocument extends HTMLDocument { /** The host, that is where we are rendering. */ // private JComponent host; BasicDocument(StyleSheet s, Font defaultFont, Color foreground) {