JavaFX and Scene Builder Course - IntelliJ #25: Toggle Button

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ม.ค. 2025

ความคิดเห็น • 9

  • @nguyenkhoa4637
    @nguyenkhoa4637 2 ปีที่แล้ว

    How do I go back to the original state when I click the button again? For example, when I click the "toggle button1" again, it will display "Text" again?

    • @Randomcode_0
      @Randomcode_0  2 ปีที่แล้ว

      Each button is setting the text to something specific. You would need another button which untoggle everything and sets the text to some base text.

  • @BarbieEroralwaysapalapalah
    @BarbieEroralwaysapalapalah 3 ปีที่แล้ว +1

    thankyou sir your tutorial is verry help full

  • @libanbande4640
    @libanbande4640 2 ปีที่แล้ว

    Hi. Could you make a video tutorial to create Skins for controls?

    • @Randomcode_0
      @Randomcode_0  2 ปีที่แล้ว

      Skins for controls is a very interesting concept, and I will make a video about this in the future.

    • @Randomcode_0
      @Randomcode_0  2 ปีที่แล้ว

      Just had a closer look at skins in javafx and more or less the same can be accomplished using css styling which is way simpler. Let me know what exactly you want to achieve, otherwise I would recommend using css if you just want to change how your controls look.

    • @libanbande4640
      @libanbande4640 2 ปีที่แล้ว

      For example I would like to create a ScrollPane like IntelliJ.
      I would like to make that my ScrollBar's thumb doesn't shrink to much to keep it visible to my users.
      I have other ideas but CSS is not always the answer.
      I would like to see and learn how to create my own skins because when searching over the Internet no one has explained this topic.

    • @libanbande4640
      @libanbande4640 2 ปีที่แล้ว

      Another thing I want to accomplish that I forgot to mention is to make the editable area of an HTMLEditor a color other than white. Do you understand me? CSS doesn't get to what I want to accomplish, creating Skins is my next step in learning JavaFX. As I mentioned before, I haven't seen anything that I can use to learn how to create Skins.