report defect

2016-01-10 Thread Peter Penzov
Hi,
   I want to open defect about JavaFX charts. More information here:

http://stackoverflow.com/questions/34571154/limit-width-size-of-stacked-bar-chart/34699937?noredirect=1#comment57153895_34699937

Can you give me some information how to report it?

BR,
Peter


Limit width size of Stacked Bar chart

2016-01-02 Thread Peter Penzov
I tried to implement this solution

http://stackoverflow.com/questions/28047818/limit-width-size-of-bar-chart

for StackedBar Chart but it turns out that there is no Java method
getBarGap() in StackedBar chart. Is there any solution into the latest
JavaFX version for this problem?


BR,

Peter


Re: NPE is JavaFX Task

2015-05-27 Thread Peter Penzov
Update: Same result with this code:

public void addNewTab(DynamicTreeNodeModel nodeModel)
{
final Tab tab = new Tab();

final ProgressBar progressBar = new ProgressBar();
final Task loadDataTask = new Task()
{
@Override
public BorderPane call() throws Exception
{
Content content = new Content(primaryStage,
treeView.getSelectionModel().getSelectedItem());
return content.initContentData();
}
};
tab.setContent(progressBar);
loadDataTask.setOnSucceeded(new EventHandler()
{
@Override
public void handle(WorkerStateEvent event)
{
BorderPane data = loadDataTask.getValue();
tab.setContent(data);
}
});
final Thread thread = new Thread(loadDataTask);
thread.setDaemon(true);
thread.start();

newTabLabel = new Label(nodeModel.getName());
tab.setStyle("-fx-focus-color: transparent;");  // Remove the blue
dashed label from label
tab.setGraphic(newTabLabel);
tab.setContextMenu(makeTabContextMenu(tab, newTabLabel, tabPane));

tabPane.getTabs().add(0, tab);
tabPane.getSelectionModel().select(tab);
tabPane.setTabClosingPolicy(TabPane.TabClosingPolicy.ALL_TABS);
}

On Wed, May 27, 2015 at 12:56 PM, Peter Penzov 
wrote:

> Hi All,
> I have a question about a issue that I have with JavaFX Task. I'm
> using the code from this example to display progress bar in TabPane when I
> click on TreeView Node:
>
> http://stackoverflow.com/questions/22803845/loading-logic-for-javafx-task
>
> For some reason when I click multiple times on the node I get this
> exception:
>
>
> Exception in thread "JavaFX Application Thread"
> java.lang.NullPointerException
> at com.sun.javafx.css.StyleManager.findMatchingStyles(Unknown
> Source)
> at javafx.scene.CssStyleHelper.createStyleHelper(Unknown Source)
> at javafx.scene.Node.reapplyCss(Unknown Source)
> at javafx.scene.Node.impl_reapplyCSS(Unknown Source)
> at javafx.scene.Node.invalidatedScenes(Unknown Source)
> at javafx.scene.Node.setScenes(Unknown Source)
> at javafx.scene.Parent$1.onChanged(Unknown Source)
> at
> com.sun.javafx.collections.TrackableObservableList.lambda$new$19(Unknown
> Source)
> at
> com.sun.javafx.collections.ListListenerHelper$Generic.fireValueChangedEvent(Unknown
> Sourc
> e)
> at
> com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(Unknown
> Source)
> at javafx.collections.ObservableListBase.fireChange(Unknown Source)
> at javafx.collections.ListChangeBuilder.commit(Unknown Source)
> at javafx.collections.ListChangeBuilder.endChange(Unknown Source)
> at javafx.collections.ObservableListBase.endChange(Unknown Source)
> at javafx.collections.ModifiableObservableListBase.add(Unknown
> Source)
> at java.util.AbstractList.add(Unknown Source)
> at com.sun.javafx.collections.VetoableListDecorator.add(Unknown
> Source)
> at
> com.sun.javafx.scene.control.skin.ProgressIndicatorSkin$IndeterminateSpinner.rebuild(Unkn
> own Source)
> at
> com.sun.javafx.scene.control.skin.ProgressIndicatorSkin$IndeterminateSpinner.access$400(U
> nknown Source)
> at
> com.sun.javafx.scene.control.skin.ProgressIndicatorSkin$2.invalidated(Unknown
> Source)
> at javafx.beans.property.IntegerPropertyBase.markInvalid(Unknown
> Source)
> at javafx.beans.property.IntegerPropertyBase.set(Unknown Source)
> at javafx.css.StyleableIntegerProperty.set(Unknown Source)
> at javafx.beans.property.IntegerProperty.setValue(Unknown Source)
> at javafx.css.StyleableIntegerProperty.applyStyle(Unknown Source)
> at javafx.css.StyleableIntegerProperty.applyStyle(Unknown Source)
> at javafx.scene.CssStyleHelper.transitionToState(Unknown Source)
> at javafx.scene.Node.impl_processCSS(Unknown Source)
> at javafx.scene.Parent.impl_processCSS(Unknown Source)
> at javafx.scene.control.Control.impl_processCSS(Unknown Source)
> at javafx.scene.Parent.impl_processCSS(Unknown Source)
> at javafx.scene.Parent.impl_processCSS(Unknown Source)
> at javafx.scene.Node.processCSS(Unknown Source)
> at javafx.scene.Node.processCSS(Unknown Source)
> at javafx.scene.Node.processCSS(Unknown Source)
> at javafx.scene.Node.processCSS(Unknown Source)
> at javafx.scene.Node.processCSS(Unknown Source)
> at javafx.scene.Node.processCSS(Unknown Source)
> at javafx.scene.Scene

NPE is JavaFX Task

2015-05-27 Thread Peter Penzov
Hi All,
I have a question about a issue that I have with JavaFX Task. I'm using
the code from this example to display progress bar in TabPane when I click
on TreeView Node:

http://stackoverflow.com/questions/22803845/loading-logic-for-javafx-task

For some reason when I click multiple times on the node I get this
exception:


