My JavaFx Application is sometimes showing white blanks on controls after hovering a mouse on it, including tableview rows - controls

As show in this image. This effect only occurs when hovering on clicking on the control.

Related

How Do I Stop NSTableView Drag Images Shrinking When Leaving The Table?

I have an app with multiple NSOutlineViews, in one window, with drag and drop enabled and working. I can successfully drag items from one outline to another.
When dragging within a single outline, I automatically get a nice image of the rows I am dragging next to the mouse, the same size as the source. However, when the mouse leaves the bounds of the source outliner, the image shrinks right down so that any text is illegible.
I would like the dragged image to remain full size when the mouse is above a window of my app.
I can't see anything that relates to this in NSDraggingInfo, which seems to be the only thing I have available to monitor the images in updateDraggingItemsForDrag.
I notice that if I drag multiple rows, the image of each row shrinks, but the layout of the rows stays the same, so it must be scaling at the level of each individual row image, not as one.
How do I control this please?

Xcode UI Label not appearing after running the project

This is the UI appears in the simulator. It appears only when pressed.
This is the UI in Storyboard.
In fact, there were clickable layers on top of those labels, where User Interaction is enabled.
This then triggers the background color of the labels to turn into white.
It is not the labels are not rendered, it is just that text color, the background color of the label and the color of the view are all white.
NOTE: Apology for the question which lacks details.

Text in disabled round textured NSButton is not greyed out

I have an NSButton created in Interface Builder with the style "Round Textured". When the button is disabled, the text colour does not go grey as you would expect. Oddly enough when the button contains an image instead of text, the image does go grey, as seen in the below screenshot (top buttons are enabled, bottom buttons are disabled).
How can I get the text to go grey when the button is disabled?
Update: So it gets weirder: the view containing the button is shown in a popover and every second time the view is shown the button is greyed out.
It seems, at least in Yosemite, as long as you set button.wantsLayer = YES on the button view, that it then works. Go figure.

How to make a scrolling bar of buttons (buttons bar) with Cocoa?

I would like to have buttons inside a scroll view (or another solution to creating a scrollable button bar).
I have buttons placed side by side in a row along the top of a view. As a user resizes the window to be less wide, fewer buttons can be seen.
When all the buttons cannot be viewed, I would like the user to still be able to access all the buttons by scrolling horizontally through them.
To visualise this, imagine in Safari if you open too many tabs to fit in the window - I would like the user to be able to scroll to the right and reveal the tabs that weren't on the screen.
You need to deselect the springs (for the custom view of the scroller) in the autosizing setter so that the view doesn't shrink along with the scroll view when you resize.

How can I set a tooltip to display while dragging an NSSlider?

I've got an NSSlider. I've set it to update continuously. In my update code I have:
[quality setToolTip:qualityTooltips[pos]];
This updates the tooltip, but the tooltip is not displayed while I'm dragging the slider. In fact it vanishes as soon as you click the slider. I'd like it to always be visible while I'm dragging the slider, is this possible?

Resources