Re: JavaFX 8 Progress

2013-07-18 Thread Jeff Martin
Wow - JWrapper really is remarkable. It took me less than 30 minutes to figure out how to package our ReportMill app for Mac, Windows and Linux. Worked like magic. It doesn't include JavaFX yet, though, even though the Mac JRE is 1.7.0u25. Jeff On Jul 18, 2013, at 4:20 PM, David Ray

Re: Swing and JavaFX thread merge

2013-08-07 Thread Jeff Martin
I thought I was getting this automatically - when I run on my desktop, I can bring up a JOptionPane from a Swing thread and JFXPanels (correctly) block. But when I run from Java Web Start, they don't, and I end up with sporadic SwingUtilities.computeIntersection NullPointerException. Is there

Re: Swing and JavaFX thread merge

2013-08-08 Thread Jeff Martin
in this configuration? jeff On Aug 8, 2013, at 6:50 AM, Artem Ananiev artem.anan...@oracle.com wrote: On 8/8/2013 1:45 AM, Jeff Martin wrote: I thought I was getting this automatically - when I run on my desktop, I can bring up a JOptionPane from a Swing thread and JFXPanels (correctly

Re: Swing and JavaFX thread merge

2013-08-08 Thread Jeff Martin
Addendum: it turns out that the JOptionPane is not blocking any of the UI (Swing included). So maybe this isn't strictly a JavaFX problem. jeff On Aug 8, 2013, at 8:17 AM, Jeff Martin j...@reportmill.com wrote: It looks like this is specific to MacOSX 7u25+, if you run Java Inventor from

Re: Swing and JavaFX thread merge

2013-08-08 Thread Jeff Martin
:56 AM, Jeff Martin j...@reportmill.com wrote: Addendum: it turns out that the JOptionPane is not blocking any of the UI (Swing included). So maybe this isn't strictly a JavaFX problem. jeff On Aug 8, 2013, at 8:17 AM, Jeff Martin j...@reportmill.com wrote: It looks like

Re: Mailing list woes

2013-08-09 Thread Jeff Martin
I only noticed because a couple of my posts didn't come back from the list. I've noticed this, too. Perhaps the list is losing things to a junk filter. jeff On Aug 9, 2013, at 7:45 AM, Felix Bembrick felix.bembr...@gmail.com wrote: I am not sure who this is directed at but there seem to

Re: Swing and JavaFX thread merge

2013-08-13 Thread Jeff Martin
Same here. jeff On Aug 13, 2013, at 10:17 AM, Werner Lehmann lehm...@media-interactive.de wrote: Artem, we already tested with 7u40 b35 - same thing: Java Web Start 10.40.2.35 Using JRE version 1.7.0_40-ea-b35 Java HotSpot(TM) 64-Bit Server VM ... runTest in AWT-EventQueue-2 jfx

Re: JavaOne roundup?

2013-09-29 Thread Jeff Martin
It seems the JFX on iOS/Android were cancelled at the last moment. I tried to keep expectations low this year, but I admit I harbored secret hopes based on those sessions (a few embarrassingly optimistic conversations with clients notwithstanding). Last week Tomas offered this: about

Re: [REVIEW REQUEST] RT-33442: isSelected in TableViewSelectionModel is called too many times

2013-10-21 Thread Jeff Martin
I'm late to this discussion, and I don't see anything wrong with the selectRange() API, but perhaps another option worth considering would be to add a DisableSelectionEvents or CoalesceSelectionEvents attribute. The only advantage to that I can think of is that it could allow bulk selection of

Re: JFXPanel vs. real world usage

2013-10-24 Thread Jeff Martin
My experience has been okay, though I've seen the resizing lag. The only real problem I've seen is bad performance on a retina display Mac Book Pro. jeff On Oct 24, 2013, at 1:37 PM, Tobias Bley t...@ultramixer.com wrote: I added a simple accordion as JFXPanel into a swing frame and the

JavaFX Visual Coding for Education

2013-10-29 Thread Jeff Martin
At JavaOne this year there were several great sessions on Java for education. Since JavaFX seems particularly suited for the task, but didn't appear in the sessions, I decided to take a stab at it. Here are the first results (4 weeks): http://www.reportmill.com/javi/gallery/JaviStudio/

Re: Very poor performance of JavaFX on iPhone - 6 months later

2014-01-03 Thread Jeff Martin
I noticed the high-dpi problem on a high-end MacBook Pro Retina. Took me by surprise for JavaOne demos since I usually use an external monitor (non-retina). I ended up switching to low dpi. jeff On Jan 3, 2014, at 3:59 PM, Stephen F Northover steve.x.northo...@oracle.com wrote: Hi Tobias,

Dragboard setDragView in JFXPanel?

2014-02-11 Thread Jeff Martin
Is the JavaFX 8 Dragboard.setDragView() api supposed to work in JFXPanel? I couldn't find a jira bug - if it should work, I'll file one. jeff

Re: Dragboard setDragView in JFXPanel?

2014-02-11 Thread Jeff Martin
...@oracle.com wrote: Please file a bug. -- best regards, Anthony On 2/12/2014 2:59 AM, Jeff Martin wrote: Is the JavaFX 8 Dragboard.setDragView() api supposed to work in JFXPanel? I couldn't find a jira bug - if it should work, I'll file one. jeff

SnapCode JavaFX

2014-02-21 Thread Jeff Martin
For some Friday night light posting, here is an update on an app I hope will become a great showcase, educational and promotional app for JavaFX and Java: JavaFX Animation: http://www.reportmill.com/snap/gallery/StudioIntro Pen Graphics:

Re: CSS Font size in points doesn't match Node.Font.Size

2014-03-04 Thread Jeff Martin
iPhone gesendet Am 05.03.2014 um 01:03 schrieb Jeff Martin j...@reportmill.com: I can't quite wrap my head around why when I specify an -fx-font-size of 9pt in CSS, it turns into a 12 pt font in my rendered node. I suppose CSS is upscaling for my 96 dpi device, but it makes other measurements

Drag and Drop Doesn't work in JFXPanel on MacOSX

2014-03-05 Thread Jeff Martin
Has anyone else noticed that Drag and Drop doesn't work with JFXPanel on MacOSX (unless I'm doing something stupid)? I filed a bug: https://javafx-jira.kenai.com/browse/RT-36127 There is a very simple test case in the comment. jeff

