Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
JRE 8 rt.jar - com.* Package Source Code
JRE 8 rt.jar is the JAR file for JRE 8 RT (Runtime) libraries. JRE (Java Runtime) 8 is the runtime environment included in JDK 8. JRE 8 rt.jar libraries are divided into 6 packages:
com.* - Internal Oracle and Sun Microsystems libraries java.* - Standard Java API libraries. javax.* - Extended Java API libraries. jdk.* - JDK supporting libraries. org.* - Third party libraries. sun.* - Old libraries developed by Sun Microsystems.
JAR File Information:
Directory of C:\fyicenter\jdk-1.8.0_191\jre\lib 63,596,151 rt.jar
Here is the list of Java classes of the com.* package in JRE 1.8.0_191 rt.jar. Java source codes are also provided.
✍: FYIcenter
⏎ com/sun/java/swing/plaf/windows/WindowsSliderUI.java
/* * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.java.swing.plaf.windows; import java.awt.*; import java.awt.event.MouseEvent; import javax.swing.plaf.*; import javax.swing.plaf.basic.*; import javax.swing.*; import static com.sun.java.swing.plaf.windows.TMSchema.*; import static com.sun.java.swing.plaf.windows.XPStyle.Skin; /** * Windows rendition of the component. * <p> * <strong>Warning:</strong> * Serialized objects of this class will not be compatible with * future Swing releases. The current serialization support is appropriate * for short term storage or RMI between applications running the same * version of Swing. A future release of Swing will provide support for * long term persistence. */ public class WindowsSliderUI extends BasicSliderUI { private boolean rollover = false; private boolean pressed = false; public WindowsSliderUI(JSlider b){ super(b); } public static ComponentUI createUI(JComponent b) { return new WindowsSliderUI((JSlider)b); } /** * Overrides to return a private track listener subclass which handles * the HOT, PRESSED, and FOCUSED states. * @since 1.6 */ protected TrackListener createTrackListener(JSlider slider) { return new WindowsTrackListener(); } private class WindowsTrackListener extends TrackListener { public void mouseMoved(MouseEvent e) { updateRollover(thumbRect.contains(e.getX(), e.getY())); super.mouseMoved(e); } public void mouseEntered(MouseEvent e) { updateRollover(thumbRect.contains(e.getX(), e.getY())); super.mouseEntered(e); } public void mouseExited(MouseEvent e) { updateRollover(false); super.mouseExited(e); } public void mousePressed(MouseEvent e) { updatePressed(thumbRect.contains(e.getX(), e.getY())); super.mousePressed(e); } public void mouseReleased(MouseEvent e) { updatePressed(false); super.mouseReleased(e); } public void updatePressed(boolean newPressed) { // You can't press a disabled slider if (!slider.isEnabled()) { return; } if (pressed != newPressed) { pressed = newPressed; slider.repaint(thumbRect); } } public void updateRollover(boolean newRollover) { // You can't have a rollover on a disabled slider if (!slider.isEnabled()) { return; } if (rollover != newRollover) { rollover = newRollover; slider.repaint(thumbRect); } } } public void paintTrack(Graphics g) { XPStyle xp = XPStyle.getXP(); if (xp != null) { boolean vertical = (slider.getOrientation() == JSlider.VERTICAL); Part part = vertical ? Part.TKP_TRACKVERT : Part.TKP_TRACK; Skin skin = xp.getSkin(slider, part); if (vertical) { int x = (trackRect.width - skin.getWidth()) / 2; skin.paintSkin(g, trackRect.x + x, trackRect.y, skin.getWidth(), trackRect.height, null); } else { int y = (trackRect.height - skin.getHeight()) / 2; skin.paintSkin(g, trackRect.x, trackRect.y + y, trackRect.width, skin.getHeight(), null); } } else { super.paintTrack(g); } } protected void paintMinorTickForHorizSlider( Graphics g, Rectangle tickBounds, int x ) { XPStyle xp = XPStyle.getXP(); if (xp != null) { g.setColor(xp.getColor(slider, Part.TKP_TICS, null, Prop.COLOR, Color.black)); } super.paintMinorTickForHorizSlider(g, tickBounds, x); } protected void paintMajorTickForHorizSlider( Graphics g, Rectangle tickBounds, int x ) { XPStyle xp = XPStyle.getXP(); if (xp != null) { g.setColor(xp.getColor(slider, Part.TKP_TICS, null, Prop.COLOR, Color.black)); } super.paintMajorTickForHorizSlider(g, tickBounds, x); } protected void paintMinorTickForVertSlider( Graphics g, Rectangle tickBounds, int y ) { XPStyle xp = XPStyle.getXP(); if (xp != null) { g.setColor(xp.getColor(slider, Part.TKP_TICSVERT, null, Prop.COLOR, Color.black)); } super.paintMinorTickForVertSlider(g, tickBounds, y); } protected void paintMajorTickForVertSlider( Graphics g, Rectangle tickBounds, int y ) { XPStyle xp = XPStyle.getXP(); if (xp != null) { g.setColor(xp.getColor(slider, Part.TKP_TICSVERT, null, Prop.COLOR, Color.black)); } super.paintMajorTickForVertSlider(g, tickBounds, y); } public void paintThumb(Graphics g) { XPStyle xp = XPStyle.getXP(); if (xp != null) { Part part = getXPThumbPart(); State state = State.NORMAL; if (slider.hasFocus()) { state = State.FOCUSED; } if (rollover) { state = State.HOT; } if (pressed) { state = State.PRESSED; } if(!slider.isEnabled()) { state = State.DISABLED; } xp.getSkin(slider, part).paintSkin(g, thumbRect.x, thumbRect.y, state); } else { super.paintThumb(g); } } protected Dimension getThumbSize() { XPStyle xp = XPStyle.getXP(); if (xp != null) { Dimension size = new Dimension(); Skin s = xp.getSkin(slider, getXPThumbPart()); size.width = s.getWidth(); size.height = s.getHeight(); return size; } else { return super.getThumbSize(); } } private Part getXPThumbPart() { Part part; boolean vertical = (slider.getOrientation() == JSlider.VERTICAL); boolean leftToRight = slider.getComponentOrientation().isLeftToRight(); Boolean paintThumbArrowShape = (Boolean)slider.getClientProperty("Slider.paintThumbArrowShape"); if ((!slider.getPaintTicks() && paintThumbArrowShape == null) || paintThumbArrowShape == Boolean.FALSE) { part = vertical ? Part.TKP_THUMBVERT : Part.TKP_THUMB; } else { part = vertical ? (leftToRight ? Part.TKP_THUMBRIGHT : Part.TKP_THUMBLEFT) : Part.TKP_THUMBBOTTOM; } return part; } }
⏎ com/sun/java/swing/plaf/windows/WindowsSliderUI.java
Or download all of them as a single archive file:
File name: jre-rt-com-1.8.0_191-src.zip File size: 8099783 bytes Release date: 2018-10-28 Download
⇒ Backup JDK 8 Installation Directory
2023-02-07, 251805👍, 3💬
Popular Posts:
JDK 11 java.xml.jmod is the JMOD file for JDK 11 XML (eXtensible Markup Language) module. JDK 11 XML...
JRE 8 rt.jar is the JAR file for JRE 8 RT (Runtime) libraries. JRE (Java Runtime) 8 is the runtime e...
maven-model-builder-3.8. 6.jaris the JAR file for Apache Maven 3.8.6 Model Builder module. Apache Ma...
HttpComponents Core Source Code Files are provided in the source package file, httpcomponents-core-5...
How to download and install iText7-Core-7.1.4.zip? iText7-Core-7.1.4.zip is the binary package of iT...