void (boolean compatible) { myInstallButton = createInstallButton(); if (!compatible) { setupNotCompatibleMarkerButton(); } else { setupNotAllowedMarkerButton(); } myLayout.addButtonComponent(myInstallButton); }