SnapCode JavaFX Fun

2014-03-09 Thread Jeff Martin
More friday night light posting - I updated SnapCode this week with some fun features: - Mouse/Keyboard sensing (isMousePressed, isKeyPressed) - Actor pen drawing (penDown, penUp, setPenColor) - Added Code Completion popup panel to visual code editor Check out the

Re: Using JavaFX deploy and having signing issues...

2014-03-24 Thread Jeff Martin
I do this with my app, which works (though I don't submit it to the Mac App Store): codesign -s Developer ID Application RMStudio14.app jeff On Mar 24, 2014, at 11:26 AM, Tony Anecito adanec...@yahoo.com wrote: Does anyone know how to codesign the jdk in the bundle created by JavaFX

Re: Expected frame rates for a full-screen blur

2014-04-01 Thread Jeff Martin
If it's a MacBook Pro Retina, you might try it with and without retina level resolution. I haven't tested JavaFX 8 with retina, but JFX 7 had serious problems that would go away when I changed the display to non-retina. jeff On Apr 1, 2014, at 11:41 AM, Mike Hearn m...@plan99.net wrote:

Re: Expected frame rates for a full-screen blur

2014-04-01 Thread Jeff Martin
support is one reason why I chose JFX. Swing on Retina Macs is pretty much unusable, it's like looking through thick plastic. On Tue, Apr 1, 2014 at 7:26 PM, Jeff Martin j...@reportmill.com wrote: If it's a MacBook Pro Retina, you might try it with and without retina level resolution. I

Fractional Metrics

2014-04-03 Thread Jeff Martin
Is there a way to turn off FractionalMetrics in Canvas.fillText() or Text? Also, does text rendering perform kerning, and if so, can I disable that? What I really need is to know the x position (or advance) of each character in a rendered string. jeff

Re: Fractional Metrics

2014-04-04 Thread Jeff Martin
as it will appear on the screen? What about the size of a String as it will be printed? Neil From: Phil Race philip.r...@oracle.com To: Jeff Martin j...@reportmill.com, openjfx-dev@openjdk.java.net Mailing openjfx-dev@openjdk.java.net Date: 04/03/2014 10:40 PM Subject

JFXPanel Dragboard setDragView

2014-04-18 Thread Jeff Martin
I'm trying to figure out how to implement a version of Dragboard.setDragView() that works with JFXPanel (which isn't currently supported). Years ago I did this in Swing by creating a window that followed the mouse around (at an offset, so it wouldn't take all the DragOver events). I created a

JavaFX Asteroids

2014-04-21 Thread Jeff Martin
Check out JavaFX Asteroids (using a thin Greenfoot emulation library in SnapCode): JavaFX Asteroids with Greenfoot and SnapCode http://reportmill.wordpress.com/2014/04/21/javafx-asteroids-with-greenfoot-and-snapcode/ I haven't done any performance work yet, but it runs well

Re: JFXPanel Dragboard setDragView

2014-04-21 Thread Jeff Martin
(100,100,100,100); aStage.setScene(new Scene(pane)); aStage.show(); } On Apr 21, 2014, at 8:45 AM, Anthony Petrov anthony.pet...@oracle.com wrote: Hi Jeff, On 4/18/2014 6:43 PM, Jeff Martin wrote: I'm trying to figure out how to implement a version of Dragboard.setDragView() that works

