Is there a button UI design tutorial? [closed] - java

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.

Related

Accessing JTextField control via JNBridge from .Net application [closed]

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.

Tutorials for GridBag layout [closed]

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 4 years ago.
Improve this question
I want to learn gridbag layout and i have been searching the net for good tutorials but havent found any. Can someone recommend from where this can be learnt?
You might have not searched well.
If you had searched well then how did you missed this: Oracle java tutorials: How to Use GridBagLayout
For examples visit this: Java Tutorial » Swing » GridBagLayout
The code generated by the NetBeans GUI editor for GridBagLayout may prove instructive. In the navigator, right click to select GridBagLayout and choose Customize to see an interactive visual guide to the available constraints.
On a side note, you should try Javaspring layout. It was added recently. It is very flexible and is worth trying.
Check "Derek Banas" Java tutorials. His explanation is very good and concise. Look for tutorials 20-28.
https://www.youtube.com/playlist?list=PLE7E8B7F4856C9B19
Official Java tutorials are ok if you are an expert, but useless for a beginner. But then you don't need them anyway.
I am pleasantly surprised, nobody jumped up with "this is not a "recommend me a tutorial" site!"

Getting started with Swing? [closed]

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.

Java User Interface Framework? [closed]

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.

looking for Java GUI components / ideas for syntax highlighting [closed]

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 not committed to any particular GUI tookit or anything - just needs to be Java based. I want to do simple syntax highlighting ( XML and XQuery ) inside editable text areas.
My only candidate so far is Swing's JTextPane, as it supports seems to support the styling of text, but I have no idea how to implement it in this context.
If a particular toolkit has something like this out of the box, that would be awesome, but I'm open to doing this by hand if need be.
JSyntaxPane handles XML and can be extended
http://code.google.com/p/jsyntaxpane/wiki/Using
Or, it should be possible to extract the NetBeans editor, but that would probably be more work...
[edit] btw, I got the XML info from here... it doesn't seem to mention it on the google code pages...
Jide software has a Syntax Highligher component. It is still in beta, but I think it supposed XML. I haven't used it myself, so I don't know how well it will do what you want.
Why not check out Ostermiller's Syntax Highlighter.
Here's a simple code editor demo
It still uses JTextPane though.

Categories

Resources