Dragging an image from Webpage within Firefox no longer provides it as DataFlavour java.net.URL/java.util.List on OSX with Java 7

2013-11-25 Thread Paul Taylor
So on Windows with Java 7  I receive an image dragged frrm a webpage in 
these flavours (plus others) but these are two I'm interested in


25/11/2013 
10.31.07:com.jthink.jaikoz.draganddrop.FileDropTarget:drop:SEVERE: 
java.awt.datatransfer.DataFlavor[mimetype=application/x-java-url;representationclass=java.net.URL]
25/11/2013 
10.31.07:com.jthink.jaikoz.draganddrop.FileDropTarget:drop:SEVERE: 
java.awt.datatransfer.DataFlavor[mimetype=application/x-java-file-list;representationclass=java.util.List]


On OSX with Java 6 I received at least one of the two above, but now 
with Java 7 (1.7.0_40) I no longer receive either


I found these bugs that seem related

https://bugs.openjdk.java.net/browse/JDK-7124379
https://bugs.openjdk.java.net/browse/JDK-8005932

Could I have a comment on this please.

Paul


Re: Focus border of JButton.buttonType=roundRect is cut off

2013-11-25 Thread Sergey Bylokhov

Hi, Hendrik.
Looks like the similar issue was fixed for textured buttons:
https://bugs.openjdk.java.net/browse/JDK-8000435
It would be good if you create a new issue. Thanks!

On 25.11.2013 12:52, Hendrik Schreiber wrote:

Hi,

the focus border of a roundRect JButton (as originally defined in 
https://developer.apple.com/library/mac/technotes/tn2007/tn2196.html — I couldn't find a 
more recent documentation) is cut off left and right in the current Oracle 1.7.0_45 
release. Seems like something with the sizing is off.

I uploaded a screenshot to http://www.tagtraum.com/download/focus_border.png

Is this a known issue, or should I file a bug report at 
http://bugreport.sun.com/bugreport/ (or is there a better place?)?

Thanks,

-hendrik

Code to reproduce on 1.7.0_45 on OS X 10.9:

import javax.swing.*;
import java.awt.*;

public class RoundedRectangleButton {

 public static void main(String[] args) {
 final JFrame frame = new JFrame();
 frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
 frame.getContentPane().setLayout(new BorderLayout());
 final JButton button = new JButton(FocusedButton);
 button.putClientProperty(JButton.buttonType, roundRect);
 frame.add(button, BorderLayout.NORTH);
 frame.add(new JPanel(), BorderLayout.CENTER);
 SwingUtilities.invokeLater(new Runnable() {
 public void run() {
 frame.setBounds(200, 200, 200, 70);
 frame.setVisible(true);
 }
 });
 }

}




--
Best regards, Sergey.