< prev index next >

src/demo/share/jfc/J2Ddemo/java2d/demos/Paths/CurveQuadTo.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: *
*** 64,72 **** g2.draw(p); g2.drawString("curveTo", (int) (w * .2), (int) (h * .25f) - 5); g2.drawString("quadTo", (int) (w * .2), (int) (h * .6f) - 5); } ! public static void main(String s[]) { createDemoFrame(new CurveQuadTo()); } } --- 64,72 ---- g2.draw(p); g2.drawString("curveTo", (int) (w * .2), (int) (h * .25f) - 5); g2.drawString("quadTo", (int) (w * .2), (int) (h * .6f) - 5); } ! public static void main(String[] s) { createDemoFrame(new CurveQuadTo()); } }
< prev index next >