简体   繁体   中英

using card layout to change pane with only one button

I have a gui that uses card layout as layout manager.this gui has two button prev and next to change view. I would know if it is possible using CardLayout change card only having one button.

(Adapted from my comment)

It's definitely possible. If you want the same functionality as one of the existing buttons, just remove the other one and you're set!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM