rhwood / jsplitbutton Goto Github PK
View Code? Open in Web Editor NEWA split button control for Java Swing.
Home Page: http://rhwood.github.io/jsplitbutton/
License: Apache License 2.0
A split button control for Java Swing.
Home Page: http://rhwood.github.io/jsplitbutton/
License: Apache License 2.0
When preparing to publish version 2.0.0, documentation needs to cover migrating from 1.3.1 to 2.0.0.
The following documentation needs to be updated
Hi,
I just wanted to report this before I forgot. I wanted to create a drop-down button in a toolbar.
My current toolbar buttons shows icons primarily with the label listed below -- like this:
The last item "Custom" is trying to use this library to show a drop-down menu. But, as you can see the button size isn't large enough to cover the image and dropdown arrow.
Is this something I'm doing wrong or is this button just not meant to work this way? If it's an easy fix I can look at making it but wanted to get your $.02 first
Image icon = loadImage("icon_script.png");
JSplitButton button = new JSplitButton(new ImageIcon(icon));
button.setText("Custom");
button.setFont(new Font(Font.SERIF, Font.PLAIN, 10));
button.setToolTipText("View custom scripts");
button.setVerticalTextPosition(SwingConstants.BOTTOM);
button.setHorizontalTextPosition(SwingConstants.CENTER);
button.setPopupMenu(popup);
toolbar.add(button);
Due to external changes that mean I can't publish to Maven Central anymore, this needs to be published using GitHub Packages.
The preferred width calculation appears to take the left (normal button) side as its only input, ignoring the menu.
Since I no longer control alexandriasoftware.com, the package needs to be renamed from com.alexandriasoftware.swing.jsplitbutton
to com.github.rhwood.jsplitbutton
to reflect that.
Since GitHub Packages requires an authentication token to pull packages, also publish via jitpack.io. Should be easy to do both.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.