A
A
Akhat Moldabekov2014-08-21 14:26:59
JavaScript
Akhat Moldabekov, 2014-08-21 14:26:59

How to set visible layer in CardLayout? And how to change them?

My main goal is to write an organizer that will contain a CALCULATOR (written by me), "TO DO LIST" (not started yet). When the program starts, the main menu opens. There is a list: a calculator and "to do list". When I launch at least something from the list, the clicked one opens in a new window. And I need the window to be one, and the content to change to the selected element. How to solve this problem using CardLayout?ad1fbc6c4ddd404798f927a2e49827f2.PNG

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Aligatro, 2016-07-02
@Aligatro

Erm, the red lines can be skewed using transform (skew), the menu is a regular ul or nav, and the left side of the tabs are linked to the menu items. Well, that's according to your description. And so it is desirable to still look at the site itself from which the screenshot was taken.

R
Ruslan Shadura, 2016-07-02
@Houdy

All this can be done without using js, use tabs in css

A
Alexander, 2016-07-02
@lasmaster

Ruslan Shadura is right, they don't make up with JS. Layout using html and css. JS is used in the most extreme cases, when all other options are useless.

H
hHup, 2018-04-21
@TopMetaFizick

After calling the second window, set the first one to setVisible(false);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question