Should Canvas have been Image subclass instead of Node?

2014-04-22 Thread Jeff Martin
I have a case where I need to draw to a canvas and reuse it in multiple nodes. My non-optimal work-around is to take a snapshot and use that, but it makes me wonder if Canvas should have been an Image subclass or if WritableImage should get it's own getGraphicsContext() method. jeff

Re: Should Canvas have been Image subclass instead of Node?

2014-04-22 Thread Jeff Martin
] On Behalf Of Jeff Martin Sent: Wednesday, April 23, 2014 8:16 AM To: openjfx-dev@openjdk.java.net Mailing Subject: Should Canvas have been Image subclass instead of Node? I have a case where I need to draw to a canvas and reuse it in multiple nodes. My non-optimal work-around is to take a snapshot

Re: Should Canvas have been Image subclass instead of Node?

2014-04-23 Thread Jeff Martin
if you could get a Graphics context for drawing into a WritableImage instead of having to deal with snapshots. But I suppose you could build something like that based on Canvas that would update an image. Scott On Apr 22, 2014 6:52 PM, Jeff Martin j...@reportmill.com wrote: Just by using

Re: Should Canvas have been Image subclass instead of Node?

2014-04-23 Thread Jeff Martin
and will remain one forever. Steve On 2014-04-22 6:15 PM, Jeff Martin wrote: I have a case where I need to draw to a canvas and reuse it in multiple nodes. My non-optimal work-around is to take a snapshot and use that, but it makes me wonder if Canvas should have been an Image subclass

Should TreeItem have a Text property?

2014-05-21 Thread Jeff Martin
I'm working with TreeView today and it seems like it would be convenient if TreeItem had a Text property in addition to it's Graphic property. This would seem to solve the most common need for a custom TreeCell factory. Since most trees basically show a tree of labels, it would seem to make as

Re: Should TreeItem have a Text property?

2014-05-21 Thread Jeff Martin
Thanks! Jira: TreeItem should have a Text property jeff On May 21, 2014, at 2:44 PM, Stephen F Northover steve.x.northo...@oracle.com wrote: This sounds reasonable to me. Please enter a JIRA for it. Steve On 2014-05-21 2:52 PM, Jeff Martin wrote: I'm working with TreeView

Re: Integrating JFX Dialog/Stage in Swing application

2014-05-31 Thread Jeff Martin
Runnable() { public void run() { doSomething(); } return; } … create FX UI and do stage.show() ... } I've done quite a bit of this and it works without problems (for me). jeff martin On May 31, 2014, at 7:27 AM, Robert Krüger krue...@lesspain.de wrote: Hi, I am trying something which

