< prev index next >

src/java.desktop/share/classes/javax/swing/text/rtf/RTFGenerator.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1997, 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) 1997, 2018, 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
*** 494,504 **** } } protected void checkControlWords(MutableAttributeSet currentAttributes, AttributeSet newAttributes, ! RTFAttribute words[], int domain) throws IOException { int wordIndex; int wordCount = words.length; --- 494,504 ---- } } protected void checkControlWords(MutableAttributeSet currentAttributes, AttributeSet newAttributes, ! RTFAttribute[] words, int domain) throws IOException { int wordIndex; int wordCount = words.length;
*** 594,604 **** checkControlWords(current, newAttributes, RTFAttributes.attributes, RTFAttribute.D_PARAGRAPH); if (oldTabs != newTabs && newTabs != null) { ! TabStop tabs[] = (TabStop[])newTabs; int index; for(index = 0; index < tabs.length; index ++) { TabStop tab = tabs[index]; switch (tab.getAlignment()) { case TabStop.ALIGN_LEFT: --- 594,604 ---- checkControlWords(current, newAttributes, RTFAttributes.attributes, RTFAttribute.D_PARAGRAPH); if (oldTabs != newTabs && newTabs != null) { ! TabStop[] tabs = (TabStop[])newTabs; int index; for(index = 0; index < tabs.length; index ++) { TabStop tab = tabs[index]; switch (tab.getAlignment()) { case TabStop.ALIGN_LEFT:
< prev index next >