Exception in thread "JavaFX Application Thread"
java.lang.NullPointerException
at com.sun.javafx.css.StyleManager.findMatchingStyles(Unknown
Source)
at javafx.scene.CssStyleHelper.createStyleHelper(Unknown Source)
at javafx.scene.Node.reapplyCss(Unknown Source)
at javafx.scene.Node.impl_reapplyCSS(Unknown Source)
at javafx.scene.Node.invalidatedScenes(Unknown Source)
at javafx.scene.Node.setScenes(Unknown Source)
at javafx.scene.Parent$1.onChanged(Unknown Source)
at
com.sun.javafx.collections.TrackableObservableList.lambda$new$19(Unknown
Source)
at
com.sun.javafx.collections.ListListenerHelper$Generic.fireValueChangedEvent(Unknown
Sourc
e)
at
com.sun.javafx.collections.ListListenerHelper.fireValueChangedEvent(Unknown
Source)
at javafx.collections.ObservableListBase.fireChange(Unknown Source)
at javafx.collections.ListChangeBuilder.commit(Unknown Source)
at javafx.collections.ListChangeBuilder.endChange(Unknown Source)
at javafx.collections.ObservableListBase.endChange(Unknown Source)
at javafx.collections.ModifiableObservableListBase.add(Unknown
Source)
at java.util.AbstractList.add(Unknown Source)
at com.sun.javafx.collections.VetoableListDecorator.add(Unknown
Source)
at
com.sun.javafx.scene.control.skin.ProgressIndicatorSkin$IndeterminateSpinner.rebuild(Unkn
own Source)
at
com.sun.javafx.scene.control.skin.ProgressIndicatorSkin$IndeterminateSpinner.access$400(U
nknown Source)
at
com.sun.javafx.scene.control.skin.ProgressIndicatorSkin$2.invalidated(Unknown
Source)
at javafx.beans.property.IntegerPropertyBase.markInvalid(Unknown
Source)
at javafx.beans.property.IntegerPropertyBase.set(Unknown Source)
at javafx.css.StyleableIntegerProperty.set(Unknown Source)
at javafx.beans.property.IntegerProperty.setValue(Unknown Source)
at javafx.css.StyleableIntegerProperty.applyStyle(Unknown Source)
at javafx.css.StyleableIntegerProperty.applyStyle(Unknown Source)
at javafx.scene.CssStyleHelper.transitionToState(Unknown Source)
at javafx.scene.Node.impl_processCSS(Unknown Source)
at javafx.scene.Parent.impl_processCSS(Unknown Source)
at javafx.scene.control.Control.impl_processCSS(Unknown Source)
at javafx.scene.Parent.impl_processCSS(Unknown Source)
at javafx.scene.Parent.impl_processCSS(Unknown Source)
at javafx.scene.Node.processCSS(Unknown Source)
at javafx.scene.Node.processCSS(Unknown Source)
at javafx.scene.Node.processCSS(Unknown Source)
at javafx.scene.Node.processCSS(Unknown Source)
at javafx.scene.Node.processCSS(Unknown Source)
at javafx.scene.Node.processCSS(Unknown Source)
at javafx.scene.Scene.doCSSPass(Unknown Source)
at javafx.scene.Scene.access$3600(Unknown Source)
at javafx.scene.Scene$ScenePulseListener.pulse(Unknown Source)
at com.sun.javafx.tk.Toolkit.lambda$runPulse$31(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.tk.Toolkit.runPulse(Unknown Source)
at com.sun.javafx.tk.Toolkit.firePulse(Unknown Source)
at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(Unknown Source)
at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(Unknown Source)
at
com.sun.javafx.tk.quantum.QuantumToolkit.lambda$runToolkit$401(Unknown
Source)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$146(Unknown
Source)
at java.lang.Thread.run(Unknown Source)


Can you advice me is this JavaFX issue or the code that I'm using is
incorrect?

BR,
Peter

ref
http://stackoverflow.com/questions/22803845/loading-logic-for-javafx-task


Change BarChart Legend color

2015-04-03 Thread Peter Penzov
Hi All,
   I have a question about changing dynamically the color of the BarChart.
I'm using this code to change the chart Label for now successfully:

Legend legend = (Legend) schart.lookup(".chart-legend");
Legend.LegendItem li1 = new Legend.LegendItem("Over 8", new
Rectangle(10, 4, Color.NAVY));
Legend.LegendItem li2 = new Legend.LegendItem("Over 5 up to 8",
new Rectangle(10, 4, Color.FIREBRICK));
Legend.LegendItem li3 = new Legend.LegendItem("Below 5", new
Rectangle(10, 4, Color.ORANGE));
legend.getItems().setAll(li1, li2, li3);

But Label is from the internal package com.sun.javafx.charts.Legend and I
may have problems into the next JVM versions.

Is there other way to change BarChart label colors. Please refer to this
link for more information:

http://stackoverflow.com/questions/29121687/change-color-in-barchart-legend

Also are there any plans to make Label public package?

BR,
Peter


Multiple parallel tasks in a single service

2015-03-09 Thread Peter Penzov
Hi All,
   I'm interested how I can create 10 Tasks in one Scheduled Service?

private final DataService service = new DataService();

class DataService extends ScheduledService
{
@Override
protected Task createTask()
{
return new Task()
{
@Override
protected Void call() throws Exception
{

// Several tasks


return null;
}
};
}
}


In my case I have 10 charts which I want to update with one
Scheduled Service. So maybe the best solution will be to run the
Scheduled Service with 10 Tasks and update the Charts.


Is there any way to do this?

BR,
Peter


Limit width size of Bar chart

2015-01-20 Thread Peter Penzov
I created simple example of Bar Chart but I notices that size of the bar
fits the chart. How I can limit the size? For example I would like to limit
the width size.

Is there a way to set JavaFX Bar Chart column width size?

For example there is a way to setBarGap size but I can't find a way to set
the maximum width of a Bar Chart column.


BR,

Peter


Update TreeView item graphic

2015-01-16 Thread Peter Penzov
Hi All,
   I can't update dynamically TreeView item graphic when I try to set new
image:

ImageView imgViesw = new ImageView(new
Image(DataTabs.class.getResource("/images/Misc-Database-3-icon.png").toExternalForm()));

treeItem.setGraphic(null);
treeItem.setGraphic(imgViesw);

First I generate TreeView with Items using custom Graphics for for tree
nodes. This works well.

Then I use JavaFX service to iterate the tree nodes and change the icons
based on some condition(active/not-active).

But the images are not updated.

I use Java 8u40b21. Is this a known bug?

BR,
Peter


TitledPane background color

2014-12-25 Thread Peter Penzov
Hi All,
   I have a question how to change TitledPane background color. I tested
this code:

public class MainApp extends Application {

@Override
public void start(Stage stage) throws Exception {

TitledPane pane = new TitledPane("Title", null);
pane.setStyle("-fx-focus-color: transparent; -fx-background-color:
green;");
pane.setCollapsible(false);
pane.setPrefSize(300, 500);


Scene scene = new Scene(pane);

stage.setTitle("JavaFX and Maven");
stage.setScene(scene);
stage.show();
}

public static void main(String[] args) {
launch(args);
}
}

I tried to set the background color to green but when I run the code the
background color is gray. What is the proper way to change the background
color of the TitledPane body?

BR,
Peter


Release date for Java 8u40

2014-12-24 Thread Peter Penzov
Hi All,
   What is the release date for Java 8u40?

BR


JavaFX application for different resolutions

2014-12-14 Thread Peter Penzov
I'm using Simple JavaFX application on computers with different solution.
But on computers with small resolution the appearance is not good. Is there
any way to ajust the size of the application according to the screen size?

BR,
Peter


Re: Spinner control value

2014-12-12 Thread Peter Penzov
Done

https://javafx-jira.kenai.com/browse/RT-39655

No I don't press the Enter key. The value is not auto commuted.

BR

On Fri, Dec 12, 2014 at 11:00 AM, Jonathan Giles 
wrote:
>
> Please file a bug in our Jira and we can take a look. Also, please clarify
> if after entering 34 you are using the enter key to commit the value or not.
>
> -- Jonathan
> Sent from a touch device. Please excuse my brevity.
>
>
> On 12 December 2014 21:33:32 GMT+13:00, Peter Penzov <
> peter.pen...@gmail.com> wrote:
>>
>> Hi All,
>>
>>  I'm using Spinner from 8u40b17.
>>
>> SpinnerValueFactory svf = new
>> SpinnerValueFactory.IntegerSpinnerValueFactory(0, 100);
>>
>> Spinner sp = new Spinner();
>> sp.setValueFactory(svf);
>> sp.setEditable(true);
>> sp.setPrefWidth(80);
>>
>> I noticed that when I enter some value from keyboard and I increase the
>> value the expected number is not the next. Instead of this it's the next
>> default value. How I can fix this?
>>
>> Fox example if I have 5 as default value and I enter 34. When I press the
>> upper arrow I get 6.
>>
>>
>> BR,
>>
>> Peter
>>
>>


Spinner control value

2014-12-12 Thread Peter Penzov
Hi All,

 I'm using Spinner from 8u40b17.

SpinnerValueFactory svf = new
SpinnerValueFactory.IntegerSpinnerValueFactory(0, 100);

Spinner sp = new Spinner();
sp.setValueFactory(svf);
sp.setEditable(true);
sp.setPrefWidth(80);

I noticed that when I enter some value from keyboard and I increase the
value the expected number is not the next. Instead of this it's the next
default value. How I can fix this?

Fox example if I have 5 as default value and I enter 34. When I press the
upper arrow I get 6.


BR,

Peter


Dialogs in JavaFX 8u40

2014-11-01 Thread Peter Penzov
Hi,
   I tested Java 8u40 b12 dialogs. Are there any plans to improve the
design of the dialogs? Are there any plans for additional design
development?

BR,
Peter


Re: WARNING: CSS Error parsing

2014-10-28 Thread Peter Penzov
Thanks David!

On Tue, Oct 28, 2014 at 4:15 PM, David Grieve 
wrote:

>  setStyle("-fx-background-color: linear-gradient(to bottom, #FAFAFA,
> #EAEAEA);"
>  + " -fx-border-width: 2px; -fx-border-style: solid;
> -fx-border-color: white;");
>
>
> On 10/25/14, 9:02 AM, Peter Penzov wrote:
>
>   Hi David,
> Could you please show me the complete example?
>
>  BR,
>  Plamen
>
> On Wed, Oct 15, 2014 at 11:04 PM, David Grieve 
> wrote:
>
>> There is no short-hand for border in JavaFX.  You need to use both
>> -fx-border-color and -fx-border-style
>> See
>> http://docs.oracle.com/javase/8/javafx/api/javafx/scene/doc-files/cssref.html
>>
>>
>> On 10/15/14, 3:53 PM, Peter Penzov wrote:
>>
>>> Hi,
>>> I tested Java 8u40. I get error when I run this part of the code:
>>>
>>> setStyle("-fx-background-color: linear-gradient(to bottom, #FAFAFA,
>>> #EAEAEA);"
>>>  + " -fx-border: 2px solid; -fx-border-color: white;");
>>>
>>> X 15, 2014 10:33:53 PM com.sun.javafx.css.parser.CSSParser declaration
>>> WARNING: CSS Error parsing '*{-fx-background-color: linear-gradient(to
>>> bottom, #FAFAFA, #EAEAEA); -f
>>> x-border: 2px solid; -fx-border-color: white;}: expected series of 
>>> while parsing '-fx-border'
>>>   at [1,82]
>>>
>>>
>>> Is this a bug or css code is wrong?
>>>
>>> BR,
>>> Peter
>>>
>>
>>
>
>


Re: WARNING: CSS Error parsing

2014-10-25 Thread Peter Penzov
Hi David,
   Could you please show me the complete example?

BR,
Plamen

On Wed, Oct 15, 2014 at 11:04 PM, David Grieve 
wrote:

> There is no short-hand for border in JavaFX.  You need to use both
> -fx-border-color and -fx-border-style
> See http://docs.oracle.com/javase/8/javafx/api/javafx/scene/doc-
> files/cssref.html
>
>
> On 10/15/14, 3:53 PM, Peter Penzov wrote:
>
>> Hi,
>> I tested Java 8u40. I get error when I run this part of the code:
>>
>> setStyle("-fx-background-color: linear-gradient(to bottom, #FAFAFA,
>> #EAEAEA);"
>>  + " -fx-border: 2px solid; -fx-border-color: white;");
>>
>> X 15, 2014 10:33:53 PM com.sun.javafx.css.parser.CSSParser declaration
>> WARNING: CSS Error parsing '*{-fx-background-color: linear-gradient(to
>> bottom, #FAFAFA, #EAEAEA); -f
>> x-border: 2px solid; -fx-border-color: white;}: expected series of 
>> while parsing '-fx-border'
>>   at [1,82]
>>
>>
>> Is this a bug or css code is wrong?
>>
>> BR,
>> Peter
>>
>
>


WARNING: CSS Error parsing

2014-10-15 Thread Peter Penzov
Hi,
   I tested Java 8u40. I get error when I run this part of the code:

setStyle("-fx-background-color: linear-gradient(to bottom, #FAFAFA,
#EAEAEA);"
+ " -fx-border: 2px solid; -fx-border-color: white;");

X 15, 2014 10:33:53 PM com.sun.javafx.css.parser.CSSParser declaration
WARNING: CSS Error parsing '*{-fx-background-color: linear-gradient(to
bottom, #FAFAFA, #EAEAEA); -f
x-border: 2px solid; -fx-border-color: white;}: expected series of 
while parsing '-fx-border'
 at [1,82]


