< prev index next >
src/demo/share/jfc/J2Ddemo/java2d/demos/Fonts/Highlighting.java
Print this page
*** 1,8 ****
/*
*
! * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
--- 1,8 ----
/*
*
! * Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
*** 53,64 ****
* advances.
*/
@SuppressWarnings("serial")
public class Highlighting extends AnimatingSurface {
! private static String text[] = { "HIGHLIGHTING", "OpenJDK" };
! private static Color colors[] = { CYAN, LIGHT_GRAY };
private static Font smallF = new Font("Monospaced", Font.PLAIN, 8);
private int[] curPos;
private TextLayout[] layouts;
private Font[] fonts;
--- 53,64 ----
* advances.
*/
@SuppressWarnings("serial")
public class Highlighting extends AnimatingSurface {
! private static String[] text = { "HIGHLIGHTING", "OpenJDK" };
! private static Color[] colors = { CYAN, LIGHT_GRAY };
private static Font smallF = new Font("Monospaced", Font.PLAIN, 8);
private int[] curPos;
private TextLayout[] layouts;
private Font[] fonts;
*** 127,135 ****
getAscent() + 1.0f);
}
}
}
! public static void main(String argv[]) {
createDemoFrame(new Highlighting());
}
}
--- 127,135 ----
getAscent() + 1.0f);
}
}
}
! public static void main(String[] argv) {
createDemoFrame(new Highlighting());
}
}
< prev index next >