Skip to content
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

Fixing two resource bugs within the sample application. #1502

Merged

Conversation

credmond
Copy link
Contributor

@credmond credmond commented Jun 3, 2023

Fixing two resource bugs within the sample application.

  1. HelloHyperlinkLabel was looking for a style.css file that does not exist anywhere (and is probably not necessary).

  2. HelloDialogs was attempting to refer to a parent directory; but this doesn't work as the developer expected in the context of a running JAR. E.g., getResource("."), getResource(".."), getResource("../.."), etc., all resolve to null. This is not the case when running in a non-JAR context.

Easy to reproduce these using "gradle run" and trying to load the hyperlink demo, or the dialog pop with custom image demo; neither work currently.

Fixes #1527

…linkLabel was looking for a style.css file that does not exist anywhere (and is probably not necessary). 2. HelloDialogs was attempting to refer to a parent directory; but this doesn't work as the developer expected in the context of a running JAR. E.g., getResource("."), getResource(".."), getResource("../.."), etc., all resolve to null. This is not the case when running in a non-JAR context.
@github-actions
Copy link

github-actions bot commented Jun 3, 2023

Hi credmond,

Welcome to ControlsFX and thank you for taking time to contribute to this project.

We do not recognise you as a contributor. Can you please sign ControlsFX Individual Contributor Agreement: https://cla.controlsfx.org ?

@github-actions github-actions bot added the CLA label Jun 3, 2023
@credmond credmond changed the title Fixing two resource bugs within the sample application. 1. HelloHyperlinkLabel was looking for a style.css file that does not exist anywhere (and is probably not necessary). 2. HelloDialogs was attempting to refer to a parent directory; but this doesn't work as the developer expected in the context of a running JAR. E.g., getResource("."), getResource(".."), getResource("../.."), etc., all resolve to null. This is not the case when running in a non-JAR context. Fixing two resource bugs within the sample application. Jun 3, 2023
@credmond
Copy link
Contributor Author

credmond commented Jul 1, 2023

Hi credmond,

Welcome to ControlsFX and thank you for taking time to contribute to this project.

We do not recognise you as a contributor. Can you please sign ControlsFX Individual Contributor Agreement: https://cla.controlsfx.org ?

Done.

Copy link
Member

@abhinayagarwal abhinayagarwal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For future reference, please log an issue and then create a PR fixing the issue.

@abhinayagarwal abhinayagarwal merged commit c483bd9 into controlsfx:master Nov 6, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Resource bugs within samples
3 participants