How to Create Nested Tab Windows in NetBeans Platform - java

I'm building an application with the NetBeans Platform, and I'm trying to create nested NetBeans tab groups, as shown in the following mock-up:
Nested Tabs Mockup
I know that I can create a Tabbed Pane, but Tabbed Panes don't have the level of flexibility that NetBeans tabs do (rearrange tab orders, tear away tabs, etc.). I want to use NetBeans tabs at all levels of nesting in my application. However, despite hours searching online, I have not found a way to implement this either through the Matisse builder or through Swing coding.
I would appreciate any advice anybody could provide. Thanks in advance for your help!

Try to learn more about tabs in Nb platform, this blog page could help you for what you look for.

Related

GUI designer in netbeans does not load a specific JPanel designer

It has been a few days that I've started using netbeans's gui designer.
I have built and tested all the panels I need for my project,
but today when I wanted to add some action listeners to my MainPanel.java class and tried to open it in design view, it didn't open.
It shows loading the panel but there is no sign of viewing it.
I can see the JPanel's code and I can see and open my other panels' design view.
It's only this one.
I searched the net but I couldn't find a proper answer.
Can anyone help me?
Does anyone have any idea what is the problem?
I'm using windows 7 and netbeans 8.0.2.
here are my design classes:
FinancialDocumentsJFrame.java
MainPanel.java
BillEntryPanel.java
ReceiptEntryPanel.java
SearchPanel.java
PaymentJFrame.java
I can open the design view of other classes. It's only MainPanel.java that dose not open and can see its code only. I'm also using some other java classes, too. Rather than form classes.
I made a new class and copied the existing class code in to it and it worked again.
Good Luck with your codes.

how to create Java gui application like this in netbeans

I am creating a Java desktop application where the user will enter his name and age and press next, like given below in image 1.
And the action would perform would be like given in the image below in image 2.
I went through all tutorials on the Netbeans site, but still I was not able find any solution. I want to build this application like what we see when we install some application on Windows, we select some option and press next and a new window will appear with the result or more options. Please somebody help me with step by step instruction.
I don't think you'll get as much out of "step by step" instructions as you will going through the tutorials and learning not only how to do what you're desire, but the whys and hows of what you're doing. That being said, you will want to go through several of the Java Swing tutorials to learn how to do this including
the CardLayout tutorial to see how to swap JComponents in a GUI.
The JTextField tutorial to see how to interact with JTextFields
The JButton and ActionListener tutorial to see how to interact with JButtons and how to respond to their presses.
Much of learning to code means independent study and much trial and error. So start experimenting and have fun doing so!
As the above answer says, the CardLayout is a one way of doing this. However, in my case, I find that cardlayout is bit difficult for me. So, what I do is, creating JavaBeans, which extends JPanel, in this case. So you can add them to the main view and dispose/replace with another JavaBean, making different "Next" views. This way will help you to seperate your code into several classes, making the code simple too.
This article contains more or less a step-by-step tutorial on how to create a wizard in Swing. But before you start with that article make sure you have some basic Swing knowledge or that article will be complete Gibberish
You can use installation wizard creator tool for make a setup of your java application
for examaple you can use
"Setup Factory" tool for create a install exe of your application
it make a installer like that which you in your quetion

Java: Buttons and Labes Layout

What way would you suggest to layout (locate) Jbuttons and Jlabes in java in the fashion depicted in the picture below? Is there any tool for visually being able to place the components on a form in Java, rather than specifying the component locations in the code one by one.
Thanks
I am using eclipse
You can use Swing GUI Builder for visually layout component.
For Eclipse you can use WindowBuilder. Look for Installation guide with update site of eclipse. Also take a look at the Tutorial.
Yes, NetBeans comes with a visual UI builder for Swing.
Use NetBeans, its have a create GUI tool!

Tools for rapid layout/interface creations?

Does anyone know of any tools (besides DroidDraw) that can help me create the basics of my projects a bit quicker? I'm looking for something that will allow me to very quickly generate the XML for my layouts so I don't have to sit there typing like a robot for so long.
Thanks!
However the drag and drop layout design method is not recommended for Android Applications UI designers but there is an Open Source project on Google Code: android-ui-utils , in which you might find something intersiting.
It uses a Firefox addon Pencil to draw and design android layouts and also uses an online "Android Assets Studio" where you can design your custom Icons like:
Launcher icons
List item icons
Menu Icons
Notification icons
You can give up a try here:
http://code.google.com/p/android-ui-utils/
DroidDraw is OK, but the reality is that if you are going to write for Android you are going to want to learn how to write XML layouts from scratch. I remember that XML layouts seemed bizarre when I first started working with the Android SDK, but eventually it starts to make sense.
I read a blog post from a member of the Android team at Google explaining why XML layouts are better than GUI-based layout systems (such as the one included with the iPhone SDK). I can't find the link right now, but basically XML allows for layouts that gracefully scale across devices of radically different sizes and purposes where a GUI-based layout designer often has to be tweaked at best and redone at worst for devices of different sizes.
The official Android Plugin for Eclipse comes with a GUI Editor which supports drag'n'drop of GUI Elements. Not necessarily better than DroidDraw, but maybe you didn't know yet: http://developer.android.com/sdk/eclipse-adt.html

Create a Visual Studio type look using Java Swing

I would like to create extend a Java Swing application to have a look somewhat similar to an IDE such as Eclipse or Visual Studio. That’s, there would be a panel at the left that displays a tree, and a tab panel on the right that allows several elements of the tree to be opened and edited on right. For this I could easily use a BorderLayout and just use the center and left areas.
However, I would also like to have the ability for the user to drag the border between these two panels, just like Eclipse and Visual Studio allow. I can think of several ways to do this, but was curious if anyone had found a particularly good way to do this, or knew of an example. I’ve googled for it, but have not found anything.
You could use JSplitPane. And maybe have a look at an article about a MultiSplitPane.
While JSplitPane does exactly what you asked for, you might also be interested in JToolBar, which does other Eclipse-like things such as attach/detach and drag a panel of tools around the UI.

Categories