Re: Integrating JFX Dialog/Stage in Swing application

2014-05-31 Thread Jeff Martin
used this quite a bit. So I'll try using it until someone brings up a nicer solution or I run into any problems :-). Cheers, Robert On Sat, May 31, 2014 at 3:57 PM, Jeff Martin j...@reportmill.com wrote: I'm sure this isn't the proper answer, but I have used this call to initialize

Re: Ugly flashing when opening a css-styled stage

2014-06-01 Thread Jeff Martin
I haven't seen this, but here's a hack you can try: // Show stage transparent once to get proper drawing _stage.setOpacity(0); _stage.show(); _stage.hide(); _stage.setOpacity(1); I've done this before to trigger Stage to set it's width/height property (which I needed to

Re: -fx-background-radius problem

2014-06-10 Thread Jeff Martin
and see if the same bug happens? -- Kevin Jeff Martin wrote: Has anyone seen a problem with -fx-background-radius on Windows? When I run Windows using Parallels (on a Mac), -fx-background-radius styles seem to get ignored. Here is my sample code: // Create label with background

VisibleBounds

2014-06-10 Thread Jeff Martin
What is the JFX equivalent of JComponent.getVisibleRect() - and is there a way to get a notification when it changes? jeff

Re: VisibleBounds

2014-06-11 Thread Jeff Martin
.getMaxX(), b2.getMaxX()); double maxy = Math.min(b1.getMaxY(), b2.getMaxY()); return new BoundingBox(minx, miny, maxx-minx, maxy-miny); } On Jun 10, 2014, at 6:59 PM, Jeff Martin j...@reportmill.com wrote: What is the JFX equivalent of JComponent.getVisibleRect() - and is there a way to get

Re: VisibleBounds

2014-06-11 Thread Jeff Martin
enter a JIRA for it. Steve On 2014-06-11, 10:17 AM, Jeff Martin wrote: Below is my poor man's getVisibleBounds. I'm using this so that my custom text pane only needs to add child nodes for lines of text that are visible - similar to how ListView and friends only add cell nodes for visible

SnapCode is the first and only pure JavaFX IDE

2014-06-11 Thread Jeff Martin
Today we finished a two week port of the remaining Swing components of SnapCode to JavaFX, including the code editer, file manager, welcome panel, runtime browser/player and much more. That means JavaFX now has a real IDE written in JavaFX! Check out the video overview: Blog:

Re: Dialogs in JavaFX

2014-06-20 Thread Jeff Martin
it on a convenient FormBuilder class that makes building a simple stack of form controls easy, and can also be used for advanced DialogBoxes. Jeff Martin 214.513.1636 On Jun 20, 2014, at 7:05 AM, Stephen F Northover steve.x.northo...@oracle.com wrote: Great post Jonathan. The summary is that whatever

Re: Dialogs in JavaFX

2014-06-20 Thread Jeff Martin
(myColorChooserPane); if(dbox.showConfirmPanel(focusedNode)) setColor(myColorChooserPane.getSelectedColor()); In fact, your ColorChooserPane could have a showColorDialog() method that would just be the above code. Jeff Martin On Jun 20, 2014, at 10:15 AM, Stephen F Northover

Re: JavaFX at JavaOne 2014

2014-06-23 Thread Jeff Martin
Is it wrong to ask who makes this decision at Oracle? What person, persons or Star Chamber decides to dedicate resources to say graphing or 3D instead of iOS and Android? What gets you laughed at and discredited for suggesting JFX to a boss or customer is definitely the lack of a mobile story.

Warning Could not resolve CSS

2014-06-27 Thread Jeff Martin
Jira and the web at large are full of references to this warning (which seems to just be a nuisance): WARNING: Could not resolve '-fx-table-cell-border-color' while resolving lookups for '-fx-border-color' from rule '*.table-cell' in stylesheet

Re: Warning Could not resolve CSS

