Skip to main content
deleted 4 characters in body
Source Link
desertnaut
  • 60.2k
  • 31
  • 151
  • 176

I'm rounding the borders of my TextArea, but there's a white background behind it, even though it shouldn't be there. How can I remove it?


 <AnchorPane style="-fx-background-color: yellow;" xmlns="http://javafx.com/javafx/17.0.2-ea" xmlns:fx="http://javafx.com/fxml/1" fx:controller="org.example.demo.HelloController">
    <AnchorPane style="-fx-background-color: black;">
        <TextArea fx:id="terminal" prefHeight="610.0" prefWidth="600.0" wrapText="true" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" />
    </AnchorPane>
</AnchorPane>
 

My css

#terminal .content, #terminal{
     -fx-background-color: red;
     -fx-background-radius: 100;
     -fx-text-fill: black;

}

But in the end this happens

I'm rounding the borders of my TextArea, but there's a white background behind it, even though it shouldn't be there. How can I remove it?


 <AnchorPane style="-fx-background-color: yellow;" xmlns="http://javafx.com/javafx/17.0.2-ea" xmlns:fx="http://javafx.com/fxml/1" fx:controller="org.example.demo.HelloController">
    <AnchorPane style="-fx-background-color: black;">
        <TextArea fx:id="terminal" prefHeight="610.0" prefWidth="600.0" wrapText="true" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" />
    </AnchorPane>
</AnchorPane>
 

My css

#terminal .content, #terminal{
     -fx-background-color: red;
     -fx-background-radius: 100;
     -fx-text-fill: black;

}

But in the end this happens

I'm rounding the borders of my TextArea, but there's a white background behind it, even though it shouldn't be there. How can I remove it?

<AnchorPane style="-fx-background-color: yellow;" xmlns="http://javafx.com/javafx/17.0.2-ea" xmlns:fx="http://javafx.com/fxml/1" fx:controller="org.example.demo.HelloController">
    <AnchorPane style="-fx-background-color: black;">
        <TextArea fx:id="terminal" prefHeight="610.0" prefWidth="600.0" wrapText="true" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" />
    </AnchorPane>
</AnchorPane>

My css

#terminal .content, #terminal{
     -fx-background-color: red;
     -fx-background-radius: 100;
     -fx-text-fill: black;

}

But in the end this happens

deleted 4 characters in body
Source Link

I'm rounding the borders of my TextArea, but there's a white background behind it, even though it shouldn't be there. How can I remove it?


<AnchorPane style="-fx-background-color: yellow;" xmlns="http://javafx.com/javafx/17.0.2-ea" xmlns:fx="http://javafx.com/fxml/1" fx:controller="org.example.demo.HelloController">
    <AnchorPane style="-fx-background-color: black;">
        <TextArea fx:id="terminal" prefHeight="610.0" prefWidth="600.0" wrapText="true" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" />
    </AnchorPane>
</AnchorPane>

My css

#terminal .content, #terminal{
     -fx-background-color: red;
     -fx-background-radius: 100;
     -fx-text-fill: black;

}

But in the end this happens: _happens

I'm rounding the borders of my TextArea, but there's a white background behind it, even though it shouldn't be there. How can I remove it?


<AnchorPane style="-fx-background-color: yellow;" xmlns="http://javafx.com/javafx/17.0.2-ea" xmlns:fx="http://javafx.com/fxml/1" fx:controller="org.example.demo.HelloController">
    <AnchorPane style="-fx-background-color: black;">
        <TextArea fx:id="terminal" prefHeight="610.0" prefWidth="600.0" wrapText="true" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" />
    </AnchorPane>
</AnchorPane>

My css

#terminal .content, #terminal{
     -fx-background-color: red;
     -fx-background-radius: 100;
     -fx-text-fill: black;

}

But in the end this happens: _

I'm rounding the borders of my TextArea, but there's a white background behind it, even though it shouldn't be there. How can I remove it?


<AnchorPane style="-fx-background-color: yellow;" xmlns="http://javafx.com/javafx/17.0.2-ea" xmlns:fx="http://javafx.com/fxml/1" fx:controller="org.example.demo.HelloController">
    <AnchorPane style="-fx-background-color: black;">
        <TextArea fx:id="terminal" prefHeight="610.0" prefWidth="600.0" wrapText="true" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" />
    </AnchorPane>
</AnchorPane>

My css

#terminal .content, #terminal{
     -fx-background-color: red;
     -fx-background-radius: 100;
     -fx-text-fill: black;

}

But in the end this happens

edited body
Source Link

I'm rounding the borders of my TextArea, but there's a white background behind it, even though it shouldn't be there. How can I remove it?


<AnchorPane style="-fx-background-color: yellow;" xmlns="http://javafx.com/javafx/17.0.2-ea" xmlns:fx="http://javafx.com/fxml/1" fx:controller="org.example.demo.HelloController">
    <AnchorPane style="-fx-background-color: black;">
        <TextArea fx:id="terminal" prefHeight="610.0" prefWidth="600.0" wrapText="true" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" />
    </AnchorPane>
</AnchorPane>

My css

#terminal .content, #terminal{
     -fx-background-color: red;
     -fx-background-radius: 100;
     -fx-text-fill: black;

}

But in the end this happens:  _

I'm rounding the borders of my TextArea, but there's a white background behind it, even though it shouldn't be there. How can I remove it?


<AnchorPane style="-fx-background-color: yellow;" xmlns="http://javafx.com/javafx/17.0.2-ea" xmlns:fx="http://javafx.com/fxml/1" fx:controller="org.example.demo.HelloController">
    <AnchorPane style="-fx-background-color: black;">
        <TextArea fx:id="terminal" prefHeight="610.0" prefWidth="600.0" wrapText="true" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" />
    </AnchorPane>
</AnchorPane>

My css

#terminal .content, #terminal{
     -fx-background-color: red;
     -fx-background-radius: 100;
     -fx-text-fill: black;

}

But in the end this happens:  

I'm rounding the borders of my TextArea, but there's a white background behind it, even though it shouldn't be there. How can I remove it?


<AnchorPane style="-fx-background-color: yellow;" xmlns="http://javafx.com/javafx/17.0.2-ea" xmlns:fx="http://javafx.com/fxml/1" fx:controller="org.example.demo.HelloController">
    <AnchorPane style="-fx-background-color: black;">
        <TextArea fx:id="terminal" prefHeight="610.0" prefWidth="600.0" wrapText="true" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" />
    </AnchorPane>
</AnchorPane>

My css

#terminal .content, #terminal{
     -fx-background-color: red;
     -fx-background-radius: 100;
     -fx-text-fill: black;

}

But in the end this happens: _

added 3 characters in body
Source Link
Loading
added 7 characters in body
Source Link
Loading
added 2 characters in body
Source Link
Loading
deleted 33 characters in body
Source Link
Loading
added 77 characters in body
Source Link
Loading
Source Link
Loading