Skip to content

Commit 81b7164

Browse files
committed
UI upgrade
- JTable minor performance improvements - JSSliderUI fix for labels only - JSPopupMenuUI for no invoker - needless XXX.super.yyy() removed (functional, just indicating unnecessarily large nested anonymous class methods) - JSFrameUI comment out - JLabel video icon may not have ui.domNode yet - JSUtil check for File vs Path in caching
1 parent 513679d commit 81b7164

File tree

18 files changed

+278
-173
lines changed

18 files changed

+278
-173
lines changed
601 Bytes
Binary file not shown.
29 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20200701220712
1+
20200708070833
601 Bytes
Binary file not shown.
29 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20200701220712
1+
20200708070833
601 Bytes
Binary file not shown.

sources/net.sf.j2s.java.core/src/java/util/concurrent/ScheduledThreadPoolExecutor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,8 @@ public void run() {
263263
if (!canRunInCurrentRunState(periodic))
264264
cancel(false);
265265
else if (!periodic)
266-
ScheduledFutureTask.super.run();
267-
else if (ScheduledFutureTask.super.runAndReset()) {
266+
super.run();
267+
else if (super.runAndReset()) {
268268
setNextRunTime();
269269
reExecutePeriodic(outerTask);
270270
}

sources/net.sf.j2s.java.core/src/java/util/jar/JarFile.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ public ZipEntry getEntry(String name) {
262262
private class JarEntryIterator implements Enumeration<JarEntry>,
263263
Iterator<JarEntry>
264264
{
265-
final Enumeration<? extends ZipEntry> e = JarFile.super.entries();
265+
final Enumeration<? extends ZipEntry> e = superEntries();
266266

267267
public boolean hasNext() {
268268
return e.hasMoreElements();
@@ -289,7 +289,11 @@ public Enumeration<JarEntry> entries() {
289289
return new JarEntryIterator();
290290
}
291291

292-
@Override
292+
public Enumeration<? extends ZipEntry> superEntries() {
293+
return super.entries();
294+
}
295+
296+
@Override
293297
public Stream<JarEntry> stream() {
294298
return StreamSupport.stream(Spliterators.spliterator(
295299
new JarEntryIterator(), size(),

sources/net.sf.j2s.java.core/src/javax/swing/JLabel.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,6 +1001,7 @@ public void setLabelFor(Component c) {
10011001
public Object getClientProperty(Object key) {
10021002
if (key == "jsvideo") {
10031003
getOrCreatePeer();
1004+
秘getUI().updateDOMNode();
10041005
return 秘getUI().imageNode;
10051006
}
10061007
return super.getClientProperty(key);

0 commit comments

Comments
 (0)