Solved

comustomize shpae JFrame

Posted on 2003-11-04
6
263 Views
Last Modified: 2010-03-31
Well i say a tutoral of making round and any othersahpe windows in Win32.

Can i create any shape JFrame in Java?

If yes plz speceify resources.



TH
0
Comment
Question by:th83
  • 3
  • 3
6 Comments
 
LVL 35

Expert Comment

by:TimYates
ID: 9678042
you can't

without using JNI

which makes your java app system specific
0
 
LVL 35

Expert Comment

by:TimYates
ID: 9678061
even with JNI...I'm not sure you can :-(
0
 
LVL 92

Expert Comment

by:objects
ID: 9681728
You can give the illusion of other shaped windows using a JWindow by taking a snapshot of the screen behind the window and using that as the background to make it appear transparent.
0
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
LVL 35

Expert Comment

by:TimYates
ID: 9685466
of course, if you move the window, or close any of the other windows, the illusion will be destroyed :-(
0
 
LVL 92

Accepted Solution

by:
objects earned 30 total points
ID: 9690759
> if you move the window, or close any of the other windows,
> the illusion will be destroyed

listeners can handle that
0
 
LVL 92

Expert Comment

by:objects
ID: 9718577
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question