Java NetBeans Form Creator [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 7 years ago.
Improve this question
I am a C# .NET developer and I always use Visual Studio to create my applications. Now I am studying Java with the netbeans IDE and I have no clue of how to create a Form Application?
I have used Jform etc. But this is just annoying. I was trying for 3 hours just to relocate a button while resizing my window.
Does anyone have any suggestions on how to make this easier?

Unfortunately, IMHO, creating GUI applications in Swing is a pain, especially coming from .NET.
Whenever I need to create Swing apps I find it easier to just hand code it. Although it involves much more work than in .NET, and also has a pretty steep learning curve, I find I have more control over my code that way.
BTW, once you get the hang of how things work in Swing, hand coding is pretty manageable.
Good Luck!

Related

Using windowbuilder to learn swing. A bad idea? [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 2 years ago.
Improve this question
I started to play arround with windowbuilder and I have already built a few basic GUI programs. However, I was wondering if I'm doing myself a disservice by learning swing this way instead of building everything myself, without using any plugins? I do have a good understanding of what goes into building the whole GUI, but still, what's your opinion on the matter?
I usually give the same example. You can't teach someone to use a calculator before teaching him how to sum. I think it's important for you to get familiarized with most of the swing components and try to grasp the basics about them so you can code them easily.
WindowBuilder is very helpful for complex designs and components, but I think you should first know the fundamentals before switching to WindowBuilder. Many people would disagree with me because that extension makes life a lot easier but it's really important to know the basics in case someday you want to work somewhere without WindowBuilder or NetBeans, or even if you want to understand the code that the program is making for you.
So, to sum up: You can install WindowBuilder and use it to learn but keep in mind you may not get some VERY useful knowledge with this method. Also, analyze the code thoroughly to understand it and try not to over-use the tool.
I would recommend writing initially with your hands. After all, WindowBuilder and similar tools are designed to speed up development, use them if you understand what is inside. All the best!

How to create graphics in Java? [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 7 years ago.
Improve this question
I was wondering about how is possible to make graphics in a programming language just like Java, I mean in the web there are HTML + CSS etc but what here?
I already found out I might start to code with Java Swing (?) but if that's so: where's the best place to start learning it and really briefly: what can I do with that?
Please, note I don't want to start a broad talk with this question, so don't worry and be brief if you don't want to spen too many words with it ;)
For graphics you can use a Canvas/JPanel with Swing, JavaFX, or libGDX if you need a bit more power behind your graphics as it used OpenGL.
As some of the other commenters have already shown, there are many tutorials on how to use all three options, so you're pretty-well set to learn whichever you choose. I'm not entirely sure how well JavaFX deals with graphics, but Swing works perfectly fine for most purposes.

Is it a good Idea to use a Game Structure Coding Style to build a simple system? [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 8 years ago.
Improve this question
Yes, as what I'm trying to think is that, for example I want to create a simple library system. but my question is it is a good idea to use a game structured system using rendering? Would it give give a performance issue? Also, since I want that system to be compatible with few operating system using libGDX.
Using a game structured system for making a GUI for simple software is not a good idea, because it will consume a lot of time, you can use Java in netbeans for simple softwares it has a drag and drop menu where many components needed for software are present you can use them by just draging and droping them where you needed.
Using a game structured system can give software a non-traditional look, But if you are really good at that game structured system then you can make a very stylish GUI, but it will be non-traditional.

Tool to create uml models in java - Developing practice [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 should clarify my question here, I want to practice my programming skills and I want to develop a simple diagram modeling tool, something where I can move objects with the mouse, drag and drop, but I have no idea where to look to learn this kind of things in Java.
I hope my question is clear, thank you.
Are you looking at a desktop application or a web based application?
For a desktop based application, you should start looking a swing or javafx to get started with the basic ideas and the move along.
For web application, it is a bit more complicated for a beginner. I suggest you to start with spring examples and then implement the front end with the help of some javascript library. Like JQuery, Dojo and Draw2D etc.

Converting Swing application to JavaFX [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 6 years ago.
Improve this question
What are the necessary steps for converting a Swing application into JavaFX?
It would also be interesting to know about the best practices when performing this task (i.e. problems that can be encountered and resolutions).
I don't know if there are "best" practices there, as JavaFX is quite new and people are more busy making new JavaFX programs than converting old Java ones...
First, I would ask why you want/need to do that... Second, I would say it depends on the purpose and complexity of the Swing program.
If that's a plain dialog, it shouldn't be hard. If it is a complex application with sub-panels, lot of pop-up dialogs, menus, MDI behavior with docking, etc., it might be hard to impossible to port...
Somehow, it might be better to rewrite the GUI from scratch, knowing that you have to either use a wrapper of Swing components in JavaFX, or limit yourself to the (currently) limited range of native JavaFX components.
Now, if your application was written with good principles, you can rewrite only the view and controller parts, and re-use (most of) the models / business logic as JavaFX can very well exploit Java classes.

Categories

Resources