forked from java2script/java2script
-
Notifications
You must be signed in to change notification settings - Fork 12
Hanson1 #69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buffer.data must be accessed without replacement, as there are two other references to it.
a2s.A2SEvent calls component.getMouseEventTarget, which is package-local in Java 8.
-- no longer required outside of SwingJS context.
The swingjs/a2s/* AWT/Swingjs adapter classes were moved from a2s/* on 10/23/2018. The swingjs/a2s package provides a method of using non-Swing AWT components (Button, TextField, etc.) even though SwingJS requires Swing components (JButton, JTextField, etc.). This is necessary because SwingJS does not implement "mixed-mode" containers -- JPanels that have AWT Buttons, for example. This possibility was clearly a nightmare for Swing developers, and the code backing this capability was just way too complex to even consider converting. There is probably a reason this was never done before, but I have not discovered it yet. That is to say, this works. The intent is to provide a means of taking a project that is not a Swing application or does not fully use Swing components and make it work in SwingJS with no special handling. In Java, a reference to "java.awt.Button" is just that. In JavaScript, that call is to a javax.swing.JButton via the intermediary swingjs.a2s.Button. It is still recommended to convert a non-Swing application or applet prior to working with SwingJS, because it is not guaranteed that this implementation is complete. But, that said, this does work. Older AWT mouse events are passed on to the component as before, even though they are also passed on by the listener mechanism introduced in Swing.
PUBLIC_MEMBER and PROPERTY *might* work as well
- ObjectFactory - package-info - class discovery/resolution Note that JavaScript cannot get a file list from a package, so one or the other, context set up unmarshal method must specify a Class or Class[], not just a path.
JalviewJS session save JAXB; Jalview (Java app) drag drop.
- better alignment and sizes of checkboxs and radiobtns - adds dynamic adding and removing of menu items - adds MenuListener events
adds move cursor for JSplitPane corrects EventDispatchThread miscoding adds dummy frame consideration for SwingUtilities.SharedOwnerFrame sets mouse click for multiple click from jqevent.originalEvent adds JSplitPane drag cursor on mouse move fixes JComboBox not being disabled fixes early setCursor before peer is created
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.