-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues regarding icalendarAgenda inside Window #8
Comments
I wrote that control. I'll take a look to see what I can do to replicate and then fix the problem. |
The popups are separate stages. Is that a problem? Instead, is the problem that the popup is located improperly on the screen? |
It is separate stage can cause the problem, what i guess. can u please do
see my screen shots i posted with the problem. If you think it is the popup
location improper then help me out how to solve it.
…On Wed, May 3, 2017 at 9:18 PM, David Bal ***@***.***> wrote:
The popups are separate stages. Is that a problem? Instead, is the problem
that the popup is located improperly on the screen?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#8 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABCRko_L_M0_OXc_xPwDWynvShlOLJvCks5r2KjDgaJpZM4NMOCW>
.
|
I did look at your screen shots. I'm unclear what they represent. I see the control at the bottom with agenda and the black box above with the edit popup. Why is there a black box? Is that two screen shots? Are you using two monitors? I know there is a problem with locating the popup property with multiple monitors. If that is the source of the problem, then I have a good idea how to fix the problem. I just haven't gotten around to fixing it yet. Your need will be the motivation to fix it. |
Yes they are two screen shots. when i create agenda it moves to next with
black screen as base on Mac. if it is positioning matter guide me how can I
solve it. may it works.
I am adding ICalendarAgenda inside Window
Regards
…On Thu, May 4, 2017 at 2:17 AM, David Bal ***@***.***> wrote:
I did look at your screen shots. I'm unclear what they represent. I see
the control at the bottom with agenda and the black box above with the edit
popup. Why is there a black box? Is that two screen shots? Are you using
two monitors?
I know there is a problem with locating the popup property with multiple
monitors. If that is the source of the problem, then I have a good idea how
to fix the problem. I just haven't gotten around to fixing it yet. Your
need will be the motivation to fix it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#8 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABCRknzPRWWXvT09EbyeWKFkL2seVHtEks5r2O78gaJpZM4NMOCW>
.
|
Try it now. Is the location of the popup acceptable? |
Can I use with maven , or I need to compile the source from github
repository
…On Wed, May 10, 2017 at 10:32 PM, David Bal ***@***.***> wrote:
Try it now. Is the location of the popup acceptable?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#8 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABCRkhZszbL7KSXV9Y3VmX95mris5REzks5r4fS5gaJpZM4NMOCW>
.
|
We have nightly snapshot builds in sonatype, so you need to use that repository. |
Button patientSatisfactionDashboard = new Button(
"PatientSatisfactionDashboard");
patientSatisfactionDashboard.setOnAction(e->{
Window window = new Window("PatientSatisfactionDashboard");
ICalendarAgenda agenda = new ICalendarAgenda(new VCalendar());
window.getContentPane().getChildren().add(agenda);
window.getLeftIcons().add(new CloseIcon(window));
window.getRightIcons().add(new MinimizeIcon(window));
window.setPrefSize(getPrefWidth(), getPrefHeight());
getChildren().add(window);
}
Is this the right way to use? how can I set root stage with window and/or
ICalendarAgenda?
…On Thu, May 11, 2017 at 3:41 PM, Tom Eugelink ***@***.***> wrote:
We have nightly snapshot builds in sonatype, so you need to use that
repository.
https://oss.sonatype.org/content/repositories/snapshots/org/jfxtras/
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#8 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABCRktGgIMA4Y0v-WYUjqOW3O3wIVMifks5r4uXzgaJpZM4NMOCW>
.
|
my problem still persists, I find out it is the popupStage.. coz i cannot
set the the owner stage. check the line 532 onward. Is there any way I can
pass my owner stage?
On Thu, May 11, 2017 at 3:53 PM, Anees ur-Rehman <[email protected]>
wrote:
… Button patientSatisfactionDashboard = new Button("
PatientSatisfactionDashboard");
patientSatisfactionDashboard.setOnAction(e->{
Window window = new Window("PatientSatisfactionDashboard");
ICalendarAgenda agenda = new ICalendarAgenda(new VCalendar());
window.getContentPane().getChildren().add(agenda);
window.getLeftIcons().add(new CloseIcon(window));
window.getRightIcons().add(new MinimizeIcon(window));
window.setPrefSize(getPrefWidth(), getPrefHeight());
getChildren().add(window);
}
Is this the right way to use? how can I set root stage with window and/or
ICalendarAgenda?
On Thu, May 11, 2017 at 3:41 PM, Tom Eugelink ***@***.***>
wrote:
> We have nightly snapshot builds in sonatype, so you need to use that
> repository.
> https://oss.sonatype.org/content/repositories/snapshots/org/jfxtras/
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#8 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/ABCRktGgIMA4Y0v-WYUjqOW3O3wIVMifks5r4uXzgaJpZM4NMOCW>
> .
>
|
Why do you want to pass the owner stage? I have several trials that show working demos of icalendaragenda at the link below: If you want to get a handle on the new appointment dialog then I suggest you look for it by its ID - which is "newAppointmentDialog" All of its buttons have IDs too such as newAppointmentCreateButton, newAppointmentEditButton and newAppointmentCancelButton I am not sure I understand your problem. |
No problem i will try to use ID. MY problem when I use Window and add
ICalanderAgenda in it. when I create agenda the popup stage moves away from
main stage and background become black. Can I overload your methods after
extending class? I am not sure the lf opensource licesnce allows me to do
so?
…On Thu, May 11, 2017 at 7:45 PM, David Bal ***@***.***> wrote:
Why do you want to pass the owner stage?
I have several trials that show working demos of icalendaragenda at the
link below:
https://github.com/JFXtras/jfxtras/tree/8.0/jfxtras-
icalendaragenda/src/test/java/jfxtras/scene/control/agenda/icalendar/trial
If you want to get a handle on the new appointment dialog then I suggest
you look for it by its ID - which is "newAppointmentDialog" All of its
buttons have IDs too such as newAppointmentCreateButton,
newAppointmentEditButton and newAppointmentCancelButton
I am not sure I understand your problem.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#8 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABCRknUSb1JcARkD85TnGcMfc3IwsgdWks5r4x8RgaJpZM4NMOCW>
.
|
I want to see this black background. Is the code your included before self-contained and functional?
From: Anees-ur-Rehman <[email protected]>
To: JFXtras/jfxtras.github.com <[email protected]>
Cc: David Bal <[email protected]>; Comment <[email protected]>
Sent: Thursday, May 11, 2017 7:55 AM
Subject: Re: [JFXtras/jfxtras.github.com] Issues regarding icalendarAgenda inside Window (#8)
No problem i will try to use ID. MY problem when I use Window and add
ICalanderAgenda in it. when I create agenda the popup stage moves away from
main stage and background become black. Can I overload your methods after
extending class? I am not sure the lf opensource licesnce allows me to do
so?
On Thu, May 11, 2017 at 7:45 PM, David Bal ***@***.***> wrote:
Why do you want to pass the owner stage?
I have several trials that show working demos of icalendaragenda at the
link below:
https://github.com/JFXtras/jfxtras/tree/8.0/jfxtras-
icalendaragenda/src/test/java/jfxtras/scene/control/agenda/icalendar/trial
If you want to get a handle on the new appointment dialog then I suggest
you look for it by its ID - which is "newAppointmentDialog" All of its
buttons have IDs too such as newAppointmentCreateButton,
newAppointmentEditButton and newAppointmentCancelButton
I am not sure I understand your problem.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#8 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABCRknUSb1JcARkD85TnGcMfc3IwsgdWks5r4x8RgaJpZM4NMOCW>
.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Plz check in images. when I load the with window it loads the WIndow with
ICalanderAgenda. when i create the agenda it move away from the main stage
and shows a black screen background with popup stage
…On Thu, May 11, 2017 at 7:58 PM, David Bal ***@***.***> wrote:
I want to see this black background. Is the code your included before
self-contained and functional?
From: Anees-ur-Rehman ***@***.***>
To: JFXtras/jfxtras.github.com ***@***.***>
Cc: David Bal ***@***.***>; Comment ***@***.***>
Sent: Thursday, May 11, 2017 7:55 AM
Subject: Re: [JFXtras/jfxtras.github.com] Issues regarding
icalendarAgenda inside Window (#8)
No problem i will try to use ID. MY problem when I use Window and add
ICalanderAgenda in it. when I create agenda the popup stage moves away from
main stage and background become black. Can I overload your methods after
extending class? I am not sure the lf opensource licesnce allows me to do
so?
On Thu, May 11, 2017 at 7:45 PM, David Bal ***@***.***>
wrote:
> Why do you want to pass the owner stage?
>
> I have several trials that show working demos of icalendaragenda at the
> link below:
> https://github.com/JFXtras/jfxtras/tree/8.0/jfxtras-
> icalendaragenda/src/test/java/jfxtras/scene/control/agenda/
icalendar/trial
>
> If you want to get a handle on the new appointment dialog then I suggest
> you look for it by its ID - which is "newAppointmentDialog" All of its
> buttons have IDs too such as newAppointmentCreateButton,
> newAppointmentEditButton and newAppointmentCancelButton
>
> I am not sure I understand your problem.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#8#
issuecomment-300812030>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/
ABCRknUSb1JcARkD85TnGcMfc3IwsgdWks5r4x8RgaJpZM4NMOCW>
> .
>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#8 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABCRkhI2j6QFFjMMnQx_aFps9jNDNsteks5r4yIygaJpZM4NMOCW>
.
|
I understand what you are saying, but I think I need to examine the problem with some working code to diagnosis why it is occurring. |
public class DashboardContainer extends StackPane implements IBindable {
private static final double TILE_SIZE = 150;
private static final Random RND = new Random();
private StackPane mainPane;
private BorderPane borderPane;
private GridPane gridPane;
private TilePane taskPane, metroUiPane;
private ObservableList<Node> dashboardNodes;
private StackPane centerPane;
private Stage primaryStage;
public DashboardContainer(Stage primaryStage) {
this.primaryStage = primaryStage;
Font.loadFont(DashboardContainer.class.getResource("/fonts/TRON.ttf").toExternalForm(),
10);
Font.loadFont(DashboardContainer.class.getResource("/fonts/CALLIGRAPHY.ttf").toExternalForm(),
10);
Font.loadFont(DashboardContainer.class.getResource("/fonts/VULTUREMOTOR.ttf").toExternalForm(),
10);
borderPane = new BorderPane();
borderPane.setPadding(new Insets(20.0, 20.0, 20.0, 20.0));
borderPane.getStyleClass().add("dashboard");
getChildren().add(borderPane);
init();
generateTiles();
}
/**
*
*/
private void init(){
mainPane = new StackPane();
TilePane titlePane = new TilePane();
titlePane.setCenterShape(true);
titlePane.setAlignment(Pos.CENTER);
titlePane.getStyleClass().add("title");
Text welcomeText = new Text("Welcome to Healthcare System");
welcomeText.setId("welcome-text");
titlePane.getChildren().add(welcomeText);
borderPane.setTop(titlePane);
gridPane = new GridPane();
mainPane.getChildren().add(gridPane);
gridPane.getStyleClass().add("dashboard-grid");
ColumnConstraints columnLeft = new ColumnConstraints();
columnLeft.setPercentWidth(5.0);
ColumnConstraints columnCenter = new ColumnConstraints();
columnCenter.setPercentWidth(75.0);
ColumnConstraints columnRight = new ColumnConstraints();
columnRight.setPercentWidth(20.0);
gridPane.getColumnConstraints().addAll(columnLeft, columnCenter, columnRight
);
RowConstraints topRow = new RowConstraints();
topRow.setPercentHeight(5);
RowConstraints centerRow = new RowConstraints();
centerRow.setPercentHeight(90);
RowConstraints bottomRow = new RowConstraints();
bottomRow.setPercentHeight(5);
gridPane.getRowConstraints().addAll(topRow, centerRow, bottomRow);
initDashboardPane();
initTaskPane();
borderPane.setCenter(mainPane);
}
/**
*
*/
private void initTaskPane(){
taskPane = new TilePane();
taskPane.setOrientation(Orientation.VERTICAL);
taskPane.getStyleClass().add("dashboard-contents");
GridPane.setConstraints(taskPane, 2, 0);
GridPane.setRowSpan(taskPane, GridPane.REMAINING);
gridPane.getChildren().add(taskPane);
}
/**
*
*/
private void initDashboardPane(){
centerPane = new StackPane();
Group mainGroup = new Group();
centerPane.getChildren().add(mainGroup);
GridPane.setConstraints(centerPane, 1, 1);
gridPane.getChildren().add(centerPane);
centerPane.setAlignment(Pos.CENTER);
metroUiPane = new TilePane(Orientation.HORIZONTAL);
metroUiPane.setHgap(2.0);
metroUiPane.setVgap(2.0);
metroUiPane.getStyleClass().add("dashboard-contents");
dashboardNodes = metroUiPane.getChildren();
centerPane.getChildren().add(metroUiPane);
}
private void generateTiles(){
Button patientSatisfactionDashboard = new Button(
"PatientSatisfactionDashboard");
patientSatisfactionDashboard.setOnAction(e->{
Window window = new Window("PatientSatisfactionDashboard");
ICalendarAgenda agenda = new ICalendarAgenda(new VCalendar());
window.getContentPane().getChildren().add(agenda);
window.getLeftIcons().add(new CloseIcon(window));
window.getRightIcons().add(new MinimizeIcon(window));
window.setPrefSize(getPrefWidth(), getPrefHeight());
getChildren().add(window);
//// mainPane.toFront();
// Stage dialog = new Stage();
// dialog.initOwner(primaryStage);
//// Popup pp = new Popup();
//// pp.setX(300);
//// pp.setY(200);
//// pp.getContent().addAll(new Circle(25, 25, 50,
Color.AQUAMARINE));
//// pp.show(primaryStage);
// dialog.initOwner(primaryStage);
// dialog.initModality(Modality.APPLICATION_MODAL);
// VBox dialogVbox = new VBox(20);
// dialogVbox.getChildren().add(new Text("This is a Dialog"));
// Scene dialogScene = new Scene(dialogVbox, 300, 200);
// dialog.setScene(dialogScene);
// dialog.show();
});
Button patientMonitoringDashboard = new Button("PatientMonitoringDashboard"
);
Button bedManagementDashboard = new Button("BedManagementDashboard");
Button erStatusDashbaord = new Button("ERStatusDashboard");
Button queueManagementDashboard = new Button("QueueManagementDashboard");
// ICalendarAgenda agenda = new ICalendarAgenda(new VCalendar());
//
// metroUiPane.getChildren().add(agenda);
metroUiPane.getChildren().addAll(patientMonitoringDashboard,
patientSatisfactionDashboard, erStatusDashbaord, bedManagementDashboard,
queueManagementDashboard);
}
}
…On Thu, May 11, 2017 at 8:05 PM, David Bal ***@***.***> wrote:
I understand what you are saying, but I think I need to examine the
problem with some working code to diagnosis why it is occurring.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#8 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABCRkkorHD9T3Ho2PVkPqNmAnkuZAlehks5r4yOfgaJpZM4NMOCW>
.
|
I'm going to have to extract parts of that code into a simple demo. I'll try to find time later today. Does the same black background problem occur if the add a simple control instead of agenda - such as a VBox with a button that opens an alert dialog? The problem may be independent of agenda but a consequence in your implementation. |
Try not using the Window - just add the agenda to the children list directly. The Window constructor isn't suppose to be visible anyway. I don't know how you are using it. The below code works without any black background. `package jfxtras.scene.control.agenda.icalendar.trial; import javafx.application.Application; public class TestProblem extends Application
}` |
I will try to use without window. Thanks for your help with code.
…On May 11, 2017 8:54 PM, "David Bal" ***@***.***> wrote:
Try not using the Window - just add the agenda to the children list
directly. The Window constructor isn't suppose to be visible anyway. I
don't know how you are using it. The below code works without any black
background.
`package jfxtras.scene.control.agenda.icalendar.trial;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.StackPane;
import javafx.stage.Stage;
import jfxtras.icalendarfx.VCalendar;
import jfxtras.scene.control.agenda.icalendar.ICalendarAgenda;
public class TestProblem extends Application
{
public static void main(String[] args) {
launch(args);
}
@OverRide
public void start(Stage primaryStage) {
TestContainer root = new TestContainer(primaryStage);
Scene scene = new Scene(root, 1366, 768);
primaryStage.setScene(scene);
primaryStage.show();
}
class TestContainer extends StackPane
{
public TestContainer(Stage primaryStage)
{
Button myButton = new Button("press");
getChildren().add(myButton);
myButton.setOnAction(e ->
{
VCalendar vCalendar = new VCalendar();
ICalendarAgenda agenda = new ICalendarAgenda(vCalendar); // Agenda - displays the VCalendar information
getChildren().add(agenda);
});
}
}
}`
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#8 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABCRkh0Rd7X4DEh9CklFQHfZHbeFd29uks5r4y8YgaJpZM4NMOCW>
.
|
I am posting my code and the screen shots to explain my problem
public class DashboardContainer extends StackPane{
private StackPane mainPane;
private BorderPane borderPane;
private GridPane gridPane;
private TilePane taskPane, metroUiPane;
private ObservableList dashboardNodes;
private StackPane centerPane;
private Stage primaryStage;
/**
*
*/
private void init(){
mainPane = new StackPane();
}
It seems the agenda creation popup is apearing in seprate stage. please do help
The text was updated successfully, but these errors were encountered: