Answer the question
In order to leave comments, you need to log in
How to customize font rendering in JavaFX?
In my application on JavaFX 8, fonts are rendered somehow ugly. This also applies to other JavaFX applications, such as SceneBuilder. At the same time, the screenshot shows that Intelij Idea, for example, looks good. Maybe it's a combination of OS / video card (Linux Mint 17.2 / AMD hd 7870). Is there a way to tweak font rendering somehow?
Answer the question
In order to leave comments, you need to log in
Good afternoon.
Rename the "id" associated with the image in the comments table to "image_id".
Also add "id PRIMARY KEY AUTO_INCREMENT" for the comment
ALTER TABLE `comments`
ADD CONSTRAINT `fk_comments_images` FOREIGN KEY (`image_id`) REFERENCES `comments` (`id`) ON DELETE CASCADE;
SET FOREIGN_KEY_CHECKS=0;
ALTER TABLE `comments`
ADD CONSTRAINT `fk_comments_images` FOREIGN KEY (`image_id`) REFERENCES `comments` (`id`) ON DELETE CASCADE;
SET FOREIGN_KEY_CHECKS=1;
In a good way, one entity - one table. In your case, you can look at the triggers: a line is deleted - we clean the database according to any parameters.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question