Is this a bug or css code is wrong?

BR,
Peter


Close all ContextMenu with mouse button

2014-09-17 Thread Peter Penzov
Hi All,
Is there a way to close all opened context menus opened on the scene?
When I press a button I would like to close all Context menus opened by
right muse click.

BR,
Peter


RichTextEditor in 8u40

2014-09-17 Thread Peter Penzov
Hi All,
   Looking at the 8u40 road map there are plans for RichTextEdito:

https://wiki.openjdk.java.net/display/OpenJFX/8u40

Is there any code example that I can test?

BR,
Peter


Time spinner in 8u40

2014-09-17 Thread Peter Penzov
Hi All,
I successfully tested Spinner control in 8u40.

final Spinner spinner = new Spinner();

spinner.setValueFactory(new
SpinnerValueFactory.IntegerSpinnerValueFactory(0, 1));
spinner.setEditable(true);

I noticed that there is a Java method for time spinner
LocalDateSpinnerValueFactory in SpinnerValueFactory. But the Java Method is
not public. Are there plans to release time spinner in 8u40?

BR,
Peter


Unknown error 0x80DE0001

2014-09-11 Thread Peter Penzov
HI All,
   I tested drag and drop example. I get this error:

E r r o r : 8 0 d e 0 0 0 1 i n C a l l b a c k T o J a v a ( j a v a I D s
. V i e w . n o t i
f y D r a g D r o p , g r f K e y S t a t e , p t , p d w E f f e c t )
 C O M E r r o r : 8 0 d e 0 0 0 1 U n k n o w n e r r o r 0 x 8 0 D E 0 0
0 1
 E r r o r : 8 0 d e 0 0 0 1 i n : : D o D r a g D r o p ( p c d , I D r o
p S o u r c e P t
 r ( n e w G l a s s D r o p S o u r c e ( o b j ) , f a l s e ) , g e t D
R O P E F F E C T (
 s u p p o r t e d A c t i o n s ) , & p e r f o r m e d D r o p E f f e c
t )
 C O M E r r o r : 8 0 d e 0 0 0 1 U n k n o w n e r r o r 0 x 8 0 D E 0 0
0 1


Any idea what causes this?

More information and test example:

https://javafx-jira.kenai.com/browse/RT-38641


Re: How to learn the identity of the graphics card?

2014-08-05 Thread Peter Penzov
Hi All,
   I'm interested how I can get the model of the GPU card using Java. Can
you show me some basic example?

BR,
Peter


On Wed, Aug 6, 2014 at 3:02 AM, Jim Graham  wrote:

> If there is a card that can't keep up with what we want it to do then we
> should probably be dealing with that on our end as well, whether by
> disabling 3D on that card or by black listing it and just falling back to
> sw pipeline.  We already do that with a number of embedded GPUs...
>
> ...jim
>
> On 8/1/14 2:27 AM, Mike Hearn wrote:
>
>>
>>> Scott is correct about the determining of the SW pipeline. To add to
>>> that,
>>> if knowing whether you are running on SW is sufficient
>>>
>>>
>> Unfortunately for the Intel HD4000 card that some older laptops have, it
>> technically supports 3D but struggles to do basic shader effects at 60fps
>> when running at high pixel densities. I think I posted about this problem
>> before. Simpler animations work better (just) but I'd prefer to only fall
>> back to that when necessary.
>>
>>
>>  I think the suggestion about starting out assuming that animation will be
>>> OK and then backing off is a good one, if it is practical for your
>>> application.
>>>
>>>
>> Given that I'll be bundling a JVM with the app anyway I think it'd be
>> easier and give a better UX to just patch JavaFX to expose this data using
>> an API specific to my app. It obviously has it because when running with
>> Prism debug logging the info is printed.
>>
>>


