> Markdown version of [Adding Views](https://vaadin.com/docs/next/tools/swing/views). Section index: [llms.txt](https://vaadin.com/docs/next/tools/llms.txt)

# Adding Vaadin Views Inside a Swing Application

## <a id="enabling-flow-views"></a>Enabling Flow Views

In your Vaadin application, add the `@Bridge` annotation to any views you want to render inside your Swing application. You can use the `isSwingRendered()` method to check if a view is rendered in a normal browser or inside a Swing application, For example:

```java
...
import com.vaadin.swingkit.server.Bridge;

@Route("example-view")
@Bridge
public class ExampleView extends HorizontalLayout {
    public ExampleView() {
      if (SwingVaadinServer.isSwingRendered()) {
        // Code which is run only if this view is rendered inside a Swing application
      }
    }
}
```

## <a id="rendering-flow-views-in-swing"></a>Rendering Flow Views in Swing

Once you have prepared your Flow views, they can be rendered as a component in your Swing application. The `JVaadinPanel` class extends the `Panel` component, and can be added to standard Swing layouts. You can check when the view has been completely rendered using the `isReady()` method. For example:

```java
...
import com.vaadin.swingkit.client.SwingVaadinClient;
import com.vaadin.swingkit.client.JVaadinPanel;

...
    JVaadinPanel vaadinPanel = SwingVaadinClient.getBuilder().build("example-view");
    vaadinPanel.isReady();
...
```
