Giter Site home page Giter Site logo

Comments (4)

ianp avatar ianp commented on August 17, 2024

OK, after a bit of digging it seems that setting the UI default OptionPane.isYesLast to true does enough for my current use case. I'll leave it up to you to close this issue or not, as button order on dialogs is really a fairly complicated subject and a simple yes/no option doesn't cut it.

To give you a taste for the complexity, here is the Windows button order string from MIG Layout, where each character has a different meaning: L_E+U+YNBXOCAH_R crazy huh!

My suggestion would be to look at the MIG Layout implementation, but rather than using layout constraints you could look in either the action values or the component client properties for tags and then order the buttons based on that.

Or just mostly ignore the issue like most other L&Fs ;-)

from weblaf.

mgarin avatar mgarin commented on August 17, 2024

I will think of it, but not sure yet.
I might add system-dependant buttons order into WebLaF with some of next updates.

Anyway, i will notify you about the changes made if there will be any.

from weblaf.

ianp avatar ianp commented on August 17, 2024

OK, cool. I may have some time to have a go at implementing it myself later this week.

from weblaf.

mgarin avatar mgarin commented on August 17, 2024

I have added proper "OptionPane.isYesLast" value depending on user's platform. This might be enough to solve the issue or might be not. That is your call :)

from weblaf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.