Re: How to pause service when it's not visible in TabPane

2014-07-30 Thread Peter Penzov
Hi Tomas,
  I'm not 100% sure but I tested the proposed code and it seems that it's
working. One more question. I have too many Java Classes into which I need
to implement this. Is there a quick and easy way to get the Tab Object into
the service class where I need to implement this?

BR,
Peter


On Wed, Jul 30, 2014 at 1:22 PM, Tomas Mikula 
wrote:

> What about
>
> tab.selectedProperty().addListener((obs, old, selected) -> {
> if(selected) {
> service.restart();
> } else {
> service.cancel();
> }
> });
>
> ?
>
> Best,
> Tomas
>
> On Wed, Jul 30, 2014 at 9:07 AM, Peter Penzov 
> wrote:
> > Hi All,
> >I have a TabPane with JavaFX service which displays some data. I'm
> > interested is there a way to pause the service when I switch the tabs and
> > the service is not visible? It 'will same me a lot of CPU resources if
> > there is a way to implement this.
> >
> > BR,
> > Peter
>


How to pause service when it's not visible in TabPane

2014-07-30 Thread Peter Penzov
Hi All,
   I have a TabPane with JavaFX service which displays some data. I'm
interested is there a way to pause the service when I switch the tabs and
the service is not visible? It 'will same me a lot of CPU resources if
there is a way to implement this.

BR,
Peter


JavaFX tuning

2014-07-23 Thread Peter Penzov
Hi,
What are the options for JavaFX tuning? For example is it possible to
turn off some modules of the framework or some configuration for lowering
the memory consumption?

BR,
Peter


Re: Package change in jdk-8u11-windows-x64

2014-07-17 Thread Peter Penzov
Is there any to fix the problem?


On Thu, Jul 17, 2014 at 6:18 PM, Kevin Rushforth  wrote:

> You probably already know this, but importing from a com.sun.* package is
> not supported. These packages are internal implementation, and the classes
> and methods are subject to change or removal at any time.
>
> Having said that, this class was introduced in 8u20 so I wouldn't expect
> to see it in 8u11.
>
> -- Kevin
>
>
>
> Peter Penzov wrote:
>
>> HI All,
>> I tried to compile ControlsFX with the latest Java release
>> jdk-8u11-windows-x64 but I get error that these packages are not found:
>>
>>
>> import com.sun.javafx.scene.traversal.ParentTraversalEngine;
>> import com.sun.javafx.scene.traversal.TraversalContext;
>>
>> Can you tell me where is the new location if just the location is changed
>> so I can fix the imports?
>>
>> BR,
>> Peter
>>
>>
>


Package change in jdk-8u11-windows-x64

2014-07-17 Thread Peter Penzov
HI All,
I tried to compile ControlsFX with the latest Java release
jdk-8u11-windows-x64 but I get error that these packages are not found:


import com.sun.javafx.scene.traversal.ParentTraversalEngine;
import com.sun.javafx.scene.traversal.TraversalContext;

Can you tell me where is the new location if just the location is changed
so I can fix the imports?

BR,
Peter


Create ContextMenu in Task

2014-03-19 Thread Peter Penzov
Hi,
   I'm working on a application which is using Task to load content. I have
a Context Menu insight the Task which is not working due to these problems:

https://javafx-jira.kenai.com/browse/RT-25127
https://javafx-jira.kenai.com/browse/RT-17716

This is a limitation. Is there any plans to fix these issues?

BR,
Peter


Re: FX Experience Tools

2014-01-12 Thread Peter Penzov
Is there any similar tool like FX Experience Tools for css layout?


On Sun, Jan 12, 2014 at 11:09 AM, Jonathan Giles
wrote:

> I doubt these tools will be refreshed for 8.0 (if necessary - I haven't
> tested how well they work in 8.0), but the code is all available in
> github so it would be great to see someone step up and make any
> necessary improvements! You can find all the code here:
>
> https://github.com/fxexperience/code
>
> -- Jonathan
>
> On 8/01/2014 11:29 p.m., Peter Penzov wrote:
> > Hi All,
> >I found this link about the FX Experience Tools.
> >
> > http://fxexperience.com/2012/03/announcing-fx-experience-tools/
> >
> > It seems that this tool is no longer actively developed. Are there any
> > plans to continue to support it and also can I use use it in JavaFX 8?
> >
> > BR,
> > Peter
>
>


FX Experience Tools

2014-01-08 Thread Peter Penzov
Hi All,
   I found this link about the FX Experience Tools.

http://fxexperience.com/2012/03/announcing-fx-experience-tools/

It seems that this tool is no longer actively developed. Are there any
plans to continue to support it and also can I use use it in JavaFX 8?

BR,
Peter


Progress Bar into Combo Box is not working properly

2013-12-16 Thread Peter Penzov
Hi All,
   I want to implement Progress Bar into Combo Box. I pasted the code here:

http://stackoverflow.com/questions/20518329/combobox-with-progress-bars-is-not-working-properly


When I run the code the progress bar is empty. There is no selected
Progress Bar which is displayed by default. And also after a time the
progress bar is not responsible. I tested the code with Java 8b119. Maybe
this is a bug.

Can you please assist me to fix this issue?

Regards,
Peter


Re: Option to keep Stages always on top on JavaFX 8 ?

2013-12-16 Thread Peter Penzov
Hi All,
   I'm also interested in this. Can you share some information?

Regards,
Peter


On Thu, Dec 12, 2013 at 12:27 AM, Herve Girod  wrote:

> I know that this option is not available for JavaFX 2.2, but is it planned
> for Java 8, and for what time frame if the answer is yes (for example, for
> initial release or later ?) .
>
> This is an important feature for us, because we need to show JavaFX content
> on top of Windows created on other programs (for example, elements on top
> of a cartographic system produced by a C++ program, but it's just an
> example).
>
> As there is no alwaysOnTop API on Stage in JavaFX, a workaround is to
> create a Swing Window, put a JFXPanel in it, and the Scene in the JFXPanel.
> However, multitouch gestures are not handled by Swing, so these are not
> working in this case.
>
> Our only option is then to put a Stage toFront(), and hope that the other
> content won't pop on top of JavaFX while the user click on it.
>
> This is OK if no part of our Stage need to be transparent to user events,
> and also if all of the other Windows are created prior to the JavaFX stage
> is created, but it is not always possible, and we envision cases where our
> workaround won't work.
>
> Regards,
>
> Hervé
>


Re: Changes in caspian.bss

2013-09-14 Thread Peter Penzov
Thank you for the reply!

How I can disable these warnings when I run the code in Netbeans?


On Sat, Sep 14, 2013 at 2:26 PM, Tom Eugelink  wrote:

