SFXPanel

scalafx.embed.swing.SFXPanel
See theSFXPanel companion object
class SFXPanel(val delegate: JFXPanel) extends SFXDelegate[JFXPanel]

Wraps JavaFX JFXPanel. To use methods and properties from JComponent, use its delegate.

Value parameters

delegate

JavaFX JFXPanel. Its default value is a new JFXPanel

Attributes

Constructor

Creates a new SFXPanel from its JavaFX counterpart.

Since

8.0

Companion
object
Graph
Supertypes
trait SFXDelegate[JFXPanel]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def addNotify(): Unit

Notifies this component that it now has a parent component.

Notifies this component that it now has a parent component.

Attributes

def inputMethodRequests: InputMethodRequests

Attributes

SFXPanel's opacity is controlled by the JavaFX content which is displayed in this component, so this method overrides JComponent.isOpaque() to always return a false value.

SFXPanel's opacity is controlled by the JavaFX content which is displayed in this component, so this method overrides JComponent.isOpaque() to always return a false value.

Attributes

def opaque_=(b: Boolean): Unit

SFXPanel's opacity is controlled by the JavaFX content which is displayed in this component, so this method overrides JComponent.setOpaque(boolean) to only accept a false value.

SFXPanel's opacity is controlled by the JavaFX content which is displayed in this component, so this method overrides JComponent.setOpaque(boolean) to only accept a false value.

Attributes

def preferredSize: Dimension

Returns the preferred size of this SFXPanel, either previously set with JComponent.setPreferredSize(Dimension) or based on the content of the JavaFX scene attached to this SFXPanel.

Returns the preferred size of this SFXPanel, either previously set with JComponent.setPreferredSize(Dimension) or based on the content of the JavaFX scene attached to this SFXPanel.

Attributes

Notifies this component that it no longer has a parent component.

Notifies this component that it no longer has a parent component.

Attributes

def scene: Scene

the ScalaFX scene attached to this JFXPanel.

the ScalaFX scene attached to this JFXPanel.

Attributes

def scene_=(s: Scene): Unit

Inherited methods

override def equals(ref: Any): Boolean

Verifies if a object is equals to this delegate.

Verifies if a object is equals to this delegate.

Value parameters

ref

Object to be compared.

Attributes

Returns

if the other object is equals to this delegate or not.

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate
override def hashCode: Int

Attributes

Returns

The delegate hashcode

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate
override def toString: String

Attributes

Returns

Returns the original delegate's toString() adding a [SFX] prefix.

Definition Classes
SFXDelegate -> Any
Inherited from:
SFXDelegate

Concrete fields

override val delegate: JFXPanel

JavaFX object to be wrapped.

JavaFX object to be wrapped.

Attributes