Hello forum, vaironl here.
I would like to notify you all that I'm in an IB- Computer Science class (I'm learning a lot as I go, since I promise to skip the normal CS course). I would like to know if I could design this frame for my final project, or a similar look.

[IMG]http://img4.imageshack.us/img4/903/a3pic1.jpg[/IMG]

[IMG]http://img7.imageshack.us/img7/8319/a3pic2.jpg[/IMG]

[IMG]http://img847.imageshack.us/img847/1702/a3pic3.jpg[/IMG]

Created with photoshop.

Short answer: yes.
Longer answer: Java's GUI classes ("Swing") are more aimed at standard business applications, with a standard look and feel. Your panels will be pretty straightforward if you accept one of Java's standard looks. On the other hand you can draw shapes and images any way you want to get any exact appearance you desire, but that's more work.

Short answer: yes.
Longer answer: Java's GUI classes ("Swing") are more aimed at standard business applications, with a standard look and feel. Your panels will be pretty straightforward if you accept one of Java's standard looks. On the other hand you can draw shapes and images any way you want to get any exact appearance you desire, but that's more work.

So by, "more work", are you pointing to absolute positioning? Geometry?

To go beyond the standard look and feel components you have to replace their "paint" code with painting code of your own that draws them explicitly using lines,rectangles, ellipses and more complex shapes. Exactly how/where you do that depends on how clever you want your panels to be, but whichever way you are involved in a lot of pretty detailed graphics drawing methods. Have a look at these for a flavour of the kind of methods you'll need
http://download.oracle.com/javase/7/docs/api/java/awt/Graphics.html
http://download.oracle.com/javase/7/docs/api/java/awt/Graphics2D.html

Member Avatar for hfx642

To get things to display in the manner you want,
you can combine several JPanels with different layout managers.
Quite often, I'll do Grids... inside of Borders... inside of Grids... etc.
I usually wrap all (each) of my non-Flow JPanels with Flow JPanels.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.