Open Side Menu Go to the Top
Register
Super dumb Java question Super dumb Java question

07-24-2014 , 05:57 PM
How do i make the Hardware/Software boxes in the image below?



Should be easier but i cant seem to find it in Jframes (java obviously)
Super dumb Java question Quote
07-24-2014 , 06:41 PM
JPanel I think.
You should check out WindowsBuilder Pro for Eclipse and it's free btw.

It will help you just drag and drop stuff onto a frame, like what you can do with c# in visual studio.
Super dumb Java question Quote
07-24-2014 , 07:16 PM
I think he wants to create borders around layout managers.

http://docs.oracle.com/javase/tutori...ts/border.html

It does look weird seeing Swing after playing with JavaFX.
Check it out using Scene Builder to drag-and-drop, it's easy and it makes sense since it's pretty much designed to use MVC/MVP pattern.

https://www.youtube.com/watch?v=ij0HwRAlCmo

Last edited by bex989; 07-24-2014 at 07:22 PM.
Super dumb Java question Quote
07-24-2014 , 08:13 PM
i need to create it in netbeans btw

Super dumb Java question Quote
07-24-2014 , 10:19 PM
...and Jpanel doesnt seem to work
Super dumb Java question Quote
07-25-2014 , 02:42 AM
bump
Super dumb Java question Quote
07-25-2014 , 03:24 AM
JPanel with Border. I just checked.
Super dumb Java question Quote
07-25-2014 , 03:42 AM
Quote:
Originally Posted by iosys
JPanel with Border. I just checked.
confused what you mean. how do you set the 'Hardware' text?
Super dumb Java question Quote
07-25-2014 , 05:01 AM
Quote:
Originally Posted by Searix
confused what you mean. how do you set the 'Hardware' text?
Um maybe a label... are you serious by asking that?

I mean maybe that developer used a single jtabbedpane for both of them, modified the style, had tabs align left and bolded the text.

Super dumb Java question Quote
07-25-2014 , 10:14 AM
I would just use Swing to write it. There should be plenty of examples of how to do something similar to this.
Super dumb Java question Quote
07-25-2014 , 04:13 PM
Found it, it was called a Jpanel property 'Titled border' under extra border options, thanks all
Super dumb Java question Quote
07-25-2014 , 09:03 PM
Good thing you found it, I posted it for you yesterday but you ignored it.
Probably because you see a difference and if you are really trying to learn, you are on a BAD TRACK with Netbeans designer.
Super dumb Java question Quote
08-16-2014 , 11:27 PM
Netbeans form editor is the nuts. Haters gonna hate, but that thing has saved me hours and my GUIs look damn good.
Super dumb Java question Quote
08-17-2014 , 01:20 PM
I have a solution but it requires ditching Java and moving to C#, C++ or Visual Basic.

Visual Studio Express can create a Window in minutes as it's built around Windows Machines. Maybe your after a Java solution for multi platform support but this is the easiest way to create what you need on a Windows Machine.

+1 for the language and VSE ease of use, I've been trying to learn Android for months and getting nowhere but VSE was so easy to understand and their forms wizard was so easy to link variables and program.
Super dumb Java question Quote

      
m