Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Using JNBridge is it possible to update a JTextField's Text Property from a .Net application?
.Net application -> JNBridge -> JTextField.setText("Something");
Seems like it's possible, but I've not found any solid implementations.
Also does the Java application have to explicitly implement the Java Accessibility API, or is that something that you get for free with all Swing controls?
I'm looking for either a solid "Yes it's possible...I've done it...here's where you start." or "Here's a good reference link".
If my question is vague it's because I'm a .Net guy with little Java experience. I'll be happy to elaborate...
Thanks.
Yes, you can do this using JNBridgePro. Please refer to the Java-in-.NET embedding examples that come with the JNBridgePro installation. There are examples for both WinForms and WPF applications.
Please note that JNBridgePro requires the embedded control to be a heavyweight control -- that is a control with a Windows peer. Most Swing components (including JTextField) are not heavyweight, while AWT controls are. Because of this, we recommend that any all-Swing controls be wrapped in a heavyweight control (generally, an AWT Panel), and that Panel wrapper (with the JTextField, and perhaps other things, inside it) be embedded in the .NET application. But once you've done that, you should definitely be able to access the Text property.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
Is there any open source tool/framework that is written in Java that can be used to automate all Windows applications (not like Abbot or FEST which automates Java based GUI Apps).
I have heard about WHITE which is kind of like for .Net Languages. Is there a Java based alternative or a framework in Java that can use WHITE or UIAutomation Framework (through JNI or something)?
There seems to be many Java based web automation and testing tools like Selenium, Sahi etc. but for GUI Automation, I found only jWinAuto which is a wrapper around AutoItX.
Is Java not capable for GUI Automation? Is there something beyond the Java Robot API?
Java does not inherently support cross platform native GUI automation (where you need to find and understand native components). By that I mean a way of doing it "write once run everywhere" beyond the obvious very minimal API of Robot.
Could such a project be done in Java? I'm sure, but there would be a lot of JNI code involved to the point where you would wonder what Java brings to the table.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I've been browsing for a tutorial that covers basic button UI design (e.g. colors, effects, and etc.). Since I'm designing a component of my own, I was hoping there was some sort of tutorial that could guide me in making the correct design choices (aesthetically speaking...).
For instance, this tutorial should be able to guide me in answering some of the following questions:
What should a button look like when it's pressed?
What should a button look like when it's hovered over?
I tagged this as a Java Swing-specific question since that's the language that I will be utilizing. And yes, I've used the existing component behavior as a guideline, but I would like something more definitive.
Note: this tutorial does not need to be Java Swing-specific!
Something like this.
The Java Look & Feel Design Guidelines has some detail on button image design:
http://oracle.com/technetwork/java/hig-142056.html#52291 (thanks Olivier for supplying an updated link)
You should look on UI templates and choose something that look appropriate (even on website template and flash), and then customize the swing components according to this look.
if your want your gui to look a little bit more updated, try swingx
check their UI it look pretty good.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm new to Swing programming and would like to find an Open Source Swing poject that can help me get up to speed. Any suggestions?
Before jumping in and trying to understand a project, why not go through the Sun Java tutorial and get some understanding of Swing, then start to do some small projects on your own. Once you are familiar with the framework then you would be able to better understand some open-source projects, IMO.
I haven't looked at the code, but this could be an enjoyable project to help with:
http://ostatic.com/croftsoft
How about OpenSwing?
OpenSwing is an open-source suite of advanced graphics components based on Swing toolkit: these components are more sophisticated than those provided with Swing and can be manipulated directly inside the UI designer of the IDE.
It is also a framework that provides data binding mechanism between components and data model, based on the MVC paradigm. Data model is based on Java Beans (POJOs) and it is supported in all OpenSwing components, such as grid control, tree control or generic controls container.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I am about to build a UI in Java and I am trying to determine what I should use. I definitely don't want to use vanilla swing.
The one caveat is that it has to be added inside of an existing swing application. I am looking at JavaFX and Groovy Swing Builder. For the former it looks like there is fairly poor support for embedding into swing.
Anyone have another other suggestions?
The groovy guys are working on Griffon: http://groovy.codehaus.org/Griffon.
I believe it is supposed to model a console type GUI like a web UI.
Another possible answer is JavaFX. Here's a link to their hello world app:
http://javafx.com/docs/gettingstarted/javafx/create-first-javafx-app.jsp
Have you considered using NetBeans?
http://www.netbeans.org/features/java/swing.html
I'm not quite sure what you're looking for, but SwingX might fit the bill.
Contains extensions to the Swing GUI toolkit, including new and enhanced components that provide functionality commonly required by rich client applications. Highlights include:
Sorting, filtering, highlighting for tables, trees, and lists
Find/search
Auto-completion
Login/authentication framework
TreeTable component
Collapsible panel component
Date picker component
Tip-of-the-Day component
(SwingLabs seems to be down at the moment, though.)
Edit: On second reading, I guess you were actually talking about declarative UI builders? In that case, I'll refer you to another answer of mine in which I recommended javabuilders, a YAML-based Swing UI builder.
I've used JIDE in the past.
It's docking framework is pretty awesome.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I would like to write a Java terminal application that does screen manipulation. Are there any good libraries out there that allow you to manipulate the screen like curses in the *nix/C world?
Minimal features I'm looking for are windowing and user input support.
In feature-speak, I'd like to have a region of the terminal where some data is regularly updated while (at the same time) the user can enter commands/text in some other part of the screen.
Lanterna
I found the Lanterna library recently. Haven't had the opportunity to use it yet but it looks like a more up-to-date alternative to the others.
There is Charva, which links to native code but has an api based on Swing.
The screenshots show lots of text windows, so that looks useful.
Haven't used it myself, but Java Curses Library sounds like what you want.
Here is a way to call the ncurses lib using JNI. I tested this and it works.
As of 2013, the closest I can find is Blacken.
Blacken is not a curses library per-se. It moves away from the terminal, and instead, renders it's own "console window." This has the disadvantage of not looking "console-like." Instead, you get full (arbitrary) colour support, and a curses-like API (in addition to their main API).
You can also set the font to Mono for fixed-width characters.