Material button in java? [closed] - java

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
Can we use material UI in java?
Basically, I am making a calculator in eclipse using swing and awt and I want to try materialUI, so I want to use the material button in it.
Is it possible?

Yes. You could use Material UI with Java. Implement your calculator as a webapp and use Material UI components to implement the calculator (web) UI to run in the user's web browser.
But it doesn't make sense to use Material UI with Swing / AWT.
Material UI is a Javascript component library that runs in the user's web browser.
Swing / AWT are for implementing user interfaces on the user's desktop.
(Trying to use Material UI with Swing / AWT would be like trying to put wheels on a fish.)
There is nothing preventing you from designing and implementing cool buttons (e.g. buttons that look like Material buttons) in Java using Swing / AWT as the foundation. It would "just" be a Java coding exercise; see Andrew Thompson's answer for some a starting point.
But my advice: don't bother. It would be a waste of effort ... IMO.

.. looks cool ..
If it is purely about the look of Swing GUI controls, that could be implemented using a custom look-and-feel. See the Modifying the Look and Feel lesson in the tutorial for details. Note there are also many 3rd party look and feel implementations that might come close to what you think is 'cool'.

Related

Java GUI programming beginner tips [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
Im quite good with writing text based programs using Java and ill like to proceed to writing GUI programs and animations ive checked several youtube playlists and they dont seem do helpful so i would appreciate any tips on where to start.
For desktop applications, You should start with Java Swing.
Swing API is a set of extensible GUI Components to ease the
developer's life to create JAVA based Front End/GUI Applications.
There are some good tutorials, I would suggest the following:
JavaTPoint and TutorialsPoint
After completing swing, you can move on to JavaFX.
JavaFX is a set of graphics and media packages that enables developers
to design, create, test, debug, and deploy rich client applications
that operate consistently across diverse platforms.
For that, you may follow to begin with
code.makery
Sounds as a great question, but not self explanatory. Before making assumptions just ask your self -
Do I feel myself as Web developer or a Desktop(Core) developer?
From a prospective of Desktop developer - take a look at Swing - it allows to make GUI forms and etc. If you decide to learn web, then take a look at Vaadin (which is made on top of GWT, and easier to dive in)..
Both of them have simlar syntax, so it would be always easier re-qualify...
UPDATE: While you still decide where to go, see this humble example of Vaadin Application

Java Syntettica look and feels [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
Lately I have learned a lot of Java;
Currently I am using Swing for GUI;
And I want to use Synthetica's L&F's ;
I need help on where to start, some comprehensive tutorials may help,
I also wonder that if I wasted time by learning swing.
Cause I know Synthetica does not require writing code, or am I wrong ?
Thanks.
Synthetica is a Look and Feel (LaF) for the Java Swing GUI Library/Toolkit. Think of it as a skin to change the default look of a Java GUI app.
Here's some reading on how to integrate a different LaF into your app:
http://docs.oracle.com/javase/tutorial/uiswing/examples/lookandfeel/
http://docs.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
http://www.javasoft.de/synthetica/faq/#general-1
Using a pre-built LaF will save you the time and code of making the LaF yourself, but you will still have to code the actual GUI (the frame, buttons, text boxes, etc). Synthetica will just make them look different than normal. I would say to effectively use Java Swing LaF's, you will still need to know a little about Swing.
If you do not like Swing, it's worth looking into JavaFX. It's the Swing replacement and is included in Java 8 by default. You can hand-code the GUI using Java code just like with Swing, or you can use something called FXML to basically write the GUI in a special XML document which is much faster. JavaFX also uses CSS to style the LaF to look however you want.

"Proper" way to develop a JAVA GUI application [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I would appreciate it a lot if someone enlightened me on what is the "proper" way to build a java application which utilizes the Swing. How you navigate through the views of the program?
To further elaborate on what I have in mind:
I need a menubar at the top of my Frame and when the user selects a menu item the application should present him the right view. These "views", are they panels? How do you create such an application? I have tried with panels and show, hide functions but I am not pleased with the result. Is this the proper way to build such an application? Looking forward to your answers guys!
Thanks a lot in advance!
If it is a simple application, JFrame and JMenuBar is enough. If it is built out of a number of screens, as your question suggests, then CardLayout can be useful to manage which screen is showing. Building those out of individual JPanels is a good idea.
There are various GUI builders built into Java IDEs which can help you design those panels and wire them up to your code that implements the logic of the application.
How the pieces of the application communicate with each other is up to you; the typical pattern is to have a "model" class for each one which populates the models of the individual components.
If it is a very complex application, you may want to use a framework which takes care of the plumbing of a desktop application, such as the NetBeans Platform or other similar frameworks.
You can use a JFrame.On the top of it, have a menu bar, you can add items to it.You can also add sub menu to items.You can perform action on its event.Netbeans provide a easy way, but it is not recommended from coding point of view.

what are good options to create a portable standard desktop GUI application [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I want create a portable DeskTop Application with Graphical Possibility
I am Identifier with Swing,awt and Java FX
I think that i cant use awt because this don't work in all OS
but I don't khow what best option for my Application?
can I use both Swing and javaFx?
Is there other technology for create portable GUI Desktop Application ?
thank you
Swing is probably your best bet. AWT has no benefits anymore - Swing has superceded it. JavaFX is also a good option. The only problem with JavaFX is its low adoptability compared to Swing. There are very few expericned people in JavaFX out there. But JavaFX can embed Swing components.
Swing is very mature, and has a huge amount of information on the web.
SWT is another option, but with SWT you need to learn the RCP framework from Eclipse and that can take a while. Also, SWT is fairly restricting in what you can do. With Swing you have complete freedom.
That's about it for Java that i can think of.
I guess you are looking for a good GUI Framework for you JAVA Application.
AWT is totally outdated and was succeded by Swing.
You can use JavaFx and Swing together, for example, to integrate JavaFX in an old swing application.
An alternative would be to use SWT (like Eclipse).
Building nice looking GUIs in Java is quite a hard task. I would use JavaFX or SWT.
You can use the Google window builder available with eclipse. https://developers.google.com/java-dev-tools/download-wbpro Here are the details on how to install.

J2ME UI Screen Design [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 4 years ago.
Improve this question
Are there any tools for UI screen design for mobile devices or
Is most of the design done in a generic Image/DTP editing/creating software like MS Windows Paint or the likes?
I found a few tools for creating sprite image filmstrips, like MotionWelder,
However I haven't found any tools for UI screen design and am generally working in a non-structured manner.
I have tested out NetBeans Visual Builder its nice for component based layout, however I don't think it supports a more open user based component and pixel based view of the screen.
I haven't tried NetBeans'Game Builder either maybe I should have a look there?
What would be a more efficient way of Screen design and then say export the resulting screens to your app?
From my experience, a Canvas based layout, with the UI designed as screenshots by designers using Photoshop and then they providing image assets has worked well. I personally like the flexibility and control this provides.
LWUIT is a nice user interface toolkit for J2ME. It allows you to create interfaces in a similar manner to Swing, e.g. using BorderLayouts etc.
When I wrote an application for a mobile device I basically created a background image in paint an imported it into the application. I then used the Canvas class to draw on top of that image to add the additional bits and pieces I needed (such as buttons and text etc.)

Categories

Resources