>
> On JavaFX 8.0 we're getting all kind of CSS warnings when running the
> JFXtras 8.0 project. I personally am waiting for JFX8 to stabilize before
> trying to figure out what is going on exactly. I do not notice any (visual)
> problems though.
>
>
>
> On 2013-09-14 12:32, Peter Penzov wrote:
>
>> Hi,
>>   I tried to implement my own version of example from jfxtras -
>> BigDecimalField. I copied all java files and css code successfully but
>> when
>> I run the code I get these errors:
>>
>>
>>
>> IX 14, 2013 1:29:54 PM javafx.scene.CssStyleHelper calculateValue
>> WARNING: Could not resolve '-fx-shadow-highlight-color' while resolving
>> lookups for '-fx-background-color' from rule '*.big-decimal-field' in
>> stylesheet
>> file:/D:/Users/pterzie/**Desktop/DX-57DC/target/**classes/styles/**
>> BigDecimalField.css
>> IX 14, 2013 1:29:54 PM javafx.scene.CssStyleHelper calculateValue
>> WARNING: Could not resolve '-fx-shadow-highlight-color' while resolving
>> lookups for '-fx-background-color' from rule '*.text-field' in stylesheet
>> jar:file:/C:/Program%20Files/**Java/jdk1.8.0/jre/lib/ext/**
>> jfxrt.jar!/com/sun/javafx/**scene/control/skin/caspian/**caspian.bss
>> IX 14, 2013 1:29:54 PM javafx.scene.CssStyleHelper calculateValue
>> WARNING: Could not resolve '-fx-text-inner-color' while resolving lookups
>> for '-fx-highlight-text-fill' from rule '*.text-input' in stylesheet
>> jar:file:/C:/Program%20Files/**Java/jdk1.8.0/jre/lib/ext/**
>> jfxrt.jar!/com/sun/javafx/**scene/control/skin/caspian/**caspian.bss
>> IX 14, 2013 1:29:54 PM javafx.scene.CssStyleHelper calculateValue
>> WARNING: Could not resolve '-fx-text-inner-color' while resolving lookups
>> for '-fx-text-fill' from rule '*.text-field' in stylesheet
>> jar:file:/C:/Program%20Files/**Java/jdk1.8.0/jre/lib/ext/**
>> jfxrt.jar!/com/sun/javafx/**scene/control/skin/caspian/**caspian.bss
>> IX 14, 2013 1:29:54 PM javafx.scene.CssStyleHelper calculateValue
>> WARNING: Could not resolve '-fx-control-inner-background' while resolving
>> lookups for '-fx-highlight-fill' from rule '*.text-input' in stylesheet
>> jar:file:/C:/Program%20Files/**Java/jdk1.8.0/jre/lib/ext/**
>> jfxrt.jar!/com/sun/javafx/**scene/control/skin/caspian/**caspian.bss
>> IX 14, 2013 1:29:54 PM javafx.scene.CssStyleHelper calculateValue
>> WARNING: Could not resolve '-fx-control-inner-background' while resolving
>> lookups for '-fx-prompt-text-fill' from rule '*.text-field' in stylesheet
>> jar:file:/C:/Program%20Files/**Java/jdk1.8.0/jre/lib/ext/**
>> jfxrt.jar!/com/sun/javafx/**scene/control/skin/caspian/**caspian.bss
>> IX 14, 2013 1:29:54 PM javafx.scene.CssStyleHelper calculateValue
>> WARNING: Could not resolve '-fx-text-box-border' while resolving lookups
>> for '-fx-background-color' from rule '*.big-decimal-field *.arrow-button'
>> in stylesheet
>> file:/D:/Users/pterzie/**Desktop/DX-57DC/target/**classes/styles/**
>> BigDecimalField.css
>> IX 14, 2013 1:29:54 PM javafx.scene.CssStyleHelper calculateValue
>> WARNING: Could not resolve '-fx-control-inner-background' while resolving
>> lookups for '-fx-background-color' from rule
>> '*.tab-pane>*.tab-content-**area' in stylesheet
>> jar:file:/C:/Program%20Files/**Java/jdk1.8.0/jre/lib/ext/**
>> jfxrt.jar!/com/sun/javafx/**scene/control/skin/caspian/**caspian.bss
>> IX 14, 2013 1:29:54 PM javafx.scene.CssStyleHelper calculateValue
>> WARNING: Could not resolve '-fx-text-background-color' while resolving
>> lookups for '-fx-text-fill' from rule '*.label' in stylesheet
>> jar:file:/C:/Program%20Files/**Java/jdk1.8.0/jre/lib/ext/**
>> jfxrt.jar!/com/sun/javafx/**scene/control/skin/caspian/**caspian.bss
>> IX 14, 2013 1:29:54 PM javafx.scene.CssStyleHelper calculateValue
>> WARNING: Could not resolve '-fx-text-background-color' while resolving
>> lookups for '-fx-text-fill' from rule '*.label' in stylesheet
>> jar:file:/C:/Program%20Files/**Java/jdk1.8.0/jre/lib/ext/**
>> jfxrt.jar!/com/sun/javafx/**scene/control/skin/caspian/**caspian.bss
>> IX 14, 2013 1:29:54 PM javafx.scene.CssStyleHelper calculateValue
>> WARNING: Could not resolve '-fx-shadow-highlight-color' whi

Changes in caspian.bss

2013-09-14 Thread Peter Penzov
Hi,
 I tried to implement my own version of example from jfxtras -
BigDecimalField. I copied all java files and css code successfully but when
I run the code I get these errors:



IX 14, 2013 1:29:54 PM javafx.scene.CssStyleHelper calculateValue
WARNING: Could not resolve '-fx-shadow-highlight-color' while resolving
lookups for '-fx-background-color' from rule '*.big-decimal-field' in
stylesheet
file:/D:/Users/pterzie/Desktop/DX-57DC/target/classes/styles/BigDecimalField.css
IX 14, 2013 1:29:54 PM javafx.scene.CssStyleHelper calculateValue
WARNING: Could not resolve '-fx-shadow-highlight-color' while resolving
lookups for '-fx-background-color' from rule '*.text-field' in stylesheet
jar:file:/C:/Program%20Files/Java/jdk1.8.0/jre/lib/ext/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
IX 14, 2013 1:29:54 PM javafx.scene.CssStyleHelper calculateValue
WARNING: Could not resolve '-fx-text-inner-color' while resolving lookups
for '-fx-highlight-text-fill' from rule '*.text-input' in stylesheet
jar:file:/C:/Program%20Files/Java/jdk1.8.0/jre/lib/ext/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
IX 14, 2013 1:29:54 PM javafx.scene.CssStyleHelper calculateValue
WARNING: Could not resolve '-fx-text-inner-color' while resolving lookups
for '-fx-text-fill' from rule '*.text-field' in stylesheet
jar:file:/C:/Program%20Files/Java/jdk1.8.0/jre/lib/ext/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
IX 14, 2013 1:29:54 PM javafx.scene.CssStyleHelper calculateValue
WARNING: Could not resolve '-fx-control-inner-background' while resolving
lookups for '-fx-highlight-fill' from rule '*.text-input' in stylesheet
jar:file:/C:/Program%20Files/Java/jdk1.8.0/jre/lib/ext/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
IX 14, 2013 1:29:54 PM javafx.scene.CssStyleHelper calculateValue
WARNING: Could not resolve '-fx-control-inner-background' while resolving
lookups for '-fx-prompt-text-fill' from rule '*.text-field' in stylesheet
jar:file:/C:/Program%20Files/Java/jdk1.8.0/jre/lib/ext/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
IX 14, 2013 1:29:54 PM javafx.scene.CssStyleHelper calculateValue
WARNING: Could not resolve '-fx-text-box-border' while resolving lookups
for '-fx-background-color' from rule '*.big-decimal-field *.arrow-button'
in stylesheet
file:/D:/Users/pterzie/Desktop/DX-57DC/target/classes/styles/BigDecimalField.css
IX 14, 2013 1:29:54 PM javafx.scene.CssStyleHelper calculateValue
WARNING: Could not resolve '-fx-control-inner-background' while resolving
lookups for '-fx-background-color' from rule
'*.tab-pane>*.tab-content-area' in stylesheet
jar:file:/C:/Program%20Files/Java/jdk1.8.0/jre/lib/ext/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
IX 14, 2013 1:29:54 PM javafx.scene.CssStyleHelper calculateValue
WARNING: Could not resolve '-fx-text-background-color' while resolving
lookups for '-fx-text-fill' from rule '*.label' in stylesheet
jar:file:/C:/Program%20Files/Java/jdk1.8.0/jre/lib/ext/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
IX 14, 2013 1:29:54 PM javafx.scene.CssStyleHelper calculateValue
WARNING: Could not resolve '-fx-text-background-color' while resolving
lookups for '-fx-text-fill' from rule '*.label' in stylesheet
jar:file:/C:/Program%20Files/Java/jdk1.8.0/jre/lib/ext/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
IX 14, 2013 1:29:54 PM javafx.scene.CssStyleHelper calculateValue
WARNING: Could not resolve '-fx-shadow-highlight-color' while resolving
lookups for '-fx-background-color' from rule '*.combo-box-base' in
stylesheet
jar:file:/C:/Program%20Files/Java/jdk1.8.0/jre/lib/ext/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
IX 14, 2013 1:29:54 PM javafx.scene.CssStyleHelper calculateValue
WARNING: Could not resolve '-fx-outer-border' while resolving lookups for
'-fx-background-color' from rule '*.combo-box-base>*.arrow-button' in
stylesheet
jar:file:/C:/Program%20Files/Java/jdk1.8.0/jre/lib/ext/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
IX 14, 2013 1:29:54 PM javafx.scene.CssStyleHelper calculateValue
WARNING: Could not resolve '-fx-mark-highlight-color' while resolving
lookups for '-fx-background-color' from rule
'*.combo-box-base>*.arrow-button>*.arrow' in stylesheet
jar:file:/C:/Program%20Files/Java/jdk1.8.0/jre/lib/ext/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
IX 14, 2013 1:29:54 PM javafx.scene.CssStyleHelper calculateValue
WARNING: Could not resolve '-fx-box-border' while resolving lookups for
'-fx-background-color' from rule '*.list-view' in stylesheet
jar:file:/C:/Program%20Files/Java/jdk1.8.0/jre/lib/ext/jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.bss
IX 14, 2013 1:29:54 PM javafx.scene.CssStyleHelper calculateValue
WARNING: Could not resolve '-fx-box-border' while resolving lookups for
'-fx-background-color' from rule '*.scroll-bar:vertical' in stylesheet
jar:file:/C:/

Size of a BorderPane left side

2013-08-26 Thread Peter Penzov
I wan to get the size of the left side of a BorderPane In JavaFX 8. I
tested this:


mainPanel.getRight().getBoundsInLocal().getWidth();



I think that this is not the correct way. Can you show me how I can do this
if it's possible?



I tested this code:



I get the width of the Left side of a BorderPane, then I set the width of a
TabPane:



BorderPane mainPanel new BorderPane();
tabPane.setPrefWidth(mainPanel.getRight().getBoundsInLocal().getWidth());




I get NPE. Can you help me to correct my mistake? I want when I resize the
Center of the BorderPane to update the size of the TabPane(shrink it or
expand it dynamically).


Resize component problem

2013-08-25 Thread Peter Penzov
Hi,
   I'm working on a component resize from several weeks. I'm writing here
because I don't have idea how to solve this issue.

I created example application which holds several TabPanes into one big
BorderPane. I want to resize the size of the component using mouse drag and
drop. The TabPane which is located at the center of the border can be
resized with mouse drag and drop successfully. Now comes the big problem.
In JavaFX 8 the component situated on the right side and below the resized
component are pushed behind the visible area of the stage. I want to shrink
them automatically or expand them when I resize the component.

Simply download the example and build it with JavaFX 8. When the
application is loaded move the cursor at the border of the center stage and
drag it with the mouse. The near components will be pushed. I would like to
prevent moving the near components. I would like to  shrink their size.

Can you help me with this big issue?

Regards


Re: Is JavaFX supported Linux Redhat

2013-08-25 Thread Peter Penzov
As far as I know only Ubuntu is supported. I use Centos 6 as development
platform. The visual difference is the font size and type. Well sometimes
in JavaFX 8 b103 something may not work but I suppose it's going to be
fixed in future versions.


On Sun, Aug 25, 2013 at 5:44 PM, K, Dhevendran (MSDU)  wrote:

> Hi
>
> Is JavaFX supported Linux Redhat ?
>
> Thanks & Regards
> Dhevendran K
>
>


Call static content

2013-08-24 Thread Peter Penzov
I have this code from JavaFX application:

private static final ImageView ncpic;
static {
ncpic = new
ImageView(TabContent.class.getResource("/images/6.jpg").toExternalForm());
}

I noticed that I can use this picture only once. When I use it twice the
scene where I call it it's empty. How I can use this picture twice or more
times? Maybe this is caused by the static java method which I call to
display the picture?

quick example:

public class TabContent {

private static final ImageView ncpic;
static {
ncpic = new
ImageView(TabContent.class.getResource("/images/6.jpg").toExternalForm());
}

private static StackPane generalConfiguration() {

StackPane stack = new StackPane();
stack.getChildren().addAll(ncpic);   // Add the picture
and the Label
return stack;
}}

I use it this way: TabContent.generalConfiguration() And second time in
different Java Class.


Re: Default Font in JavaFX 2.2 and JavaFX 8

2013-08-24 Thread Peter Penzov
I found these post how to embed fonts:
http://thierrywasyl.wordpress.com/2013/01/27/set-custom-font-in-javafx-2/
http://stackoverflow.com/questions/16855677/how-to-embed-ttf-fonts-is-javafx-2-2

Do you think that it's a good idea to embed a font and use it on every OS?
Maybe I will have future problems doing this?


On Sat, Aug 24, 2013 at 8:18 PM, Jasper Potts wrote:

> Windows XP = Tahoma 8pt
> Windows Vista or newer = Segoe UI 12,15 or 18 depending on user large font
> setting
> Mac = Lucida Grande 13
> Linux = I am not 100% sure think Lucida Sans 12
>
> Jasper
>
> On Aug 24, 2013, at 7:55 AM, Richard Bair  wrote:
>
> > It depends on the platform. We choose as the default whatever the OS
> tells us the font should be.
> >
> > Richard
> >
> > On Aug 24, 2013, at 2:32 AM, Peter Penzov 
> wrote:
> >
> >> Hi,
> >>  Can you tell me what is the default text Font in JavaFX 2.2 and JavaFX
> 8?
> >
>


Default Font in JavaFX 2.2 and JavaFX 8

2013-08-24 Thread Peter Penzov
Hi,
   Can you tell me what is the default text Font in JavaFX 2.2 and JavaFX 8?


Re: Font size

2013-08-22 Thread Peter Penzov
Hi,
  This problem can be seen in modena.css and caspian.css. -fx-font-size is
not working properly.
Please vote
https://javafx-jira.kenai.com/browse/RT-32500


On Fri, Aug 23, 2013 at 2:13 AM, Felipe Heidrich  wrote:

> Hi,
>
> Without a test case it is hard to tell what you mean exactly, but here is
> a guess:
>
> Some type ago we added a new TextBoundsType#LOGICAL_VERTICAL_CENTER.
>
> This is set in modena.css and affects all text content in controls:
> .text {
> /* This adjusts text alignment within the bounds of text nodes so that
>the text is always vertically centered within the bounds. Based on
>the cap height of the text. */
> -fx-bounds-type: logical_vertical_center;
> /* Enable LCD text rendering */
> -fx-font-smoothing-type: lcd;
> }
>
> I remember that when this mode is set the font leading (space between
> lines) is not added to the last line.
> Which means if your text has only one line this leading is not add at all
> (previously it was always added).
>
> You could compare Text to Label, if it happens that Text is the right
> height while Label is a bit short then probably it is TextBoundsType that
> is making the difference.
>
> Regards,
> Felipe
>
> On Aug 22, 2013, at 2:46 PM, Peter Penzov wrote:
>
> I added System.setProperty("prism.text", "t2k"); to the start() Java method
> but I don't see any change. any other ideas? I could open JIRA case?
>
>
> On Fri, Aug 23, 2013 at 12:07 AM, John Hendrikx  wrote:
>
> On 22/08/2013 22:58, Peter Penzov wrote:
>
>
> Hi,
>
>I'm working on JavaFX application based on Java 8. It seems that from
>
> version b97 there is a issue with -fx-font-size. It's not working
>
> properly.
>
> If you compare the two images from application tested on JavaFX 2.2 and
>
> JavaFX 8 b103 you will see that there is a difference. Can you give me
>
> some
>
> information when this issue will be fixed?
>
>
>
> Could you try do:
>
>
> System.setProperty("prism.**text", "t2k");
>
>
> or:
>
>
> -Dprism.text=t2k
>
>
> I noticed somewhere between the builds you mentioned that the "apparent"
>
> font size in some areas changed slightly.  Perhaps the above setting will
>
> help locate the problem.
>
>
>
> Regards
>
>
>
>
>
>