2014-06-27 Thread Jeff Martin
/14, 12:19 PM, Jeff Martin wrote: Jira and the web at large are full of references to this warning (which seems to just be a nuisance): WARNING: Could not resolve '-fx-table-cell-border-color' while resolving lookups for '-fx-border-color' from rule '*.table-cell' in stylesheet

Re: Warning Could not resolve CSS

2014-06-27 Thread Jeff Martin
-graph when the 'open' is pressed? I'll try to recreate the bug in a small app. On 6/27/14, 2:47 PM, Jeff Martin wrote: Thanks for the note Dave - yes, I tried it this morning on 8u20b20, still no joy (I also see a big dirty rect problem in my WelcomePanel animation). You can see them both

Re: OT: Netbeans ported to JFX?

2014-07-09 Thread Jeff Martin
My thought is that JavaFX is perfect for an IDE targeted to education, like Greenfoot and BlueJ: SnapCode: SnapCode is the first and only pure JavaFX IDE YouTube Overview: SnapCode JavaFX Overview SnapCode has visual code editing (Snap-coding), a sprite kit, graphics/sound

Re: OT: Netbeans ported to JFX?

2014-07-10 Thread Jeff Martin
/ On 10.07.14 09:06, Robert Krüger wrote: On Wed, Jul 9, 2014 at 4:14 PM, Jeff Martin j...@reportmill.com wrote: My thought is that JavaFX is perfect for an IDE targeted to education, like Greenfoot and BlueJ: SnapCode: SnapCode is the first and only pure JavaFX IDE YouTube Overview

Re: OT: Netbeans ported to JFX?

2014-07-10 Thread Jeff Martin
That's not what Bill Gates or Steve Jobs said. jeff On Jul 10, 2014, at 9:32 AM, Fabrizio Giudici fabrizio.giud...@tidalwave.it wrote: On Thu, 10 Jul 2014 16:23:43 +0200, Jeff Martin j...@reportmill.com wrote: I agree that Oracle should have an in-house apps team to create a few real

Re: OT: Netbeans ported to JFX?

2014-07-10 Thread Jeff Martin
would tell me. :-) jeff On Jul 10, 2014, at 9:53 AM, David Hill david.h...@oracle.com wrote: On 7/10/14, 10:40 AM, Jeff Martin wrote: That's not what Bill Gates or Steve Jobs said. To be fair - both of those guys are trying to build an ecosystem - not just an OS, but an OS and tools

Re: Calculating the preferred size of a node before layout takes place?

2014-08-04 Thread Jeff Martin
I was thinking that certain nodes (e.g., TextField) won’t provide a valid pref size until the window was made visible (and the CSS had been evaluated). A few times I’ve added code set Window Opacity to zero, do a Window show/hide, then reset Window Opacity to one. Then you should get valid pref

Render bug

2014-08-13 Thread Jeff Martin
I’m getting a rendering bug with a simple rotating path in front of an ImageView (with lighting effect) on Mac OS with 8u20: http://reportmill.com/examples/Renderbug/Renderbug.jpg Looks like some sort of dirty rect problem. Am I doing something wrong or should I file a bug? The code

Re: Render bug

2014-08-14 Thread Jeff Martin
applying the lighting effect. I was able to reproduce the dirty rect rendering on my system. The bug went away if I commented out the following line: iview.setEffect(lighting); Can you please file a JIRA so that we will fix it? Thanks, - Chien On 8/13/2014 8:33 AM, Jeff Martin

Re: JavaFX 8 and TextFields

2014-08-18 Thread Jeff Martin
I wonder if this is related to my rendering bug from last week, which also resulted in unexpected horizontal lines (boundary lines actually) when rendering on top of a background with an effect (assuming the textfield is possibly rendering something on a background with an inner shadow effect).

Javapackager not calling MyApp-post-image.sh on MacOSX

2014-09-03 Thread Jeff Martin
I’m glad to see that javafxpackager is now javapackager. So my question should be - what is the proper forum to post a javapackger question, or who at Oracle could create a new dedicated forum for it? In the meantime, does anyone have a suggestion to diagnose why my custom

Re: Javapackager not calling MyApp-post-image.sh on MacOSX

