Java Code Examples for javax.swing.border.TitledBorder#getBaseline()
The following examples show how to use
javax.swing.border.TitledBorder#getBaseline() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Test7034614.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) { Graphics g = new BufferedImage(9, 9, 9).getGraphics(); BrokenBorder broken = new BrokenBorder(); TitledBorder titled = new TitledBorder(broken, broken.getClass().getName()); Insets insets = (Insets) broken.getBorderInsets(broken).clone(); titled.getBorderInsets(broken); broken.validate(insets); for (int i = 0; i < 10; i++) { titled.paintBorder(broken, g, 0, 0, i, i); broken.validate(insets); titled.getBaseline(broken, i, i); broken.validate(insets); } }
Example 2
Source File: Test7034614.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) { Graphics g = new BufferedImage(9, 9, 9).getGraphics(); BrokenBorder broken = new BrokenBorder(); TitledBorder titled = new TitledBorder(broken, broken.getClass().getName()); Insets insets = (Insets) broken.getBorderInsets(broken).clone(); titled.getBorderInsets(broken); broken.validate(insets); for (int i = 0; i < 10; i++) { titled.paintBorder(broken, g, 0, 0, i, i); broken.validate(insets); titled.getBaseline(broken, i, i); broken.validate(insets); } }
Example 3
Source File: Test7034614.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) { Graphics g = new BufferedImage(9, 9, 9).getGraphics(); BrokenBorder broken = new BrokenBorder(); TitledBorder titled = new TitledBorder(broken, broken.getClass().getName()); Insets insets = (Insets) broken.getBorderInsets(broken).clone(); titled.getBorderInsets(broken); broken.validate(insets); for (int i = 0; i < 10; i++) { titled.paintBorder(broken, g, 0, 0, i, i); broken.validate(insets); titled.getBaseline(broken, i, i); broken.validate(insets); } }
Example 4
Source File: Test7034614.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) { Graphics g = new BufferedImage(9, 9, 9).getGraphics(); BrokenBorder broken = new BrokenBorder(); TitledBorder titled = new TitledBorder(broken, broken.getClass().getName()); Insets insets = (Insets) broken.getBorderInsets(broken).clone(); titled.getBorderInsets(broken); broken.validate(insets); for (int i = 0; i < 10; i++) { titled.paintBorder(broken, g, 0, 0, i, i); broken.validate(insets); titled.getBaseline(broken, i, i); broken.validate(insets); } }
Example 5
Source File: Test7034614.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) { Graphics g = new BufferedImage(9, 9, 9).getGraphics(); BrokenBorder broken = new BrokenBorder(); TitledBorder titled = new TitledBorder(broken, broken.getClass().getName()); Insets insets = (Insets) broken.getBorderInsets(broken).clone(); titled.getBorderInsets(broken); broken.validate(insets); for (int i = 0; i < 10; i++) { titled.paintBorder(broken, g, 0, 0, i, i); broken.validate(insets); titled.getBaseline(broken, i, i); broken.validate(insets); } }
Example 6
Source File: Test7034614.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) { Graphics g = new BufferedImage(9, 9, 9).getGraphics(); BrokenBorder broken = new BrokenBorder(); TitledBorder titled = new TitledBorder(broken, broken.getClass().getName()); Insets insets = (Insets) broken.getBorderInsets(broken).clone(); titled.getBorderInsets(broken); broken.validate(insets); for (int i = 0; i < 10; i++) { titled.paintBorder(broken, g, 0, 0, i, i); broken.validate(insets); titled.getBaseline(broken, i, i); broken.validate(insets); } }
Example 7
Source File: Test7034614.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) { Graphics g = new BufferedImage(9, 9, 9).getGraphics(); BrokenBorder broken = new BrokenBorder(); TitledBorder titled = new TitledBorder(broken, broken.getClass().getName()); Insets insets = (Insets) broken.getBorderInsets(broken).clone(); titled.getBorderInsets(broken); broken.validate(insets); for (int i = 0; i < 10; i++) { titled.paintBorder(broken, g, 0, 0, i, i); broken.validate(insets); titled.getBaseline(broken, i, i); broken.validate(insets); } }
Example 8
Source File: Test7034614.java From hottub with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) { Graphics g = new BufferedImage(9, 9, 9).getGraphics(); BrokenBorder broken = new BrokenBorder(); TitledBorder titled = new TitledBorder(broken, broken.getClass().getName()); Insets insets = (Insets) broken.getBorderInsets(broken).clone(); titled.getBorderInsets(broken); broken.validate(insets); for (int i = 0; i < 10; i++) { titled.paintBorder(broken, g, 0, 0, i, i); broken.validate(insets); titled.getBaseline(broken, i, i); broken.validate(insets); } }
Example 9
Source File: Test7034614.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) { Graphics g = new BufferedImage(9, 9, 9).getGraphics(); BrokenBorder broken = new BrokenBorder(); TitledBorder titled = new TitledBorder(broken, broken.getClass().getName()); Insets insets = (Insets) broken.getBorderInsets(broken).clone(); titled.getBorderInsets(broken); broken.validate(insets); for (int i = 0; i < 10; i++) { titled.paintBorder(broken, g, 0, 0, i, i); broken.validate(insets); titled.getBaseline(broken, i, i); broken.validate(insets); } }
Example 10
Source File: Test7034614.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) { Graphics g = new BufferedImage(9, 9, 9).getGraphics(); BrokenBorder broken = new BrokenBorder(); TitledBorder titled = new TitledBorder(broken, broken.getClass().getName()); Insets insets = (Insets) broken.getBorderInsets(broken).clone(); titled.getBorderInsets(broken); broken.validate(insets); for (int i = 0; i < 10; i++) { titled.paintBorder(broken, g, 0, 0, i, i); broken.validate(insets); titled.getBaseline(broken, i, i); broken.validate(insets); } }
Example 11
Source File: Test7034614.java From jdk8u_jdk with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) { Graphics g = new BufferedImage(9, 9, 9).getGraphics(); BrokenBorder broken = new BrokenBorder(); TitledBorder titled = new TitledBorder(broken, broken.getClass().getName()); Insets insets = (Insets) broken.getBorderInsets(broken).clone(); titled.getBorderInsets(broken); broken.validate(insets); for (int i = 0; i < 10; i++) { titled.paintBorder(broken, g, 0, 0, i, i); broken.validate(insets); titled.getBaseline(broken, i, i); broken.validate(insets); } }
Example 12
Source File: Test7034614.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) { Graphics g = new BufferedImage(9, 9, 9).getGraphics(); BrokenBorder broken = new BrokenBorder(); TitledBorder titled = new TitledBorder(broken, broken.getClass().getName()); Insets insets = (Insets) broken.getBorderInsets(broken).clone(); titled.getBorderInsets(broken); broken.validate(insets); for (int i = 0; i < 10; i++) { titled.paintBorder(broken, g, 0, 0, i, i); broken.validate(insets); titled.getBaseline(broken, i, i); broken.validate(insets); } }
Example 13
Source File: Test7034614.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 6 votes |
public static void main(String[] args) { Graphics g = new BufferedImage(9, 9, 9).getGraphics(); BrokenBorder broken = new BrokenBorder(); TitledBorder titled = new TitledBorder(broken, broken.getClass().getName()); Insets insets = (Insets) broken.getBorderInsets(broken).clone(); titled.getBorderInsets(broken); broken.validate(insets); for (int i = 0; i < 10; i++) { titled.paintBorder(broken, g, 0, 0, i, i); broken.validate(insets); titled.getBaseline(broken, i, i); broken.validate(insets); } }