Re: Font size

2013-08-22 Thread Peter Penzov
I added System.setProperty("prism.text", "t2k"); to the start() Java method
but I don't see any change. any other ideas? I could open JIRA case?


On Fri, Aug 23, 2013 at 12:07 AM, John Hendrikx  wrote:

> On 22/08/2013 22:58, Peter Penzov wrote:
>
>> Hi,
>> I'm working on JavaFX application based on Java 8. It seems that from
>> version b97 there is a issue with -fx-font-size. It's not working
>> properly.
>> If you compare the two images from application tested on JavaFX 2.2 and
>> JavaFX 8 b103 you will see that there is a difference. Can you give me
>> some
>> information when this issue will be fixed?
>>
>
> Could you try do:
>
>  System.setProperty("prism.**text", "t2k");
>
> or:
>
>  -Dprism.text=t2k
>
> I noticed somewhere between the builds you mentioned that the "apparent"
> font size in some areas changed slightly.  Perhaps the above setting will
> help locate the problem.
>
>
>> Regards
>>
>
>


Font size

2013-08-22 Thread Peter Penzov
Hi,
   I'm working on JavaFX application based on Java 8. It seems that from
version b97 there is a issue with -fx-font-size. It's not working properly.
If you compare the two images from application tested on JavaFX 2.2 and
JavaFX 8 b103 you will see that there is a difference. Can you give me some
information when this issue will be fixed?

