mirror of
https://github.com/mirror/jdownloader.git
synced 2025-02-20 12:31:56 +00:00
Fixed Drag&Drop Flicker bug.
Getter & Setter of enabled and visible property should be overridden. As a nice sideeffect, this also should be a performance optimization git-svn-id: svn://svn.jdownloader.org/jdownloader/trunk@15982 ebf7c1c2-ba36-0410-9fe8-c592906822b4
This commit is contained in:
parent
26421bdbd8
commit
15618a828f
@ -4,6 +4,7 @@
|
||||
<classpathentry kind="src" path="translations"/>
|
||||
<classpathentry kind="src" path="themes"/>
|
||||
<classpathentry kind="src" path="cfg"/>
|
||||
<classpathentry kind="src" path="tests"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER">
|
||||
<attributes>
|
||||
<attribute name="org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY" value="jd/ressourcen/libs/dbus"/>
|
||||
@ -136,4 +137,4 @@
|
||||
<classpathentry kind="lib" path="ressourcen/libs/neembuu/org-openide-util.jar"/>
|
||||
<classpathentry kind="lib" path="ressourcen/libs/neembuu/org-openide-util-lookup.jar"/>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
</classpath>
|
||||
</classpath>
|
||||
|
@ -49,24 +49,7 @@ public class HosterColumn extends ExtColumn<AbstractNode> {
|
||||
// panel.add(Box.createGlue(), "pushx,growx");
|
||||
StringBuilder sb = new StringBuilder();
|
||||
for (int i = 0; i <= maxIcons; i++) {
|
||||
labels[i] = new RenderLabel() {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
@Override
|
||||
public void show(boolean b) {
|
||||
if (b) {
|
||||
show();
|
||||
} else {
|
||||
hide();
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
labels[i] = new RenderLabel();
|
||||
// labels[i].setBorder(BorderFactory.createMatteBorder(1, 1, 1, 1,
|
||||
// Color.RED));
|
||||
labels[i].setOpaque(false);
|
||||
|
@ -320,6 +320,11 @@ public class DownloadsTable extends PackageControllerTable<FilePackage, Download
|
||||
return ret;
|
||||
}
|
||||
|
||||
protected void processMouseMotionEvent(MouseEvent e) {
|
||||
|
||||
super.processMouseMotionEvent(e);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean editCellAt(int row, int column, EventObject e) {
|
||||
boolean ret = super.editCellAt(row, column, e);
|
||||
|
38
tests/org/jdownloader/table/TableTest.java
Normal file
38
tests/org/jdownloader/table/TableTest.java
Normal file
@ -0,0 +1,38 @@
|
||||
package org.jdownloader.table;
|
||||
|
||||
import java.util.logging.Level;
|
||||
|
||||
import javax.swing.JScrollPane;
|
||||
|
||||
import org.appwork.app.gui.BasicGui;
|
||||
import org.appwork.swing.exttable.test.ExtTextTable;
|
||||
import org.appwork.utils.logging.Log;
|
||||
import org.appwork.utils.swing.EDTRunner;
|
||||
|
||||
public class TableTest {
|
||||
|
||||
public static void main(final String[] args) {
|
||||
Log.L.setLevel(Level.ALL);
|
||||
new EDTRunner() {
|
||||
|
||||
@Override
|
||||
protected void runInEDT() {
|
||||
// LookAndFeelController.getInstance().setUIManager();
|
||||
new BasicGui("testTable") {
|
||||
|
||||
@Override
|
||||
protected void layoutPanel() {
|
||||
this.getFrame().add(new JScrollPane(new ExtTextTable()));
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void requestExit() {
|
||||
System.exit(1);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user