LoginContext with a GUI application

Where would I put the LoginContext for a GUI application? If I were to put it into the same class as the main window, then other windows wouldn't be able to get a Subject from it to perform some PrivilegedAction using Subject.doAsPrivileged. Any Ideas ?

IPF studied in little chunks is really easy to manipulate.
Fortunately there is a doc that splits up IPF into little chunks with each new chunk building on all of the old chunks.
http://www.obfuscation.org/ipf/ipf-howto.txt
Then all you need to do is to create /etc/ipf/ipf.conf
and
svcadm enable ipfilter
alan

Similar Messages

  • Solaris 10 Firewall configuration with a GUI application

    Hello,
    I am quite a novice regarding Solaris.
    I have searched for hours on the web for a safe GUI application with which I can configure the
    firewall on Solaris 10 05/2009 in order to surf the Internet. Unfortunately I have not found one but
    lots of instructions instead on how to modify various config file setting, which I do not understand.
    My Solaris books are also of no help.
    Is there a precompiled GUI tool available similar to the one shipped with OpenSUSE's yast ?
    I think such a tool would make Solaris much more attractive for non-sysadmins - also because of
    its excellent hardware support that is superior to Linux.
    Thank you,
    Alexander

    IPF studied in little chunks is really easy to manipulate.
    Fortunately there is a doc that splits up IPF into little chunks with each new chunk building on all of the old chunks.
    http://www.obfuscation.org/ipf/ipf-howto.txt
    Then all you need to do is to create /etc/ipf/ipf.conf
    and
    svcadm enable ipfilter
    alan

  • Embed labview generated code with c++ gui application

    Hey everyone ,
      I am very new to labview and trying to learn it  ... but before that i wanted to make sure a doubt which i have in my mind , the problem is that i have a realtime GUI application built on c++ widgets and i want to change the existing DSP block in this application with the code generated by using the LABVIEW , i am sorry that have very
    less amount of knowledge regarding labview so i turn up with thread ... So can generate c++ code for the DSP blocks designed in labview ... if yes how and if not why . Any
    sincere help will be appreciated . And I very much apologise for any mistakes in my question .
    Thanks

    Tonph wrote:
    Thanks rolf, is it possible that i use labview to disign my DSP block only and the output be fed to my custom c++ blocks and also wxwidget GUI ... suggest some means thanks ...
    Well, have you followed the link I gave in my post? You can download an evaluation version of the add-on and try it out in LabVIEW. It generates C code, not C++, but that should be no problem, since it is very easy to call C code from a C++ application. I can't vouch for the suitability of this add-on for you, nor do I know the exact price range so that are certainly things you have to do for your own.
    As to nathans solution, that could work too. If your application is for Windows, or MacOS X, or Linux you can create a shared library from your LabVIEW code and call it as such from your C++ application.
    Personally I would find it a rather roundabout way to include LabVIEW generated code in a wxWidget application. One of the strengths of LabVIEW is not only signal acquisition and analysis but also simple GUI design, at least as long as you are after a functional GUI, and not a very specific style of a GUI. So I would never even consider to do the GUI part with anything but LabVIEW if some other parts are already to be done in LabVIEW.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Problems with port 6000 from my GUI application

    Hi,
    I have a GUI application that try to open a Corba connection with a server on a dedicated port, but when I put my port to 6000 and launch my GUI application it will try eternally to open the Corba connection and blocks. I think that the 6000 port is used by X11 that is listning , is there any solution to disable the listning of X11 server on 6000 port.
    Regards,

    Well, you shouldn't technically be using Port 6000-6063. They are registered to X11. See http://www.iana.org/assignments/port-numbers.
    A similar port conflict exists with the Oracle Distrubted Lock Manager and X11 on Sun Cluster
    environments (and probably VCS as well). Someone at Oracle got silly and used ports 6000-6031 for
    the UDLM . 6000 is registered to X11 - Don't use it.
    But that's not answering your question.
    cd /etc/rc2.d/
    sh S99dtlogin stop
    mv S99dtlogin .NOS99dtlogin
    That should take care of stopping X11 from starting at boot time.

  • Gui application slow with JWS but fast without

    I've created and generated a GUI application into a jar file. Starting the application via
    the java web start gives me a very poor performance. However starting the GUI
    application by double clicking on the downloaded jar file works very smoothly and fast.
    I don't want to lose the JWS options of automatic downloads of updated applications etc.,
    any ideas of how to solve this problem?
    Thanks in advance.

    I saw that suggestion when I did a search on problems like this.
    It used to go fast, but for some unknown reason, it slowed down w/ CPU maxed at 100% a few weeks ago. The user swears nothing changed.
    As for 1.4.1RC1, all I can tell you is I installed the english JRE, then tried the international JRE, then the international SDK for 1.4.1RC1 for Windows. I even uninstalled JRE 1.3.1_04 before that and also uninstalled before each install. In none of the installs did Java Web Start get installed on the desktop. I did a File Find using Windows for "javaws.exe" and it was not on any local drive. It's almost as if the JWS installer was not run automatically during the install process because I didn't see it pop up.
    There are no disk space issues. This user is running Win2K and had 18GB (yes, gigabytes) free on his laptop.

  • Java AWT/Swing coexisting with native Qt application

    Hi,
    I'm trying to figure out how to get a GUI application written in Java to work in a native Qt application by embedding the Java application in the Qt application.
    Any suggestions on how to do this...

    It requires creating a system window (possibly frameless) using a native API calls (e.g. WinAPI or Xlib). That window might be embedded in your application. You would have to send system messages to that window (WM_XXXXX on Windows and XEvent's on X).
    For more information I suggest you to look at KDE sources where it is implemented for X Window (there is also a Java package, kjas which is a server for running applets in Konqueror.
    Or if you have much time you could write AWT on top of Qt (there is one built with Gtk+) and give the JVM your classes instead of the original JDK.
    The choice is yours. Happy Qt-ing!

  • Running a GUI application without holding command prompt

    Hi there ,
    I have developed a GUI application using Swing. After compiling the same successfully , when I run the same , presently , I am running it like ,
    c:\> java xxx
    where c:\ is the general command prompt on a Windows machine where I can type in my commands like javac or java and xxx is the class file name . Now till I complete using my GUI application and exit from the same , the command prompt will also be there ( and probably displaying the output of my System.out.println ) . So , two sessions are running , one is just the command prompt and another is the actual GUI application.
    How can I avoide this ? e.g. when I type command "notepad" and press enter , notepad is started and the command prompt returns after starting notepad i.e. the notepad and the command prompt are not related now , I can close the command intrepreter and still notepad is running . What should I do to create such a Java GUI application ? Please advice .

    If I understand you correctly this is something that happens in linux also. And I believe that you can solve this by creating to shortcut to this program.
    And the shortcut or link to application will be the command line that you use to run the Java Application.
    i.e.
    java c:\javadir\subjavadir\application.class
    And I believe that this will allow it to run without the command prompt. Just showing the GUI and no additional command prompt window. Freeing the command prompt is something that I don't know how to do in either OS.
    I use the Link To Application method because I ultimately don't need to have multiple windows for one application. Even though it is nice to be able to kill the Application by destroying the command-prompt session (in case your app causes lock-ups during testing).
    Post your results . . . I'm not even sure that I'm being clear at all with my explanation to your question.

  • [CUPS] GUI applications stuck on print command

    I have a running CUPS server on this machine (a bridged VBox VM, if somebody cares), from which I'm writing.
    I also have an amd64 arch box in the other room, which has an USB printer plugged in (with cups-usblp from aur), and everything works fine, if I try to print locally from the arch box it works, and also I can print through IPP from windows boxes.
    But I can't print anymore from this arch box; cups is up and running, and with the right drivers (I managed to print two weeks ago), and is configure to print through the other machine CUPS server (all permissions are correctly set).
    Every GUI application freezes for a really long time after pressing "print", and only a kill signal can close them.
    Any ideas? Looks quite weird.

    Did you by any chance create an evironment.plist file? It is located in ~/.MacOSX/ If you don't know about it or don't know to look (.MacOSX is normally invisible), try this:
    In Finder.app, in the "Go" menu select "Go to Folder..." (shift-command-G), type ~/MacOSX in the text field and hit OK, the finder should then open a window or complain.
    If it opens a window and you find in it a file named environment.plist move that file to the desktop and try your applications. Do they work as advertized? Try again after logging in/out if things don't work. Do they work now?
    Whatever hapens, tell us more...

  • Query on rendering the Human Tasks in the customized GUI application.

    Hi All,
    In oracle11g BPEL, Is there any way to render the Human Tasks in the Customized GUI (Weblogic Portal) application rather that using the applications like "Oracle BPM WorkList"?. Does the Oracle11g BPEL supports this ?. My requirement is that, i need to render the Human tasks inside my own GUI application. I do not want to allow the end user of my application to use the other GUI applications like Work List to wotk up on the human tasks. Instead of this, User must be able to access and work up on the BPEL human tasks through my Customized GUI (Weblogic Portal) application. Is there any way in Oracle11g BPEL to achieve the required functionality?.
    Edited by: user538948 on Sep 2, 2012 11:03 PM
    Edited by: user538948 on Sep 5, 2012 2:04 AM

    Hi Naga
    http://docs.oracle.com/cd/E14571_01/apirefs.1111/e10660/toc.htm
    1. I would not recommend using APIs unless and otherwise if you do not have any other option. You can always create the TaskForms in your own custom pages using out of box generated bindings for each .TASK file. This gives more flexibility. There are lots of stuff associated with a Task apart from your own custom payload like full Task details, system attributes, headers, history, comments/attachments etc. You do not want to use APIs to get all these.
    The below 2 links should give you an overview of overall architecture of a Workflow and TaskForms.
    Re: Integrating BPM taskflows into an ADF application
    Re: deploying a large Oracle BPM Application with multiple UI projects
    Re: What exactly 'PAYLOAD' Means???
    Once you have basics covered, refer oracle docs also that shows how to reuse a single project.
    Thanks
    Ravi Jegga

  • A calculation intensive GUI application

    Hi all,
    I am developing a GUI application that involves drawing of a graph layout, with nodes and links..
    i get through the graph drawing part and I lay out the nodes and edges correctly. My real concerns are adding the user interactions to this graph drawing.
    I want to allow the user to drag nodes around the panel, be able to track which node they are visiting or which edge the mouse is currently present on. Also on selecting a particular node I wish that all the others are drawn in gray.
    My thoughts are to provide the user with a toolbar, that will have buttons for each of the interaction possible, Hide, Gray, Reorder, etc.. also I need to locate where the mouse pointer is. So for that I provide a panel and as the mouse moves over each line, i populate a label in one of the bottom panels.
    I am presently locating that the mouse is on a particular edge / node by simply iterating through the vector and using a contains (Point p ) test. But this is really intensive as my application has 1000s of edges. So everytime the mouse moves, I have to check for most of them to determine which node/edge is the mouse over.
    I have to do the same computations when the mouse is clicked as i will be selected a particular node/edge on a mouse click.
    Will the command pattern be helpful in my case, I can represent each of the interactions as a command?
    How can I make my application efficient and not check through the entire 1000s of elements to determine where the mouse is ? ( i do break out once i find a match but that is still ridiculous)
    Will SwingInvoker be of any help ? I do need the return value so dispatching the event to a separate thread might not really help as I have to wait for the computation to complete..
    lastly are there classic tutorials / design pattern examples for such applications where there is a lot of interactivity with the drawn components?
    Thanks in advance...

    Your greatest asset in this situation is probably going to be the LabVIEW examples. Go to the help menu, look for the examples, and just start searching. You may have to look at a few examples to find all of the elements you need.
    Once you have gone through those, just post here if you have any more questions.

  • How to make GUI application run fast and use less memory?

    Hi, there,
    My GUI application have:
    Menu, toolbar, filechooser, JTable, and log panel.(There is not much file io operation)
    When I run it in my machine, it is so slow, and if I run several times, close it after each run, it will run out of my memory. I am using PII266MMX, 256RAM. (When I run another software, such as flashfxp, GUI of which is more complicated than mine, however it is far faster than mine, but I don't think it is written in JAVA), Is JAVA's GUI desktop application not fast?
    Regardless hardware factors, what should I pay attention to writing an efficient GUI application?
    Can anybody give some advice?
    Thanks a lot, thanks .....

    Thank you, Denis.
    I can run several times of this applicaiton in another machine: PIII866, 256M RAM (windows 2000). I didn't encounter the memory problem, I can open serveral windows of it with that machine.
    Why I met this problem in this old machine, I alway get memory not enough problem.(this old machine comes with Win98). Both of machines have same memory(256M).
    Could you please give me some hint?
    Thanks,
    Sitai

  • How to make simple GUI application that use oracle 9i intermedia

    Mr Lawrence,
    i want to make a GUI application for storing and retrieving image data, can i build this application using delphi?
    i try using borland delphi 7, but delphi doesnt know object type ORDImage and ORDImageSignature. do u have any reference about building GUI application??
    I want my application can do inserting image into database, searching image by matching it's signature, make image signature for query image, displaying image, etc.
    Or if i can't make this application using delphi, maybe u can give me another application developer beside Delphi.
    Please help Mr Lawrence, i'm stuck (T_T)

    I am not too familiar with Delphi.
    If it does Object-Relational types, that could work.
    Can it interface with PL/SQL procedures? If so, that would be the way to go.
    That is what I have done with .NET applications.
    Larry

  • What best way to create a simple DB based GUI application

    Hi
    I want to develop a small home-use DB GUI application. My questions relate to the GUI:
    1. If I want a main window to be a form containing mainly several text fileds (with labels attached) and a search button - what best layout manager would you reccomend?
    2. For good-practice programming I want to seperate my backend layer from the UI layer. Is there a good design pattern on how to do so?
    Thanks

    what best layout manager would you reccomend?Use a combination of Layout Managers to get the job done. See some example from the Swing tutorial on "Using Layout Managers":
    http://java.sun.com/docs/books/tutorial/uiswing/layout/visual.html

  • Need advice in writing forum component for a GUI application

    Hello,
    I need to write a forum component for a GUI application, that is a visual component that would have all the usual forum functionality - creating threads, posting replies, editing, logging in, etc. I'm planning to use some existing forum engine on a JBoss/Tomcat server. So I do not need a web-interface for a forum, but I need find some engine written in java with a clear interface that I could use in my app. I tried JForum (http://www.jforum.net) first, but it seems it doesn't have open API I could utilize.
    Could anyone please suggest appropriate engine, possibly anyone knows of open-source forum GUI apps I can look at?

    Google? You've never heard of Google? Seriously? Did you just get Internet access yesterday?
    http://www.google.com

  • Distribute GUI Application

    Hi
    I have made a GUI application on an IDE (DR JAVA).
    I need to send it to a friend. How do i send it to him?
    What do i have to do with the .class file?
    Thank You.

    your jar needs a META-INF/manifest.mf file with the following line:
    Main-Class: your.package.class
    where your.package.class is replaced by the class that has the main(). Similarly, this file can contain a line:
    Class-Path: jar1.jar jar2.jar etc.
    to define the classpath of your jarred application (the -cp parameter does nothing when you execute a jar).
    For easy jar building and automatic manifest generation, I suggest looking into ANT. Once you get to grips with it, it can save you a lot of time.

Maybe you are looking for

  • Where can I get an eMac install DVD from?

    I've just been given an eMac that was destined for the skip. It came with no install DVD's and the administrator password is unknown. Whoever cleaned it out before parting company with it put in an administrators name as "apple" but didn't clear the

  • Commenting features slowing Acrobat 9.0.3 to a crawl

    I was wrong in my previous thread about Adobe Updater being the culprit for the horrendous slowdowns in Acrobat Pro 9.0.2.  Updater.acroplugin is not the problem. Apparently, the commenting feature of Acrobat is what grinds it to a halt. If I disable

  • Why after updating my ipad to ios 7 couldn't connect to my wifi only?

    why my ipad couldn't connect to my wifi after updating to ios7 and how to solve this?

  • Import AppBuilder project into Eclipse for Android

    Hello,   I am trying to take an application developed in AppBuilder and load it into Eclipse.  How is this done?  I cannot find any resources explaining how to do this.  The goal is to deploy an application to an android tablet.  I have the developme

  • Query Running Slow due to nvl.

    I have a Cursor Based query written as a Procedure.when i invoke that procedure,I found that two condition statements are the ones which is making my query run very slow. Since this has been handled with NVL statements query is running very slow.Curr