Why i am getting the errors in the abstract class.Earlier i thought there may be a class of the same so i have created a new package and created a class test but still i am getting the same error.Any Solutions to it.

SHow your curretn code. Do you have SSCCE?
–
StanislavLFeb 11 '13 at 6:51

1

JPanel is not like JFrame and thus it is nearly impossible to get a JPanel minimized to taskbar like a JFrame (i.e an icon is shown representing minimzed window in taskbar). You may need to use multiple JWindows or JFrames to achieve the correct effect...
–
David KroukampFeb 11 '13 at 7:37

1

Wait wait wait.... It just hit me... You can use a JDesktopPane and 4 JInternalFrames which by default gives you what you want (minimized maximize and close features are built into the JInteralFrame):) See here for an example.
–
David KroukampFeb 11 '13 at 7:44

I answered a similar question which needed the JInternalFrame to look like a JPanel see here. Now you would simply add your own buttons which would be like wrappers for the JInternalFrames minimized maximized and close buttons i.e see here which shows how to programatically minimize JInternalFrame +1 @trashgod.
–
David KroukampFeb 11 '13 at 7:53

@sukant not possible with JInternalFrame sorry forgot to mention it...You would need to use my initial idea (multiple JFrames/Jwindow), thinking more there are a few hiccups in my initial idea too. But why do you need this type of effect? I have never seen it before and cant think of a real advantage of it? The code created will most likely not follow the best practice of using a single JFrame per app.
–
David KroukampFeb 11 '13 at 9:01

thanks a lot.You are a awesome guy,highly talented.This is what i wanted.Thanks again.
–
user2045376Feb 11 '13 at 10:50

Glad to be of help :). See my edited post. As for my email I am more often on this site than my emails ;) (but my email is in my profile) but I deleted that email so yeah...) and there are many here on SO as good and even better than me... But if you ever need remember use @trashgod to notify them directly through a comment for example.
–
David KroukampFeb 11 '13 at 10:56

1

Not sure what you mean. Works for me simply change the 4 in the for loop to something like 5 or 6.... though it would also be better to change layout of mainHolderPanel accordingly from GridLayout (or make more rows/cols for GridLayout) alternatively use default JPanelFlowLayout
–
David KroukampFeb 11 '13 at 12:51

1

Okay you are on the right track... but instead of adding panel to frame etc simple maximize the frame, remove the panel you want and add it as a glasspane of JFrame (via JFrame#setGlassPane(...)), than remove glasspane (set a empty transparent JPanel) and re-add panel when minimized to its owner...
–
David KroukampFeb 12 '13 at 9:34