Regarding panels and internalframes

Hello! I've been working at this problem for hours and I still can't seem to find a way to work it out. Anyway, hopefully someone will hear me out and help me out. I can't seem to create internal frames in java.
I've created a class that extends JFrame. I then divided this into two panels. What I wanted to do was to have the second panel contain internal frames. So what I did was contentPane.add(new InternalFrame);
The class InternalFrame simply extends JPanel. The problem is here.
In my InternalFrame constructor, I've created a JDesktopFrame which will hold my internal frames. and then I created JInternalFrame and added it into the desktopframe. The problem is, it doesn't show. Is there anyone who could help me out? What am I doing wrong?
Thanks!

     public classTry()
          JInternalFrame iframe = new JInternalFrame("Try",true,true,true,true);
          iframe.setSize(256,256);      
          iframe.pack();
          iframe.show();
Here's the code snippet from my extends JFrame class:
desktop = new JDesktopPane();
          this.getContentPane().add(desktop);
          desktop.add(new classTry());
               this.pack();
     this.show();
Thanks for taking time. I'm still trying to work on it as well though.

Similar Messages

  • Remote panel and selective control access through Security with DSC

    Hi Everyone,
    I looked around to see what labview had to offer concerning security of remote panel and all the solutions I've found only propose full access to a remote panel, or none. The login page is not an option for me as everyone on the intranet can access the remote panel for monitoring but not everyone can have control to the buttons on it.
    With the DSC module, I can give securities to the different controls and it works great with the exe, if I log in or out, the controls appears or disapears. Unfortunately, with remote panels, those controls are always visibles. Furthermore, when I log in from a remote panel, all the other remote panels get logged in with the same username and priviledges. When I log out, same thing, it logs out all the other remote panels. So the last guy who logs in gives its priviledges to every one else who is monitoring the remote panel at that time. when he logs out, he logs everyone out. I used a reentrant vi hoping that this would solve the problem but it didnt.
    I would like to do what my colleague does with Advantech without any problem. He has only 1 .exe is running on the server and whoever connects to it through webserver, just needs to log in and he has all the priviledges of an guest, operator, admin, etc.. with access to controls and features accordingly. All this without interfering with the other people using the remote panels. This colleague has always been doubtful about the capabilities of labview to do SCADA systems and uptil now, I've been able to prove him wrong.. please help me continue
    There are workarounds, using remote desktop to the server instead of webserver but it definitely is not as practical for the client and it will need quite some work to to synchronise all the exes open from the differents sessions, through the use of shared variables, binding and securities.
    Thank you for your help.
    Solved!
    Go to Solution.

    Thank you very much for your reply Jordan.
    The NI security info is on the server (local domain with groups and users), and the running exes as well. The remote panel is not supposed to be accessed by internet, at least not yet, but just by the computers on the network and thinkline computers who are directly connected to the servers. the remote panel is accessed through the simple url: http://serverip/Application.html
    There is no problem with accessing the remote panel of the exes on the server from another computer on the network. But there are several security issues when logging in and out with the NI Security Programmatic Login and logout VIs through the remote panel..
    The 1st problem occurs when several people access the remote panel at the same time. In my setup, everyone is allowed to check what's happening on the front panel of the running exe, go through the tabs, check the graphs, the tables, etc.. , but only the administrators and the operators can send commands to the machines and the production line through this remote panel. Hence some buttons are accessible to all users, while others are only accessible depending  on the privileges of the person logged in.
    So like I said in the 1st post, I configured some buttons to be accessible only by the users of the admin group. When the exe runs, it's perfect, if I log in and out with an admin account, the buttons appears and disappear accordingly. But when I check the remote panel, those admin buttons are always visible, even if I am logged in as a guest or even logged out. Is it because the remote panel only needs minimum runtime engine and doesnt use the dsc runtime engine? if so, any work around?
    Furthermore, another big problem is that if I login as an admin in one remote panel, then login as an guest in another remote panel, and then logout back from the first remote panel, it says: "User Domain/Guest logged out". Hence, my second login logged out my first user. I can actually see the admin buttons appearing and disappearing on the exe when login as admin and guest from the different remote panels.
    So that's it, I would like my remote panel to behave like a normal scada system, with one exe running in the back (on the server) and with all the users accessing it through web server. Several users might/will access the remote panel at the same time and each of the users have a login/password that grant some of them the privileges to take some actions while giving the others only monitoring rights.
    I hope that I have been more clear in this 2nd post,
    Thank you again for your time.
    Best Regards,
    Tom.

  • Where is the attachment panel and page option in Designer?

    In the document properties (in Acrobat), initial view tab and Navigation tab option you can select Attachments Panels and Page.
    Can this be done is Designer can not seem to find a similar option.
    Regards, John.

    I found the answer myself. Looks like this new version does not support these features anymore: http://www.adobe.com/ro/products/flash-builder/buying-guide.html.
    Strange...
    The question rising here is what happens with this feature?
    Will be available with a future update?
    Will no longer be availalble in FlashBuilder, but in another Adobe Project?
    Will never be available?
    I belive this features are not important  for advanced users... but  I'm just learning this. I'm used to work in Flash. I write ActionScript, but I'm not familliar with the objects availlable in Flex, so the Component Panel and Design Mode is quite handy on this stage.
    Plus, there is a real concern about the future of this technology, now beeing available HTML5. So, there is a question of oportunity  investing time in learning things no longer supported. The most frustrating thing is not having an answer to this question. Even a "No" is better than "We don't know yet" <- the answer I received from online support.

  • Bookmarks panel and page

    Hi experts
    I have set my pdf Initital View properties like in the screen shot.
    But the Bookmarks panel and page and window controls are not appearing while I open the PDF? any suggestions?
    I am using windows XP service pack3 Acrobat 9
    Thanks in advance
    Regards
    a r u l

    The Bookmark Panel to the left of the pdf is not displaying - I have checked everything (and double checked under preferences to ensure that under Documents > Open Settings > Restore last view settings when reopening documents is Not checked.)
    Have reinstalled Acrobat and still am having issues. The only thing I did was open AcrobatLive and converted a doc to a fillable form - I am getting error messages with that now as well.

  • Indesign CS6 8.0.1 control panel and context menus off (disabled)

    indesign 8.0.1 build 406, build 401
    more than 10 istallations Apple intel i5 OSX 10.6.8 and 10.7
    Problem
    Often runtime, the control panel and context menus are disabled (e.g.: trasformation Values, rotation, shear angle, character and paragraph formattingt control (track, kern), fx, colors.
    All documents are created in CS6 or converted from CS5 templates (After the opening in CS6 files are exported IDML file exported).
    What we have done to try and fix the problem:
    Reinstal InDesign - No effect
    Cleared the preferences (shift + ctrl + alt + apples key on InDesign startup) - Works but is not conclusive.
    Helps?
    Thanks
    Best Regard
    Filippo M

    Do a system restore to last Thursday....

  • Just reinstalled acrobat 9 extended pro. cannot print to attached printer. brings up window to chose printer. just won't print. actually locks up. have to bring up cntrol panel and shut down operations.

    Somehow files in Acrobat were corrupted. had to have cmputer guy delete those before reinstall. reinstalled. I can create a pdf and email it but cannot print to printer.  what to do.
    Jeff Elliott

    Hi Jeff,
    Are you having this issue with selected pdf files or with any file that you try to print?
    Are you able to print document using any other program?
    What exactly happens when you click to 'Print'.
    and please let me know what did you meant by "have to bring up cntrol panel and shut down operations."
    Regards,
    Rahul

  • Firefox often hags with an error message somethng like_Script not complete or still running._I cannot uninstall Firefox with the uninstall program routine inthe control panel and the Mozilla uninstall helper.exe will not run either. How do I uninstall Fi

    Firefox hangs with an error message something like - Script not complete or still running.
    I cannot uninstall Firefox with the uninstall program routine in the Control Panel and the Mozilla uninstall helper.exe program will not run either. How do I completely uninstall Firefox so I can make a clean reload?
    == This happened ==
    Every time Firefox opened
    == Not sure but I think it was after the update

    Thanks for the reply.
    I am very new to these forums (or is it fora?).
    I didn't know there was a Tomcat forum.
    How to I find it.
    Ta much & best regards,
    Pete

  • My Muse compositions, panels and slideshows dosen't work (preview).

    Hi!
    What's wrong? I didn't have any problems with muse earlier... older version and older Win XP.
    Now I have the latest version of Muse and Win8.
    My compositions, panels and slideshows dosen't work when I try to preview designt site in browser.
    Is something missing on my computer? Or what's wrong?
    Regards from Finland!
    -Nanna

    Hello,
    Please provide us with the site URL and if possible, screenshots showing the exact issues.
    Cheers
    Parikshit

  • Windows server 2008 can't access control panel and can't choose "properties" under "my computer"

    Hello everyone!
    Today after a schedule restart on the night I thought everything was normal with my server. But When i go to "start -> control panel" it show me "empty". And if I try to lunch "change/remove software" via search window in
    "start" then nothing happen. 
    I know also that I can't right click on "computer" and choose "properties" in the start-menu. 
    Also another problem. I did install Fbackup to make schedule file backups on the night. The software worked well to launch when I had installed it, but after the night, this morning it just crash on launch.
    I can also tell that I did add from 4 CPU core to 6 CPU cores.

    Hi,
    Have you tried to see if the issue persists when you boot into Safe Mode? Since you it shows blank when accessing Control Panel, please check if the policy setting below has been
    configured.
    Please choose Start – Run - type (gpedit.msc) - click on (Administrative Templates) - (control Panel) -
    Prohibit access to Control Panel and Show only specified Control Panel applets. If they were configured, please disable them to see if it could resolve the issue.
    In addition, the issue may also be caused by the virus, please run a system scan to see if there is any virus. At this time, you can also launch Control Panel apps from the command
    line, and here's a list of .cpl files for your reference that you can print out:
    Accessibility Options
    access.cpl
    Add/Remove Programs
    appwiz.cpl
    Add Hardware Wizard
    hdwwiz.cpl
    Automatic Updates
    wuaucpl.cpl
    Bluetooth Properties
    bthprops.cpl
    Display Properties
    desk.cpl
    Firewall Properties
    firewall.cpl
    Game Controllers
    joy.cpl
    Internet Options
    inetcpl.cpl
    iSCSI Initiator
    iscsicpl.cpl
    Java Control Panel
    jpicpl32.cpl
    Licensing Mode
    liccpa.cpl
    Mouse Properties
    main.cpl
    Network Connections
    ncpa.cpl
    Network Setup Wizard
    netsetup.cpl
    ODBC Properties
    odbccp32.cpl
    Power Options
    powercfg.cpl
    Regional and Language Options
    intl.cpl
    Sound and Audio Devices
    mmsys.cpl
    Stored Passwords
    keymgr.cpl
    System Properties
    sysdm.cpl
    Telephone and Modem Properties
    telephon.cpl
    Time and Date Settings
    timedate.cpl
    User Accounts
    nusrmgr.cpl
    Windows Security Center
    wscui.cpl
    Wireless Link
    irprops.cpl
    Hope this helps.
    Regards,
    Andy Qi
    Andy Qi
    TechNet Community Support

  • FORMS IN go daddy - email forms, anyone know whats happening with c-panel and adobe email forms...

    FORMS IN go daddy - email forms, anyone know whats happening with c-panel and adobe email forms...

    Hi,
    Can you please provide the URL of your website ?  And also the email address to which you are trying to send the form.
    Regards,
    Rohit Nair

  • Panel and Canvas

    Hi all,
    I am working on a maintenance project.
    in this project,the programmers have used Canvas.
    But i want to use panel.
    Is there any difference between Panel and canvas.
    Regards,
    Tapas

    Panel is a container (and may contain subcomponents).
    Cnavas is a simple drawing surface component.
    Ragnvald Barth
    Software enigneerhttp://blake.prohosting.com/ragnvald

  • Loss of Tools Panel and Options Panel.

    I have lost my Tools Panel and my Options Panel on my screen.   I have toggled with the F key but this still does not bring it up, same with the TAB key.  Please can you help?

    Good day!
    Please check
    Window > Tools
    Window > Options
    Regards,
    Pfaffenbichler

  • Remote Panel and Internet Explorer

    Hello. I have a problem with a Remote Panel and Internet Explorer. I create a measurement system in LabVIEW. It�s composed of a main front panel and a few subVIs with independent front panels opened from main Front Panel when I press appropriate button. As a local system everything works ok but I try to create a web version of this system. I decide that I can use a Remote Panel. In Web Publishing Tool I was creating a web page for each of Front Panel. I try to have the same functionality as in local system, so when in Front Panel (opened in Internet Explorer window) I press appropriate button I want to open secondary Internet Explorer window with a subVI inside. And now I�m stuck because I can�t open this secondary window in a network w
    orkstation. Has anyone have an idea how can I do it?

    > Hello. I have a problem with a Remote Panel and Internet Explorer. I
    > create a measurement system in LabVIEW. It?s composed of a main front
    > panel and a few subVIs with independent front panels opened from main
    > Front Panel when I press appropriate button.
    I think you have two options. You can open most modal subVI panels
    directly on a remote machine. The popup panels won't be in a web page,
    but it will work with few changes.
    A second approach would be to change the app slightly. The buttons that
    launch the subVIs will turn into URL links. The links will open a web
    page with a different embedded panel.
    Greg McKaskle

  • The "always allow" button is grayed out in settings regarding cookies, and I can not find where to change the setting.  (Restrictions are not on.)

    The "always allow" button is grayed out in settings regarding cookies, and I can not find where to change the setting.  (Restrictions are not on.)  Do you know where I go to change the setting to allow me to "always allow" cookies?

    Hi lisaarnett111,
    If you are having issues turning on Always Allow for cookies in Safari on your iPad, you may want to check to make sure that you don't have Private Browsing enabled, as noted in the following article:
    Turn Private Browsing on or off on your iPhone, iPad, or iPod touch - Apple Support
    Regards,
    - Brenden

  • Question regarding Vista and Touch

    We have two computers, one with XP and one with VISTA. I would like to move the itunes library to my computer with VISTA since it is newer and faster. I know the touch isn't compatible with the VISTA 64 bit processor. Ok..now don't laugh. When it comes to computers and what it has on it, I'm probably not the brightest crayon in the box, but I do try! LOL
    My question is, how do I find out what processor this VISTA has? Is it in the control panel? There has to be somewhere with the specs.
    Thanks for any help..and please be gentle!

    It's not the processor but the version of Vista u have to worry about. The 64 bit version of Vista has a problem with the iTouch. I don't have Vista but I think if u go to Control panel and click on system then you can find out what version of Vista u are running. It should either be 32 bit or 64 bit.

Maybe you are looking for

  • How do I find my copied files in iTunes music folder in library?

    I've got a very large iTunes library and tell where my copied music files are in my iTunes folder. How can I tell the original from the copy? Are they in seperate folders, within a folder, how can I tell within my insane library what's what? Don't wa

  • How to add drive space from one drive to another drive in Solaris 10

    This is something I have never done in Solaris. I have a mounted drive (UFS) with a dir being used for a samba share. The dir is near full. I have another drive right beside it that is empty. 1. How can I add the drive space from the empty drive to t

  • How to get the erroe message, if i run java program using .bat file

    Hi, I have a java file which accepts two inputs as command line argument. I want to make this pgm a tool. So have created a *.bat file which has the following command java myprogram arg1 arg2 I'm gonna share this program with others. So i'll keep the

  • Duplicate camera RAW Files

    Two questions. Is the any way to tell which version of camera RAW is installed other than looking at the "calibrate" tab. My "calibrate" tab shows ACR 3.6 but I am fairly sure that I have 3.7 installed as on the "adjust" tab, Auto/Default controls ar

  • Possible to do 'auto-tone' manually?

    I'm going to try and put an example as part of my question because I'm not sure how to explain it otherwise. While editing two very similar photos and using the CS6 auto-tone command, one of the photos photoshop was able to truly fix up while the oth