Skip to content

Tag: visibility

Intellij cannot resolve method even though it is public (Java)

I have googled this a lot, invalidated the cache, and I can’t seem to find an answer. For background, this is a timetabling system using constraint solving. I have a custom class called Period with public methods getStart() and getEnd(). I also have an abstract class Constraint<V, D> and a subclass DemAvailConstratint<Demonstrator, Period>. It is in this subclass (and similarly

What happens between setVisible() and a component being painted?

I have a JScrollPane that contains a JPanel which then contains some custom components which are an extension of JPanel (they are all the same type). This JScrollPane is set invisible before the containing JFrame is shown. When the user selects a JCheckBox I use setVisible() to show the scroll pane. The first time the pane is shown however there