Regards


Change order of components insight FlowPane

2013-07-31 Thread Peter Penzov
I have a FlowPane with many small panels which are BorderPanes. I want to
change the order of the BorderPanes with mouse drag and drop. But I'm sure
that this functionality for now is not possible. So I think that I can
solve this issue in other way.

I can insert additional component which will be inserted into the FlowPane
and will hold the BorderPane:

FlowPane -> component -> BorderPane

I can add setOnDragDetected() and setOnDragDropped to the component in
order to implement the drag and drop.

The question is which component will be suitable for this task? I need to
make it transparent and it must be auto resizable because the BorderPanes
can expand and shrink. Can you give me some advice?

Regards
Peter


New Layout Panes in JavaFX 8

2013-07-27 Thread Peter Penzov
I would like to ask you are you planning to add new Layout Panes in JavaFX
8?


resize issue

2013-07-26 Thread Peter Penzov
I tested to resize component using mouse drag in JVM 8 b94. It's working
very smooth and easy when I move the mouse and hold the border of the
component.
I also tested the same code in JVM 8 b99. It's not very easy to resize the
component. I cannot hold the border of the component for long time. I
suppose this is caused by possible bug. Before I open a bug in Jira I want
to ask you is this a known problem?


Java 8 release plan

2013-07-25 Thread Peter Penzov
Hi,
   I started to develop Java 8 application using JVM 8. I saw that many new
bugs related to JavaFX are fixed and added to OpenJDK 8.
   Do you include these new fixes into the latest Java 8 beta releases
which are published every week? It's very important for me to know because
my application depends on JVM 8.

Regards


Drag and drop tabs in TabPane

2013-07-24 Thread Peter Penzov
Hi,
   I would like to ask you for which JavaFX version do you plan to
implement draggable tabs into TabPane? It will be very useful for users to
change the order of the tabs using mouse drag and drop.

Best wishes,
Peter


Re: Re: java.lang.NullPointerException at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:1129)

2013-07-23 Thread Peter Penzov
Well, the only solution that I can think of is to place the images and the
css file into one folder.


On Tue, Jul 23, 2013 at 3:51 PM, Pavel Safrata wrote:

