src/share/classes/javax/swing/text/html/HiddenTagView.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
*** 293,303 **** static final int padding = 3; static final Color UnknownTagBorderColor = Color.black; static final Border StartBorder = new StartTagBorder(); static final Border EndBorder = new EndTagBorder(); ! static class StartTagBorder implements Border, Serializable { public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { g.setColor(UnknownTagBorderColor); x += padding; --- 293,303 ---- static final int padding = 3; static final Color UnknownTagBorderColor = Color.black; static final Border StartBorder = new StartTagBorder(); static final Border EndBorder = new EndTagBorder(); ! @SuppressWarnings("serial") // Same-version serialization only static class StartTagBorder implements Border, Serializable { public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { g.setColor(UnknownTagBorderColor); x += padding;
*** 324,334 **** public boolean isBorderOpaque() { return false; } } // End of class HiddenTagView.StartTagBorder ! static class EndTagBorder implements Border, Serializable { public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { g.setColor(UnknownTagBorderColor); x += padding; --- 324,334 ---- public boolean isBorderOpaque() { return false; } } // End of class HiddenTagView.StartTagBorder ! @SuppressWarnings("serial") // Same-version serialization only static class EndTagBorder implements Border, Serializable { public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { g.setColor(UnknownTagBorderColor); x += padding;