I want the gui of the java be like windows

hi
i have already frame i made it by drag and drop and when i make design preview , it's be like windows in the shape of the buttons , frames and tool bar
but when i make run to the code .it appear by default view .. how when i make run .. the gui be like the windows

i want more help .. ...please indicate spoon size

Similar Messages

  • How can i use the gui of the operating system

    hi
    i am working with the gui and i want to ask how can the gui of the java be like the operating system..
    ex : i want the buttons and the frame be like the windows xp .. not appear as default..

    i read the UIManager and i found more methods that getting the font the dimension but i want that when i drag and drop the code already inherent the gui (the shape of the buttons , frame and tool bar from the operating system)
    ex : i working with windows xp, i want the shape of the gui of the frame that i drag and drop it be like the gui of xp)

  • On OSX Lion i used to drag the window to the top of the screen and get maximise, and drag the window right or left to show the both beside each other just like windows 7, How to do it on Mountain lion ?

    On OSX Lion i used to drag the window to the top of the screen and get it maximise, and drag the window right or left to show the both beside each other just like windows 7, How to do it on Mountain lion ?

    That has never been a feature of Mac OS X, but I believe there was some kind of third-party software that could add that capability.  i don't recall what its name is, but you must have had that installed, and it either isn't installed anymore (perhaps removed as incompatible?) or is not working properly in Mountain Lion.

  • How do i monitor performance in the system of a Java program in Windows XP?

    I want to record the CPU usage and Memory usage on an hourly basis programatically, for an already running java class in Windows XP environment for the purpose of testing the Java class. The recording has to be done independent of the java class.By Cpu usage and Memory usage , i need to know how much of the computer's memory and CPU has been used by the java class.
    I tried the HPROF tool available with J2SE 5.0, but it gives the details of each of the functions' usage in the program's allocated space in memory. moreover, it is not independent of the execution of the class.
    The other option is to make use of the Performance tool available in Windows Xp->Administrative tools. This is a complex procedure, and i am not sure of how to proceed in this direction.

    You can use the windows performance monitor (perfmon.exe / perfmon.msc). I don't know wther it is also included in the XP Home Edition. But this is the tool you are looking for. It can display the information in realtime but also can write to a protocoll.
    Here's a shor description of what to do (i have a german windows so i'm more or less guessing the english terms)
    - Start perfmon.msc
    - In the tree on the you can see "systemonitor" (the realtime display) and "performance protocolls and warnings"
    - open "performance protocalls and warnings", the first sub element should be something like"performance protocalls" or "performance indicator"
    - open the context menu for it and create a new protocoll settings.
    - add the information to it you are interested in and make other changes if you want
    - start the new configuration
    once you have the information you can display it it in the systemmonitor by selecting "display information from protocal" from the toolbar
    It will take some time till you know what you are doing (and most of the information the performance monitor is useless to 99% of the people). But its a quite usfull tool once you know how to use it

  • How to see the  GUI of the guest os ?

    Hello all,
    I have installed the oracle linux 5 as the guest OS using the PVM template.
    I can access the the guest console using the vm manager / vncviewer, but its just the console.
    1]What should i do, if i want the GUI (x server). (In /etc/inittab, its 5.) ?
    TIA,
    JJ

    The PVM guest templates that are provided by Oracle do not have the full X system installed, so even though inittab is set to 5, the GUI will not start. You would need to install the GNOME Desktop group before the GUI will work.
    However, once you do have it installed, or if you do a manual installation of OEL5 from a DVD, the VNC viewer will show you the GUI.

  • Hiding the GUI to system tray or background

    I want to write an alarm scheduler GUI which will continuously run on the system, both Windows and Mac. Here are the tasks I need to accomplish:
    1) When the user clicks on the close window or "X" sign, I simply want to minimize the gui to sys tray in case of Windows, or push it to background in case of Mac (somehow hide the GUI from the screen in both cases).
    2) Another requirement is that if the user starts the program from desktop by clicking on an icon, the program should check to see if an instance of itself is already running, and if so, load the running instance. And what i mean by that is to bring the GUI back to screen. If the program is not already running, start a brand new instance of it.
    Any help would be much appreciated.

    Don't cross post , please!
    Answered here: http://forum.java.sun.com/thread.jspa?threadID=5167315

  • Setting multiple text dynamically on the GUI

    HI,
    I have this function which computes the position record of 6 requests. ( ie x,y,dx,dy--these are the position records for a request)
    I want to display these position records in a textfield, which i have in my GUI, as soon as i press the "positionrecord" button.
    I am able to print the position records for all 6 requests on the console(of eclipse), but on the GUI only the position record of the 6th request is getting displayed in the textfield.
    I have been advised by mny to use paint() and repaint() functions for this but no one has been able to give me a concrete solution as yet.
    I also need to produce a delay of 1 sec between the position record being displayed in the textfield on the GUI, for which I have used a delay function. THE ONLY PROBLEM IS I AM NOT ABLE TO DISPLAY THE POSITION RECORDS FOR ALL THE 6 REQUESTS ON THE GUI DYNAMICALLY.
    Please can anyone help me on this.
    I have posted part of my code below. I have put the paint function also but i am not at all sure if it is correct.
    Thanks in advance.
    warm regards---
    public void paint() {
    Graphics g= null;
    PosRecord prec=requestGenerator.getNextRecord();
    Graphics2D g2 = (Graphics2D)g;
    double x = 15, y = 50, w = 70, h = 70;
    SidePanel.PositionRecc.setText(prec.toString());
    MainFrame.mapPanel.repaint();
    Ellipse2D e = new Ellipse2D.Double(x, y, w, h);
    GradientPaint gp = new GradientPaint(75, 75, Color.white,
    95, 95, Color.gray, true);
    e.setFrame(x 200, y, w, h);
    System.out.println("inside paint function");
    if(buffer != null)
    bgraphics = buffer.getGraphics();
    Graphics2D g2d = (Graphics2D) bgraphics;
    if (request.getId()==100) {
    System.out.println("Anonmized for message of node id " request.getId() );
    System.out.println("Grid Cells: "); //request.getId()
    for (int i = 0; i < orequests.size(); i++) {
    SidePanel.PositionRecc.setText(request.toString());
    paint();
    SidePanel.PositionRecc.isOpaque();
    System.out.println("NEW");
    isVisible();
    //MainFrame.mapPanel.repaint();
    try
    Thread.sleep(100);
    catch(InterruptedException e)
    //e.printStackTrace();
    //super.update(g);
    SidePanel.PositionRecc.setText(request.toString());
    MainFrame.mapPanel.repaint();
    // TraceGenerator.SidePanel.PositionRecc.setText(request.toString());
    System.out.print("NEW1 " + orequests.get(i));
    }

    I had posted it on the wrong forumAnd you still posted in the wrong forum. In the future, Swing related questions should be posted in the Swing form.
    The problem is you are blocking the EDT. Read the section from the Swing tutorial on Concurrency for an explanation about what this is and how it works.
    I also need to produce a delay of 1 sec between the position record being displayed in the textfieldThe solution is to use a Swing Timer. The code will be executed on the EDT so it will work just as you want. The Swing tutorial also has a section on "How to Use Timers".

  • Updating the GUI from a background Thread: Platform.Runlater() Vs Tasks

    Hi Everyone,
    Hereby I would like to ask if anyone can enlighten me on the best practice for concurency with JAVAFX2. More precisely, if one has to update a Gui from a background Thread what should be the appropriate approach.
    I further explain my though:
    I have window with a text box in it and i receive some message on my network on the background, hence i want to update the scrolling textbox of my window with the incoming message. In that scenario what is the best appraoch.
    1- Shall i implement my my message receiver as thread in which i would then use a platform.RunLater() ?
    2- Or shall i use a Task ? In that case, which public property of the task shall take the message that i receive ? Are property of the task only those already defined, or any public property defined in subclass can be used to be binded in the graphical thread ?
    In general i would like to understand, what is the logic behind each method ?
    My understanding here, is that task property are only meant to update the gui with respect to the status of the task. However updating the Gui about information of change that have occured on the data model, requires Platform.RunLater to be used.
    Edited by: 987669 on Feb 12, 2013 12:12 PM

    Shall i implement my my message receiver as thread in which i would then use a platform.RunLater() ?Yes.
    Or shall i use a Task ?No.
    what is the logic behind each method?A general rule of thumb:
    a) If the operation is initiated by the client (e.g. fetch data from a server), use a Task for a one-off process (or a Service for a repeated process):
    - the extra facilities of a Task such as easier implementation of thread safety, work done and message properties, etc. are usually needed in this case.
    b) If the operation is initiated by the server (e.g. push data to the client), use Platform.runLater:
    - spin up a standard thread to listen for data (your network communication library will probably do this anyway) and to communicate results back to your UI.
    - likely you don't need the additional overhead and facilities of a Task in this case.
    Tasks and Platform.runLater are not mutually exclusive. For example if you want to update your GUI based on a partial result from an in-process task, then you can create the task and in the Task's call method, use a Platform.runLater to update the GUI as the task is executing. That's kind of a more advanced use-case and is documented in the Task documentation as "A Task Which Returns Partial Results" http://docs.oracle.com/javafx/2/api/javafx/concurrent/Task.html

  • How do I show the gui from a dll?

    I have created a .dll in C# and want to implement that in LabView. The backend code of the .dll works fine, but it also has a progress bar as the user interface which labview does not show it. What should I do to show the GUI of the DLL in LabView as well?
    Thanks
    Solved!
    Go to Solution.

    Never mind! I figured it out myself! on the Panel, right click > .Net and Active X > Insert .Net Container...

  • Getting the GUI to access and use changed variables

    Hi,
    I'm trying to implement a GUI which when you click the new button, a new Jframe appears on screen. The user then selects an item from a list and clicks ok. The item they select is then used as an argument to call a method from the system class. The problem is when I run the program, the GUI gets the values of the variables from the system class, before the new button and the item are selected. How can I make the Gui get the new values.?? Any help would be great as its doing my head in,
    cheers

    The problem is when I run the program, the GUI gets the values of the
    variables from the system class, before the new button and the item are selected. No idea what you are talking about.
    If you need further help then you need to create a [url http://homepage1.nifty.com/algafield/sscce.html]Short, Self Contained, Compilable and Executable, Example Program (SSCCE) that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.
    And don't forget to use the [url http://forum.java.sun.com/help.jspa?sec=formatting]Code Formatting Tags so the code retains its original formatting.

  • 3750G - cannot access GUI on the wireless controller

    I am not able to access the GUI of the wireless controller - If I console into the wireless controller I can ping the management IP address but if I console into the switch I cannot ping the wireless controller.
    I think someone may have screwed up the configuration files - is there somewhere I can download the "factory" configuration from?

    To recovery to factory default, you will need to be on the console of the controller, and reboot. Once you are at the user login prompt you can login with recover-config, this will reset the controller to factory defaults. Prior to doing that, hit the CLI from the console port, and issue the command show interface summary. Take a look at the VLAN assigned to the management interface. Then take a look at the switch, and look at Port-Channel 40, should be there by default fo for the port channel to the controller. Want you want to check for is, the native VLAN on the port-channel. This is a dot1q trunk, so if they are tagged the same on both sides traffic will get dropped. For example, if you are using 10.20.1.2/24 for the management interface and this is VLAN 20, then on the port channel you should have switchport trunk native vlan 20, and on the controllers management interface you would want to set the VLAN for 0, untagged. If you need to change this from the CLI of the controller, first issue the command config wlan disable 1, to shutdown the first wlan, then issue the command config interface vlan management 0, this will set the management interface to be untagged. Once you have done this, try to access the GUI again. Once in, you can make the same change to the ap-manager, if it is on the same VLAn as the management.
    Steve

  • How to find bpel instance in 11g based on the index values using Java APIs

    Hi ,
    In SOA10G we had option to find the instances based on the index value using Java APIs like below.
    WhereCondition criteria= new WhereCondition(SQLDefs.CX_index_1 + " = ?");
    criteria.setString(1, "indexValue");
    Locator mLoc = getLocator();
    IInstanceHandle[] foundInstances = mLoc.listInstancesByIndex(criteria);
    Please tell me how to achieve the same functionality in SOA 11G using Java APIs
    Regards,
    Saba

    I have multiple bpel in my composite. I checked in ci_indexes table and it shows the instance number of the bpel process. But the em console is showing only the composite instance number. when I opened composite instance, I could see all the bpel process with instance number in the audit trail. How can I find the the actual composite instance number that I should search for in the em console ???

  • Italian keyboard doesn't work under the gui

    I have an italian keyboard on a x86 Solaris 10 installation.
    All the patch available using Sun Update applied but the keyboard doesn't work, it still works only as a USA keyboard.
    Forcing it as a Italian layout at startup (pressing esc and using the boot utility) make the keyboard work in the consolle with the correct layout but under the gui, after the dtlogin startup, the key doesn't work correctly. Every key is "shifted" of one position, so inserting "root" result in "eiir"
    Even applyng the 118966-08 patch as suggested doesn't work.
    Obiouvsly I used the gnome panel to set the correct keyboard under gnome but with no result
    Both the two type of italian keyboards don't work, the standard one and the 104 "ibm" italian layout.
    All this keyboards work fine on the same PC with both WindowsXP and Linux Ubuntu.
    Any suggestion to fix this ?

    The solution was to reconfigure the X-Server: In a console-window I called kdmconfig and corrected the keyboard settings: it was a US-Keyboard. Nobody knows ... At installation time I configured a german keyboard.
    A remaining problem is that my mouse and keyboard are connected via USB and they are frozzen after boot. First when I physicaly detach both and reconnect them they start working in an ordinary manner. I saw a forum entry which talked about BIOS-settings.

  • Events/without user intervention at the GUI

    I am developing a control application in which in open loop the user has interaction with controls in the GUI and a generation of events begin an action. However in closed loop the controller generates the values and rewriten the values at the controls in the GUI without intervention of user in the GUI. The events are not identified within the events loop located within the white loop. I am trying to work with Dynamically Registering Events but i am not have sucess. The specific question is how generated an event when a value control changes  without the intervention of the user in the GUI

    Gracias por utilizar los foros
    la solucion ya la tienes en esta liga
    http://forums.ni.com/ni/board/message?board.id=170&message.id=196808#M196808
    saludos
    Erwin Franz R.

  • How to separate the GUI interface from program execution in Labwindows?

    Hallo,
    I am trying to combine TCL interpreter with Labwindows in order to executes tcl scripts with user implemented C functions that interact with devices in Labwindows. The idea is from another hand to have the ability to control my program from GUI and in the same time to be able to execute command scripts that will take a more control on the device interface.
    I can invoke the tcl interpreter for a single command or not so complicated script. When I execute a simple loop from the script my user interface stop to respond to any messages until interpreter exits the loop.
    The question is how to separate both the GUI and the program that executes in background in my case the tcl interpreter?
    Thanks,
    Nikolai

    Probably the best solution would be to do the TCP loop in another thread. For help with multithreading programming, see the CVI Multithreading Overview (cvi\bin\MultithreadingOverview.pdf) and the multithreading example programs (cvi\samples\utility\Threading).
    Best Regards,
    Chris Matthews
    National Instruments

Maybe you are looking for