> Forwarding to the list..
> Pavel
>
>
>  Original Message 
> Subject:Re: java.lang.NullPointerException at
> com.sun.javafx.sg.prism.**NGRegion.renderContent(**NGRegion.java:1129)
> Date:   Tue, 23 Jul 2013 15:48:20 +0300
> From:   Peter Penzov 
> To: Pavel Safrata 
>
>
>
> With the help of Pavel Safrata I found the problem. I have this css file
> which sets the style and the images of the toggle buttons:
>
> #pill-left {
> -fx-padding: 5;
> -fx-border-image-source: url("/com/dx57dc/images/left-**btn.png");
> -fx-border-image-slice: 4 4 4 4 fill;
> -fx-border-image-width: 4 4 4 4;
> -fx-border-image-insets: 0;
> -fx-border-image-repeat: stretch;
> -fx-background-color: null !important;
> }
> #pill-left:selected { -fx-border-image-source:
> url("/com/dx57dc/images/left-**btn-selected.png"); }
> #pill-left .label {
> -fx-text-fill: #d3d3d3;
> -fx-effect: dropshadow( one-pass-box , rgba(0,0,0,0.75) , 0, 0.0 , 0 ,
> -1 );
> }
>
> #pill-left:selected .label {
> /* -fx-text-fill: black; */
> -fx-text-fill: white;
> -fx-effect: dropshadow( one-pass-box , white , 0, 0.0 , 0 , 1 );
> }
> #pill-center {
> -fx-padding: 5;
> -fx-border-image-source: url("/com/dx57dc/images/**center-btn.png");
> -fx-border-image-slice: 4 4 4 4 fill;
> -fx-border-image-width: 4 4 4 4;
> -fx-border-image-insets: 0;
> -fx-border-image-repeat: stretch;
> -fx-background-color: null !important;
> }
> #pill-center:selected { -fx-border-image-source: url("/com/dx57dc/images/*
> *center-btn-selected.png"); }
> #pill-center .label {
> -fx-text-fill: #d3d3d3;
> -fx-effect: dropshadow( one-pass-box , rgba(0,0,0,0.75) , 0, 0.0 , 0 ,
> -1 );
> }
> #pill-center:selected .label {
> -fx-text-fill: black;
> -fx-effect: dropshadow( one-pass-box , white , 0, 0.0 , 0 , 1 );
> }
> #pill-right {
> -fx-padding: 5;
> -fx-border-image-source: url("/com/dx57dc/images/right-**btn.png");
> -fx-border-image-slice: 4 4 4 4 fill;
> -fx-border-image-width: 4 4 4 4;
> -fx-border-image-insets: 0;
> -fx-border-image-repeat: stretch;
> -fx-background-color: null !important;
> }
> #pill-right:selected { -fx-border-image-source:
> url("/com/dx57dc/images/right-**btn-selected.png"); }
> #pill-right .label {
> -fx-text-fill: #d3d3d3;
> -fx-effect: dropshadow( one-pass-box , rgba(0,0,0,0.75) , 0, 0.0 , 0 ,
> -1 );
> }
> #pill-right:selected .label {
> -fx-text-fill: black;
> -fx-effect: dropshadow( one-pass-box , white , 0, 0.0 , 0 , 1 );
> }
>
> The images are placed at the Java package: com.dx57dc.images
> What is the proper way to load images from css in Java 8?
>
>
> On Tue, Jul 23, 2013 at 1:51 PM, Pavel Safrata 
>  pavel.safrata@oracle.**com >> wrote:
>
>Hi Peter,
>it's enough to report on one place, let's discuss the issue in the
>bug. I'll put there a comment soon.
>Pavel
>
>
>On 23.7.2013 12:37, Peter Penzov wrote:
>
>Hi,
>I'm working on JavaFX example which uses Toggle button:
>
>private void initMainStage(final Stage mainStage)
>  {
>  // Set Main Window Label
>
>  // Set Icon of the main stage
>  Image img = new
>Image(getClass().getResource("**/com/dx57dc/images/internet-**
> icon.png").toExternalForm());
>
>  mainStage.getIcons().add(img);
>
>  // Main Stage
>  root = new BorderPane();
>  final VBox vbox = new VBox();
>  // Set Style
>  String pillButtonCss =
>DX57DC.class.getResource("/**com/dx57dc/css/PillButton.css"**
> ).toExternalForm();
>
>
>  // Create 3 toggle buttons and a toogle group for them
>  ToggleButton tb1 = new ToggleButton("Infrastructure")**;
>  tb1.setId("pill-left");
>  ToggleButton tb2 = new ToggleButton("Agents");
>  tb2.setId("pill-center");
>  ToggleButton tb3 = new ToggleButton("Live Performance");
>  tb3.setId("pill-right");
>
>  final ToggleGroup group = new ToggleGroup();
>  tb1.setToggleGroup(group);
>   

java.lang.NullPointerException at com.sun.javafx.sg.prism.NGRegion.renderContent(NGRegion.java:1129)

2013-07-23 Thread Peter Penzov
Hi,
  I'm working on JavaFX example which uses Toggle button:

private void initMainStage(final Stage mainStage)
{
// Set Main Window Label

// Set Icon of the main stage
Image img = new
Image(getClass().getResource("/com/dx57dc/images/internet-icon.png").toExternalForm());

mainStage.getIcons().add(img);

// Main Stage
root = new BorderPane();
final VBox vbox = new VBox();
// Set Style
String pillButtonCss =
DX57DC.class.getResource("/com/dx57dc/css/PillButton.css").toExternalForm();


// Create 3 toggle buttons and a toogle group for them
ToggleButton tb1 = new ToggleButton("Infrastructure");
tb1.setId("pill-left");
ToggleButton tb2 = new ToggleButton("Agents");
tb2.setId("pill-center");
ToggleButton tb3 = new ToggleButton("Live Performance");
tb3.setId("pill-right");

final ToggleGroup group = new ToggleGroup();
tb1.setToggleGroup(group);
tb2.setToggleGroup(group);
tb3.setToggleGroup(group);
// Select the first button by default
group.selectToggle(tb1);

// Some test data
final Rectangle rect2 = new Rectangle(300, 300);
rect2.setFill(Color.SILVER);
final Rectangle rect3 = new Rectangle(300, 300);
rect3.setFill(Color.DODGERBLUE);

tb1.setUserData(root);
tb2.setUserData(rect2);
tb3.setUserData(rect3);
final HBox hBox = new HBox();

// Listener which changes toggle buttons content
group.selectedToggleProperty().addListener(new
ChangeListener()
{
@Override
public void changed(ObservableValue ov,
Toggle toggle, Toggle new_toggle)
{
if (new_toggle == null)
{
}
else
{
vbox.getChildren().set(2, (Node)
group.getSelectedToggle().getUserData());
}
}
});

hBox.getChildren().addAll(tb1, tb2, tb3);
hBox.setPadding(new Insets(5, 5, 5, 5)); // Padding between the
main menu and the content
hBox.getStylesheets().add(pillButtonCss); // Add the css style

// Content of the main stage
leftHBox = getLeftHBox(mainStage, root);
rightHBox = getRightHBox(mainStage);
footerVBox = getFooter(mainStage);
centerPane = getCenterPane(mainStage);

// default resizer with drag insets(5,5,5,5);
//RegionResizerFX.register(leftHBox, rightHBox, footerVBox,
centerPane);

root.setRight(rightHBox);
root.setBottom(footerVBox);
root.setLeft(leftHBox);
root.setCenter(centerPane);

RegionResizerFX.register(centerPane);

// Vbox which holds main menu, toggle buttons and main content
vbox.getChildren().addAll(getMenu(mainStage, root), hBox, (Node)
group.getSelectedToggle().getUserData());

// Set main stage size and color
Scene scene = new Scene(vbox, 1200, 650, Color.WHITESMOKE); // Set
main Stage color

// Application Close Confirmation Dialog
dialog = new DialogPanels();
dialog.initClosemainAppDialog(mainStage);

// Application Hot Keys Utilization
hotkey = new HotKey();
hotkey.initApplicationHotKeys(mainStage, scene);

mainStage.setScene(scene);

Rectangle2D primaryScreenBounds =
Screen.getPrimary().getVisualBounds();

// Set Stage boundaries to visible bounds of the main screen
mainStage.setX(primaryScreenBounds.getMinX());
mainStage.setY(primaryScreenBounds.getMinY());
mainStage.setWidth(primaryScreenBounds.getWidth()); // Maximum
width of the display
mainStage.setHeight(primaryScreenBounds.getHeight()); // Maximum
height of the display
//mainStage.show();

}


I tried to run the code on JVM 8b99 but I get error which I described here:

https://javafx-jira.kenai.com/browse/RT-31859

Is this JVM bug or I have a bug into my code?


Run JavaFX application on IBM JVM

2013-07-19 Thread Peter Penzov
Hi,
   I would like to ask you is it possible to run JavaFX application on IBM
J9 JVM or other JVM? I suppose that I will need to copy some libraries from
Oracle JVM. Can you give me some more information?


Best wishes,
Peter


Font size in JavaFX 8

2013-07-18 Thread Peter Penzov
Hi,
   I tested to run code developed on JavaFX 2.2. On JavaFX 8 the size of
the Font cannot be set properly with setStyle("-fx-font-size: 12pt;"). I
suppose that this is caused by the JavaFX 8 code change. Is this going to
be fixed into the near future?

Best wishes


Books and documents about JavaFX 8

2013-07-17 Thread Peter Penzov
Hi,
  I'm looking for books or document about JavaFX 8. Can you recommend me
some material about advanced topics how to work with JavaFX 8 if there is
any. I use javadoc but I some cases it's not enough.

Best wishes,
Peter


JavaFX 8 Progress

2013-07-17 Thread Peter Penzov
Hi,
   I'm new to JavaFX I'm interested what is the current progress of
development of JavaFX 8. I want to use it for base framework for my
enterprise application but I have concerns is it stable to be used? Can you
give me some information do you plan to add something else before the
official release?

Best wishes,
Peter