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:
JDK 11 java.desktop.jmod - Desktop Module
JDK 11 java.desktop.jmod is the JMOD file for JDK 11 Desktop module.
JDK 11 Desktop module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\java.desktop.jmod.
JDK 11 Desktop module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 Desktop module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\java.desktop.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ javax/swing/MultiUIDefaults.java
/* * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package javax.swing; import java.util.Enumeration; import java.util.HashSet; import java.util.Iterator; import java.util.Locale; import java.util.Map.Entry; import java.util.Set; /** * * @author Hans Muller */ @SuppressWarnings("serial") // Superclass is not serializable across versions class MultiUIDefaults extends UIDefaults { private UIDefaults[] tables; public MultiUIDefaults(UIDefaults[] defaults) { super(); tables = defaults; } public MultiUIDefaults() { super(); tables = new UIDefaults[0]; } @Override public Object get(Object key) { Object value = super.get(key); if (value != null) { return value; } for (UIDefaults table : tables) { value = (table != null) ? table.get(key) : null; if (value != null) { return value; } } return null; } @Override public Object get(Object key, Locale l) { Object value = super.get(key,l); if (value != null) { return value; } for (UIDefaults table : tables) { value = (table != null) ? table.get(key,l) : null; if (value != null) { return value; } } return null; } @Override public int size() { return entrySet().size(); } @Override public boolean isEmpty() { return size() == 0; } @Override public Enumeration<Object> keys() { return new MultiUIDefaultsEnumerator( MultiUIDefaultsEnumerator.Type.KEYS, entrySet()); } @Override public Enumeration<Object> elements() { return new MultiUIDefaultsEnumerator( MultiUIDefaultsEnumerator.Type.ELEMENTS, entrySet()); } @Override public Set<Entry<Object, Object>> entrySet() { Set<Entry<Object, Object>> set = new HashSet<Entry<Object, Object>>(); for (int i = tables.length - 1; i >= 0; i--) { if (tables[i] != null) { set.addAll(tables[i].entrySet()); } } set.addAll(super.entrySet()); return set; } @Override protected void getUIError(String msg) { if (tables != null && tables.length > 0 && tables[0] != null) { tables[0].getUIError(msg); } else { super.getUIError(msg); } } private static class MultiUIDefaultsEnumerator implements Enumeration<Object> { public static enum Type { KEYS, ELEMENTS }; private Iterator<Entry<Object, Object>> iterator; private Type type; MultiUIDefaultsEnumerator(Type type, Set<Entry<Object, Object>> entries) { this.type = type; this.iterator = entries.iterator(); } public boolean hasMoreElements() { return iterator.hasNext(); } public Object nextElement() { switch (type) { case KEYS: return iterator.next().getKey(); case ELEMENTS: return iterator.next().getValue(); default: return null; } } } @Override public Object remove(Object key) { Object value = null; for (int i = tables.length - 1; i >= 0; i--) { if (tables[i] != null) { Object v = tables[i].remove(key); if (v != null) { value = v; } } } Object v = super.remove(key); if (v != null) { value = v; } return value; } @Override public void clear() { super.clear(); for (UIDefaults table : tables) { if (table != null) { table.clear(); } } } @Override public synchronized String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); Enumeration<?> keys = keys(); while (keys.hasMoreElements()) { Object key = keys.nextElement(); sb.append(key + "=" + get(key) + ", "); } int length = sb.length(); if (length > 1) { sb.delete(length-2, length); } sb.append("}"); return sb.toString(); } }
⏎ javax/swing/MultiUIDefaults.java
Or download all of them as a single archive file:
File name: java.desktop-11.0.1-src.zip File size: 7974380 bytes Release date: 2018-11-04 Download
⇒ JDK 11 java.instrument.jmod - Instrument Module
2022-08-06, 195336👍, 5💬
Popular Posts:
commons-collections4-4.4 -sources.jaris the source JAR file for Apache Commons Collections 4.2, whic...
Java Cryptography Extension 1.2.2 JAR File Size and Download Location: File name: jce.jar, jce-1.2.2...
JDK 11 java.compiler.jmod is the JMOD file for JDK 11 Compiler module. JDK 11 Compiler module compil...
What Is poi-scratchpad-5.2.3.jar ?poi-scratchpad-5.2.3.jar is one of the JAR files for Apache POI 5....
The JDT project provides the tool plug-ins that implement a Java IDE supporting the development of a...