2014-09-03 Thread Jeff Martin
for customization”. jeff On Sep 3, 2014, at 2:46 PM, Danno Ferrin danno.fer...@oracle.com wrote: What mac package format? DMG or PKG? On Sep 3, 2014, at 12:38 PM, Jeff Martin j...@reportmill.com wrote: I’m glad to see that javafxpackager is now javapackager. So my question should

Re: Javapackager not calling MyApp-post-image.sh on MacOSX

2014-09-03 Thread Jeff Martin
. Could you post a bug to javafx-jira.kenai.com? On Sep 3, 2014, at 2:31 PM, Jeff Martin j...@reportmill.com wrote: Actually, for the moment I’m just generating “image”, though I tried pkg and it also didn’t call the post-image script. I love all the customization tips when verbose is turned

Re: Javapackager not calling MyApp-post-image.sh on MacOSX

2014-09-03 Thread Jeff Martin
packaging. Looks to be a PKG oversight. Could you post a bug to javafx-jira.kenai.com? On Sep 3, 2014, at 2:31 PM, Jeff Martin j...@reportmill.com wrote: Actually, for the moment I’m just generating “image”, though I tried pkg and it also didn’t call the post-image script. I love all

JavaScript library for JavaFX fans?

2014-12-15 Thread Jeff Martin
I need to do some JavaScript development - any recommendations for a JavaScript library that comes the closest to JavaFX? It seems like a couple years ago I even heard talk about making a JavaScript version of JavaFX (maybe at JavaOne). jeff

Re: JavaScript library for JavaFX fans?

2014-12-16 Thread Jeff Martin
. And runs in a browser. You're not looking to use fxml and js to build an application, correct? On Dec 16, 2014 5:13 AM, Jim Laskey (Oracle) james.las...@oracle.com wrote: Nashorn JavaScript works with FX very easily. On Dec 15, 2014, at 3:30 PM, Jeff Martin j...@reportmill.com wrote: I need

Re: App hang and pulse logger stops

2015-05-13 Thread Jeff Martin
I think I ran into this a bit when I had a mixed swing/javafx application. It was always due to inadvertently performing Swing activity while still in the JFX thread or visa versa. I think sometimes checking the stack frame on both threads would show me where it was (but sometimes not). I think

Re: Font size, dpi and text crispness (snapping to pixels)

2015-04-16 Thread Jeff Martin
I’m surprised about the font size problem - If I create a font with new Font(“Monaco”, 10), text shows up the same size as it does in Eclipse. I don’t think there is a solution for the blurry problem, however, because there is no way to disable Antialiasing. In Swing, I was able to get crisp

Re: Font size, dpi and text crispness (snapping to pixels)

2015-04-16 Thread Jeff Martin
for sure cannot ask our clients to change their computers/screen to have HiDPI... so having 5K screens, yes in 2045 perhaps. On Thu, Apr 16, 2015 at 7:12 PM, Jeff Martin j...@reportmill.com wrote: I’m surprised about the font size problem - If I create a font with new Font(“Monaco”, 10), text

Re: Can we use JavaPackager and a get full JRE?

2015-08-09 Thread Jeff Martin
“image” as opposed to a .dmg. So it’s easy to add the java binary in an external script (I do some codesign stuff there as well, which has to happen after I modify the native package). Jeff Martin 214.513.1636 On Aug 8, 2015, at 6:16 PM, Scott Palmer swpal...@gmail.com wrote: I’m using

Re: Planning for JavaFX.next

2016-12-08 Thread Jeff Martin
Be wary of selection bias when asking advice from us on this list. I would advocate a feature based on who *isn’t* using JavaFX: WebAssembly browser support. JavaFX is great if you need to build a battleship class app -

Re: Planning for JavaFX.next

2016-12-08 Thread Jeff Martin
t 8:17 AM, Tom Eugelink <t...@tbee.org> wrote: > > @Jeff: You may find the jpro.io approach interesting for running apps in the > webbrowser. > > Tom > > > On 8-12-2016 15:09, Jeff Martin wrote: >> Be wary of selection bias >> <http://www.johndcoo