![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jul 2006
Posts: 3
Rep Power: 0
![]() |
need help ergently for internalframes
I am a stdent and a assigment requires me to makea internalframe! I can not suss it out, could someone be kind enough to fill in what i need to make the internalframe appear from the liabry menuitem as i can not suss it out. Then I can use it as a rerence example! Your time would be greatfuly apreciated
Here is my main frame java Syntax (Toggle Plain Text)
Last edited by big_k105; Jul 31st, 2006 at 4:22 PM. Reason: added highlight tag |
|
|
|
|
|
#2 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Have you by any chance read the formum's FAQ/Rules? Most people looking to a community for help would at least scope it out and try to form some opinion as to its cultural focii. Somewhat like not walking into a strange church and farting loudly, until one discovers it's quite the thing to do.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#3 |
|
Professional Programmer
|
1. Spell check is your friend. My skin will not stop crawling.
2. Use code tags to make things easier to read. 3. See Principal DaWei's post ![]() 4. Welcome to the forums.
__________________
Amateurs built the ark Professionals built the Titanic |
|
|
|
|
|
#4 |
|
Expert Programmer
|
People are stupid.
|
|
|
|
|
|
#5 |
|
Professional Programmer
Join Date: May 2005
Location: Bad Nauheim, Germany
Posts: 436
Rep Power: 4
![]() |
make it quick, make it ergent, ergent... umergency.. so eeeergeeeent.. uumeeeeeergency ..woohooo
__________________
-Steven "Is this a piece of your brain?" - Basil Fawlty |
|
|
|
|
|
#6 |
|
PFO Founder
![]() ![]() |
Come on people. I know the title is bad and so is his spelling but I have put his code in highlight tags. I think someone should still be able to help. Maybe the Original Poster can repost the question with better spelling, if people are having that much trouble. I personally can't help as I don't know much about what you are asking, hopefully someone can give you a straight forward answer. It would probably also help if you told us what you exactly need help with. Like what part of that code are you having problems with? Thanks
__________________
BIG K aka Kyle Programming Forums Kyle K Online Please do not PM or email me programming questions. Post them in the forums instead. |
|
|
|
|
|
#7 |
|
Newbie
Join Date: May 2006
Posts: 6
Rep Power: 0
![]() |
When in doubt, google it.
http://java.sun.com/docs/books/tutor...rnalframe.html I've heard of JInternalFrame class before, though I've never personally used it. Good luck. I couldn't understand what exactly you were wanting to do with the JInternalFrame, so there's no way I could help. |
|
|
|
|
|
#8 |
|
Sexy Programmer
|
You must put a JInternalFrame within a JDesktopPane, the JDesktopPane acts as a container for the JInternalFrames.
[PHP] import java.awt.*; import javax.swing.*; public class Desktop { public static void main(String args[]) { JFrame frame = new JFrame("Desktop Test"); JDesktopPane desktop = new JDesktopPane(); for(int x = 0; x <= 5; x++) { JInternalFrame intFrame = new JInternalFrame ("Frame " + x, true, true, true, true); intFrame.setSize(100,100); intFrame.setLocation(x*2, x*2); intFrame.setVisible(true); desktop.add(intFrame); } frame.setSize(600,600); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setContentPane(desktop); frame.setVisible(true); } } [/PHP] That is an example how to use JInternalFrames and JDesktopPanes. Although your explaination wasn't really clear on what you needed help with. I hope this could lean you in the right direction.
__________________
I would love to change the world, but they won't give me the source code! |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|