Question: So, I try to add components to `JScrollPane`, but they appear only when I hover my mouse above them.
This is my code:

```
package com.alex.apps;

import java.awt.CardLayout;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.JTextField;
import javax.swing.ScrollPaneLayout;

public class main {

    public static void main(String[] args) {
        // TODO Auto-generated method stub
        //GetPageInfo gpi=new GetPageInfo();
        JFrame frame=new JFrame("Bookmark");
        JScrollPane pane = new JScrollPane(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
        frame.setContentPane(pane);

        JTextField text=new JTextField();
        text.setBounds(0, 10, 400, 40);
        pane.add(text);

        JButton add=new JButton("+");
        add.setBounds(403, 10, 40, 40);
        pane.add(add);

        frame.setSize(480, 860);
        frame.setResizable(false);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setVisible(true);
    }

}

```

Do you have any idea why it doesn't work?

Answer: 
```css
.banner {
  position: relative;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-image: url("https://i.imgur.com/pXsKCUt.jpg");
  min-height: 300px;
  padding: 50px 0px;
}

.banner::before {
  content: "";
  width: 100%;
  height: 100%;
  opacity: 0.5;
  background-color: black;
  position: absolute;
  top: 0;
}
.banner p {
  color: #fff;
  position: relative;
}
```

```html
<header>
  <div class="banner">
    <p>
      Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
    </p>
  </div>
</header>
```
Here is a way of doing it by adding the text to the css content instead of having it be a paragraph element. All I did was cut the text and place it into the css. (and change text to white for readability)

This isn't the \*best\* way to do it, but it is a way to do it.

```css
.banner {
  position: relative;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-image: url('https://i.imgur.com/pXsKCUt.jpg');
  min-height: 300px;
  padding: 50px 0px;
}
.banner:before {
    content:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.";
    background-color: black;
    color:white;
    opacity: 0.5;
}
```

```html
<header>
  <div class="banner">
    <p></p>
  </div>
</header>
```