resize event of borderlayout region.

asked 2020-06-15 16:02:02 +0800

AndreiArdei gravatar image AndreiArdei


I am creating an ERP in Java using Zk. I am creating the whole website from java instead of using .zul files. What I need is to listen to an onResize event for when the BorderLayout is dragged by the user. I need to save the new width value in the database.

I have tried with setting the setSlide(true) and listening to the ON_SLIDE event but that doesn't seem to work. And neither did other events. My BorderLayout consists of a fixed north, a west that has the bar, and a center. I only need to listen to the west.

DesktopLayout.getWest().addEventListener(Events.ON_SLIDE, this)

onEvent(Event event) {
    System.out.println("The slider has been moved");


delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted

answered 2020-06-16 16:41:58 +0800

MDuchemin gravatar image MDuchemin
1708 1 5
ZK Team

Hi There,

Posted an answer here on stack overflow

Hope it resolve the question ;)

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

1 follower



Asked: 2020-06-15 16:02:02 +0800

Seen: 7 times

Last updated: Jun 16

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More