Can we make the request datset user attributes read-only

IS ther any poosiblity that we make the attributes in request dataset as read-only or non-editable

Hi,
I am not sure about but in lookup you can use the tag read-only="false".
Can you try in your data type e.g:
<AttributeReference available-in-bulk="true" length="200" widget="lookup-query" type="String" required="true" read-only="false" attr-ref="Facility" name="Facility">
<lookupQuery lookup-query="**************" display-field="FacilityName" save-field="FacilityName"/>
</AttributeReference>
-Kuldeep

Similar Messages

  • How can we make the ms-word data as read-only using java code?

    How can we make the ms-word data as read-only using java code?

    MVSK wrote:
    By using java code i opened a file in ms-word. But the data i want to display as read-only. that means should not change it.I don't think you can do that. Display pdf documents instead.

  • How can i pass the logged in user attribute value into looku query ?

    HI,
    Is there any way to pass loggined in user attribute vallue to lookup query directrely in AD Child Group form.(Like '$Form data.UD_ADUSER_AD')
    Thanks in advance
    Edited by: 790561 on 5/12/2011 16:01

    loggined in user attribute vallue can be understood differently:
    - A requester raising a request and you want *Requestor's ID" there.
    - An approver logging in to the system for doing approvals.
    - A System admin logged in to the system for managing the *Forms, Requests' etc
    All the above cases are different and you would expect different values for all. If you requirement was the Requester then
    1) Either create a hidden attribute in the Process Form and pre-populate it from the Request Form. In your query use *$Form data.UD_ADUSER_DUMMYREQID')*
    2) Or directly capture the *$Requester Information.User Login$* attribute in the process form and do manipulations

  • How can we make the selected Debug User Agent Netscape 7.0 stick?

    To get into http://gap.com I have to go to the Debug menu, choose User Agent and choose Netscape 7.0.
    It works Ok.
    Then I quit Safari. Get back into Safari. User Agent is back to Automatically Chosen, and gap.com to not working.
    How can we make the selected User Agent stick?
    Thanks,
    Roberto

    Unfortunately, I don't think there is an automated way of going about this. To begin with, the 'Debug' menu was never meant to be user accessible in the most common context.
    However, that said, you could lessen the pain by assigning a keyboard shortcut to the 'Netscape 7.0' menu-item in the 'Keyboard & Mouse' preference pane (under the 'Keyboard Shortcuts' tab). Hope that helps, somewhat.
    Yang

  • How to make any select one choice attribute read only base on different att

    i have two select one choice attribute .one is create without binding and another one is base on data control .i do not want to write code in backing bean for making attribute read only .
    Example:
    <af:form id="f1">
    <af:selectOneChoice label="Label 1" id="soc1"
    autoSubmit="true">
    <af:selectItem label="Y" value="Y" id="si3"/>
    <af:selectItem label="N" value="N" id="si1"/>
    </af:selectOneChoice>
    <af:selectOneChoice value="#{bindings.ViewObj.inputValue}"
    label="#{bindings.ViewObj.label}"
    required="#{bindings.ViewObj.hints.mandatory}"
    shortDesc="#{bindings.ViewObj.hints.tooltip}"
    id="soc2" partialTriggers="soc1">
    <f:selectItems value="#{bindings.ViewObj.items}" id="si2"/>
    </af:selectOneChoice>
    </af:form>
    on the basis of first select one choice the second select one choice should be disable .
    i know that i need to bind first select one choice to backing bean .also make auto submit true and add partialTriggers in second select one choice .
    please give me hints
    thanks
    prateek

    please give me any example using backing bean .for example
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document id="d1">
    <af:form id="f1">
    <af:selectOneChoice label="Label 1" id="soc1" binding="#{Af.l1}"
    autoSubmit="true">
    <af:selectItem label="A" value="1" id="si1"/>
    <af:selectItem label="B" value="2" id="si2"/>
    </af:selectOneChoice>
    <af:selectOneChoice label="Label 2" id="soc2" disabled="#{Af.l1=='2'}"
    partialTriggers="soc1">
    <af:selectItem label="C" value="3" id="si3"/>
    <af:selectItem label="D" value="4" id="si4"/>
    </af:selectOneChoice>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    package a;
    import oracle.adf.view.rich.component.rich.input.RichSelectOneChoice;
    public class A {
    private RichSelectOneChoice l1;
    public A() {
    public void setL1(RichSelectOneChoice l1) {
    this.l1 = l1;
    public RichSelectOneChoice getL1() {
    return l1;
    is there any mistake

  • Hi just bought an external hard drive and can't change the sharing and permissions from read only status. How do i change it?

    Hi new to macs and dont know how to change the sharig and permissions to my external hard driive from read only mode. please help

    Get Info on your drive from the Finder - you'll see a dialog box like this:
    If the Privilege is set to Read Only for the user, simply click on the "Read Only" and change it to "Read & Write".
    Is that what you're looking for?
    Clinton

  • Can we make the excel sheet fields are ready only after downloding

    Hi ALL
              I have the probelm in the project that when i downlaod the data into excel sheet in that sheet 2 fields should be read only,ie client can't edit those fields.
    can any one tel me how can do this one
    Thnaks
    Lokesh.V

    Hi,
    Could u explain the problem in some more brief ie., how u r downloaded the data ie., through open hub infospoke or just saved as a local file.
    Regards
    Ramakrishna Kamurthy

  • I put a conde. For acess TRE icluds ADN fortes it. Now I can,t Make The back um thru tem

    Sorry But. I forgot my iclouds code. I now I can,t Make The back up thru it.

    Sorry But. I forgot my iclouds code. I now I can,t Make The back up thru it.

  • Hi you know i can't make the MIDI connection network from my iMac to my iPad 3 appears 192.168.1.69:5004 refused the connection request. ill appreciate so much your help I'm trying to do it with the animoog for iPad

    hi you know i can't make the MIDI connection network from my iMac to my iPad 3 appears 192.168.1.69:5004 refused the connection request. ill appreciate so much your help I'm trying to do it with the animoog for iPad

    Hi James and welcome.....
    Try the help here for Windows 7.
    iTunes for Windows: iTunes cannot contact the iPhone, iPad, or iPod software update server
    Carolyn

  • How can i make the text go vertically in numbers

    How can I make the text vertical in numbers?  I have merged the cells and cannot find an option for making it go vertical as opposed to horizontal.

    I already gave two tools to fit this kind of needs.
    tip #1 :
    --{code}
    --[SCRIPT write_vertically]
    Enregistrer le script en tant que Script : write_vertically.scpt
    déplacer le fichier ainsi créé dans le dossier
    <VolumeDeDémarrage>:Utilisateurs:<votreCompte>:Bibliothèque:Scripts:Applications :Numbers:
    Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
    Saisir dans une cellule le mot à écrire verticalement puis le sélectionner.
    ATTENTION, il ne faut pas sélectionner la cellule mais le mot qui doit apparaitre surligné.
    Aller au menu Scripts , choisir Numbers puis choisir “write_vertically”
    Le script colle dans la cellule le mot apès avoir inséré un return entre tous les caractères.
    Pour mon usage personnel j'associe un raccourci à ce script grace à FastScripts.
    --=====
    L’aide du Finder explique:
    L’Utilitaire AppleScript permet d’activer le Menu des scripts :
    Ouvrez l’Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
    Cochez la case “Afficher le menu des scripts dans la barre de menus”.
    Sous 10.6.x,
    aller dans le panneau “Général” du dialogue Préférences de l’Éditeur Applescript
    puis cocher la case “Afficher le menu des scripts dans la barre des menus”.
    --=====
    Save the script as a Script: write_vertically.scpt
    Move the newly created file into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
    Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
    In a cell, type a word to write vertically then select it.
    CAUTION, don’t select the cell but the word which must be highlighted.
    Go to the Scripts Menu, choose Numbers, then choose “write_vertically”
    The script insert in the cell the word after inserting a return between every characters.
    For my own use, I link a shortcut to the script thank to FastScripts.
    --=====
    The Finder’s Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the “Show Script Menu in menu bar” checkbox.
    Under 10.6.x,
    go to the General panel of AppleScript Editor’s Preferences dialog box
    and check the “Show Script menu in menu bar” option.
    --=====
    Yvan KOENIG (VALLAURIS, France)
    2011/12/17
    2012/01/01 no longer use a local variable, use result
    --=====
    on run
    Clear the clipboard *)
      set the clipboard to ""
    Copy the selection in the clipboard *)
              my raccourci("Numbers", "c", "c")
    Loop waiting that the clipboard is really filled *)
              repeat
                        try
                                  if (the clipboard as text) is not "" then exit repeat
                        on error
                        end try
              end repeat
    Extract the clipboard's content *)
      the clipboard as text
    Insert return between every characters *)
              my recolle(every character of result, return)
    Fill the clipboard with the edited string *)
      set the clipboard to result
    Paste in the cell *)
              my raccourci("Numbers", "v", "cas")
    end run
    --=====
    on recolle(l, d)
              local oTIDs, t
              set oTIDs to AppleScript's text item delimiters
              set AppleScript's text item delimiters to d
              set t to l as text
              set AppleScript's text item delimiters to oTIDs
              return t
    end recolle
    --=====
    on activateGUIscripting()
      (* to be sure than GUI scripting will be active *)
              tell application "System Events"
                        if not (UI elements enabled) then set (UI elements enabled) to true
              end tell
    end activateGUIscripting
    --=====
    ==== Uses GUIscripting ====
    This handler may be used to 'type' text, invisible characters if the third parameter is an empty string.
    It may be used to 'type' keyboard raccourcis if the third parameter describe the required modifier keys.
    I changed its name « shortcut » to « raccourci » to get rid of a name conflict in Smile.
    on raccourci(a, t, d)
              local k
              tell application a to activate
              tell application "System Events" to tell application process a
                        set frontmost to true
                        try
                                  t * 1
                                  if d is "" then
      key code t
                                  else if d is "c" then
      key code t using {command down}
                                  else if d is "a" then
      key code t using {option down}
                                  else if d is "k" then
      key code t using {control down}
                                  else if d is "s" then
      key code t using {shift down}
                                  else if d is in {"ac", "ca"} then
      key code t using {command down, option down}
                                  else if d is in {"as", "sa"} then
      key code t using {shift down, option down}
                                  else if d is in {"sc", "cs"} then
      key code t using {command down, shift down}
                                  else if d is in {"kc", "ck"} then
      key code t using {command down, control down}
                                  else if d is in {"ks", "sk"} then
      key code t using {shift down, control down}
                                  else if (d contains "c") and (d contains "s") and d contains "k" then
      key code t using {command down, shift down, control down}
                                  else if (d contains "c") and (d contains "s") and d contains "a" then
      key code t using {command down, shift down, option down}
                                  end if
                        on error
                                  repeat with k in t
                                            if d is "" then
      keystroke (k as text)
                                            else if d is "c" then
      keystroke (k as text) using {command down}
                                            else if d is "a" then
      keystroke k using {option down}
                                            else if d is "k" then
      keystroke (k as text) using {control down}
                                            else if d is "s" then
      keystroke k using {shift down}
                                            else if d is in {"ac", "ca"} then
      keystroke (k as text) using {command down, option down}
                                            else if d is in {"as", "sa"} then
      keystroke (k as text) using {shift down, option down}
                                            else if d is in {"sc", "cs"} then
      keystroke (k as text) using {command down, shift down}
                                            else if d is in {"kc", "ck"} then
      keystroke (k as text) using {command down, control down}
                                            else if d is in {"ks", "sk"} then
      keystroke (k as text) using {shift down, control down}
                                            else if (d contains "c") and (d contains "s") and d contains "k" then
      keystroke (k as text) using {command down, shift down, control down}
                                            else if (d contains "c") and (d contains "s") and d contains "a" then
      keystroke (k as text) using {command down, shift down, option down}
                                            end if
                                  end repeat
                        end try
              end tell
    end raccourci
    --=====
    --[/SCRIPT]
    --{code}
    tip #2 :
    --{code}
    --[SCRIPT rotate_cell_contents]
    Enregistrer le script en tant que Script : rotate_cell_contents.scpt
    déplacer le fichier ainsi créé dans le dossier
    <VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Numbers:
    Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
    Sélectionner une cellule dont le texte doit être tourné de 90 degrés.
    Aller au menu Scripts , choisir Numbers puis choisir “rotate_cell_contents”
    --=====
    L’aide du Finder explique:
    L’Utilitaire AppleScript permet d’activer le Menu des scripts :
    Ouvrez l’Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
    Cochez la case “Afficher le menu des scripts dans la barre de menus”.
    Sous 10.6.x,
    aller dans le panneau “Général” du dialogue Préférences de l’Éditeur Applescript
    puis cocher la case “Afficher le menu des scripts dans la barre des menus”.
    --=====
    Save the script as a Script: rotate_cell_contents.scpt
    Move the newly created file into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
    Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
    Select a cell whose contents must be rotated for 90 degrees.
    Go to the Scripts Menu, choose Numbers, then choose “rotate_cell_contents”
    --=====
    The Finder’s Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the “Show Script Menu in menu bar” checkbox.
    Under 10.6.x,
    go to the General panel of AppleScript Editor’s Preferences dialog box
    and check the “Show Script menu in menu bar” option.
    --=====
    Yvan KOENIG (VALLAURIS, France)
    2011/06/23
    2011/06/26 -- No longer use an auxiliary text box. Now keep the text attributes.
    2012/01/31 -- edited for Lion
    --=====
    on run
              local dName, sName, tName, rowNum1, colNum1, rowNum2, colNum2
              local le_texte, la_largeur, la_hauteur, myNewDoc
              my activateGUIscripting()
    Extract properties of the source/target cell *)
              set {dName, sName, tName, rowNum1, colNum1, rowNum2, colNum2} to my get_SelParams()
              tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
                        set selection range to range (name of column colNum1 & name of row rowNum1)
              end tell
    Cut*)
              my raccourci("Numbers", "x", "c")
    Trigger Preview *)
              tell application "System Events"
                        if "Preview" is not in (name of every application process) then launch application "Preview"
              end tell
      delay 0.2 -- required
    New document from the clipboard *)
              my raccourci("Preview", "n", "c")
    Rotate to left *)
              my raccourci("Preview", "l", "c")
    Copy *)
              my raccourci("Preview", "c", "c")
    Quit *)
              my raccourci("Preview", "q", "c")
              (system attribute "sys2") < 7
              if result then
    Click the [Don't Save] button in the warning sheet *)
                        tell application "Preview" to activate
                        tell application "System Events" to tell application process "Preview" to tell window 1
                                  name of buttons
                                  repeat 50 times
                                            delay 0.1
                                            if exists sheet 1 then exit repeat
                                  end repeat
                                  tell sheet 1 to click button 2
                        end tell
              end if
    Back to Numbers *)
              tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
      -- just reset the focus on the table
              end tell
    Paste in the cell *)
              my raccourci("Numbers", "v", "c")
    end run
    --=====
    set { dName, sName, tName,  rowNum1, colNum1, rowNum2, colNum2} to my get_SelParams()
    tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
    on get_SelParams()
              local d_name, s_name, t_name, row_num1, col_num1, row_num2, col_num2
              tell application "Numbers" to tell document 1
                        set d_name to its name
                        set s_name to ""
                        repeat with i from 1 to the count of sheets
                                  tell sheet i to set maybe to the count of (tables whose selection range is not missing value)
                                  if maybe is not 0 then
                                            set s_name to name of sheet i
                                            exit repeat
                                  end if -- maybe is not 0
                        end repeat
                        if s_name is "" then
                                  if my parleAnglais() then
                                            error "No sheet has a selected table embedding at least one selected cell !"
                                  else
                                            error "Aucune feuille ne contient une table ayant au moins une cellule sélectionnée !"
                                  end if

  • How can I make the playback buttons of YouTube and other plug-ins bigger since they are so tiny?

    How can I make the playback buttons of YouTube and other plug-ins bigger since they are so tiny in Firefox? I tried some suggestions that dealt with entering "about:config" in a fresh browser, but to no avail. I also downloaded an add-on called "Theme Font & Size Changer", but that didn't work either. So, I am reaching out here as that was a suggestion that another user here offered.

    Ah, yes- that is an ultra high DPI (dots per inch) display. This is a known issue in Flash Player, which Adobe is working on fixing.
    In the mean time, you can get some videos to have normal-sized controls by switching Youtube to the HTML5 video player:
    In Firefox, go to https://www.youtube.com/html5 and click the "Request the HTML5 player" button.

  • ListUpcomingConferences - The entity is not authorized to make the request.

    I am trying to listUpcomming conferences with Oracle RTC Integration Services. Authentication process executes succesfully but at the time of listing upComing conferences statusCode *1032* is returned which denotes an entity is not authorized to make the request. I have assigned this resources the maxium rights using rtcctl utlity. Inspite of having maximum rights I am not able to list UpComing Conferences.
    Can anybody please help me to find out the issue? Quick response would be appreciated.
    Follwing is the code that I am executing to list conferences.
    {color:#000080}import authentication.proxy.types.oracle.imt.service.facade.authenticationserviceei.Oracle_imt_service_data_TokenObject;
    import oracle.imt.service.facade.proxy.PreConferenceServiceEIProxy;
    import oracle.imt.service.facade.proxy.oracle_imt_service_data_request_UpcomingConferencesRequest;
    import oracle.imt.service.facade.proxy.oracle_imt_service_data_response_UpcomingConferencesResponse;
    {color}
    {color:#000080}
    public class TestClass {
    public TestClass() {
    public static void main(String[] args) {
    {color}
    {color:#000080}
    authentication.proxy.AuthenticationServiceEIPortClient myPort;
    try {
    myPort = new authentication.proxy.AuthenticationServiceEIPortClient();
    {color}
    {color:#000080}
    System.out.println("calling " + myPort.getEndpoint());
    // Add your own code here
    Oracle_imt_service_data_TokenObject token= myPort.createSession("myUsername","myPassword","USER");
    System.out.println("Token " + token.getToken());
    System.out.println("Error " + token.getErrorString());
    {color}
    {color:#000080}
    oracle.imt.service.facade.proxy.oracle_imt_service_data_request_UpcomingConferencesRequest request = new oracle.imt.service.facade.proxy.oracle_imt_service_data_request_UpcomingConferencesRequest();
    {color}
    {color:#000080}
    request.setEntityID("myUserName");
    request.setEntityToken(token.getToken());
    request.setUserID("myUserName");
    request.setPubliclyListed(Boolean.TRUE);
    {color}
    {color:#000080}
    PreConferenceServiceEIProxy preConferenceService = new PreConferenceServiceEIProxy();
    oracle.imt.service.facade.proxy.oracle_imt_service_data_response_UpcomingConferencesResponse response;
    {color}
    {color:#000080}
    try
    response = preConferenceService.listUpcomingConferences(request);
    // get call status
    int statusCode = response.getStatusCode();
    // error handling
    System.out.println(statusCode);
    catch (Exception e)
    System.out.println("Error: " + e.getMessage() + "\n" + e.getCause());
    {color}
    {color:#000080}
    } catch (Exception e) {
    e.printStackTrace();
    }{color}

    Hi,
    Click on the user admin under user and groups , go to the tab Passwords. Give the password for the admin user and save it. Restart the server and try to login.
    Regards
    Marg

  • Can I change the request params in my backing bean?

    I want to change the request params in the backing bean method.
    For example:
    <h:commandLink value="test" action"myBean.test">
    <f:param name="a" value="1" />
    </h:commandLink>
    When user click the link, myBean.test() will be invoked.
    Can I change the request param values in myBean.test()?
    I mean, if I can change the value of "a" to "2" or add a new param?
    Thanks!

    I'm not sure if You can change any request parameters...
    You can set e.g. a request attribute in the case that You get the request object from the faces context and set the attribute.
    something like this...
    FacesContext fc = FacesContext.getCurrentInstance();
    HttpServletRequest req =    HttpServletRequest)fc.getExternalContext().getRequest();
    req.getParameter("id");
    req.setAttribute("id", new Integer(2));

  • How can I make the combo box turn to the value of black.

    When the show button is pressed (and not before), a filled black square should be
    displayed in the display area. The combo box (or drop down list) that enables the user to choose the colour of
    the displayed shape and the altering should take effect immediately.When the show button is pressed,
    the image should immediately revert to the black square, the combo box should show the value that
    correspond to the black.
    Now ,the problem is: after I pressed show button, the image is reverted to the black square,but I don't know
    how can I make the combo box turn to the value of black.
    Any help or hint?Thanks a lot!
    coding 1.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class test extends JFrame {
         private JPanel buttonPanel;
         private DrawPanel myPanel;
         private JButton showButton;
         private JComboBox colorComboBox;
    private boolean isShow;
         private int shape;
         private boolean isFill=true;
    private String colorNames[] = {"black", "blue", "cyan", "darkGray", "gray",
    "green", "lightgray", "magenta", "orange",
    "pink", "red", "white", "yellow"}; // color names list in ComboBox
    private Color colors[] = {Color.black, Color.blue, Color.cyan, Color.darkGray,
                              Color.gray, Color.green, Color.lightGray, Color.magenta,
                              Color.orange, Color.pink, Color.red, Color.white, Color.yellow};
         public test() {
         super("Draw Shapes");
         // creat custom drawing panel
    myPanel = new DrawPanel(); // instantiate a DrawPanel object
    myPanel.setBackground(Color.white);
         // set up showButton
    // register an event handler for showButton's ActionEvent
    showButton = new JButton ("show");
         showButton.addActionListener(
              // anonymous inner class to handle showButton events
         new ActionListener() {
                   // draw a black filled square shape after clicking showButton
         public void actionPerformed (ActionEvent event) {
                             // call DrawPanel method setShowStatus and pass an parameter
              // to decide if show the shape
         myPanel.setShowStatus(true);
                   isShow = myPanel.getShowStatus();
                                            shape = DrawPanel.SQUARE;
                        // call DrawPanel method setShape to indicate shape to draw
                                            myPanel.setShape(shape);
                        // call DrawPanel method setFill to indicate to draw a filled shape
                                            myPanel.setFill(true);
                        // call DrawPanel method draw
                                            myPanel.draw();
                             myPanel.setFill(true);
                             myPanel.setForeground(Color.black);
                   }// end anonymous inner class
         );// end call to addActionListener
    // set up colorComboBox
    // register event handlers for colorComboBox's ItemEvent
    colorComboBox = new JComboBox(colorNames);
    colorComboBox.setMaximumRowCount(5);
    colorComboBox.addItemListener(
         // anonymous inner class to handle colorComboBox events
         new ItemListener() {
         // select shape's color
         public void itemStateChanged(ItemEvent event) {
         if(event.getStateChange() == ItemEvent.SELECTED)
         // call DrawPanel method setForeground
         // and pass an element value of colors array
         myPanel.setForeground(colors[colorComboBox.getSelectedIndex()]);
    myPanel.draw();
    }// end anonymous inner class
    ); // end call to addItemListener
    // set up panel containing buttons
         buttonPanel = new JPanel();
    buttonPanel.setLayout(new GridLayout(4, 1, 0, 50));
         buttonPanel.add(showButton);
    buttonPanel.add(colorComboBox);
    JPanel radioButtonPanel = new JPanel();
    radioButtonPanel.setLayout(new GridLayout(2, 1, 0, 20));
    Container container = getContentPane();
    container.setLayout(new BorderLayout(10,10));
    container.add(myPanel, BorderLayout.CENTER);
         container.add(buttonPanel, BorderLayout.EAST);
    setSize(500, 400);
         setVisible(true);
         public static void main(String args[]) {
         test application = new test();
         application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    coding 2
    import java.awt.*;
    import javax.swing.*;
    public class DrawPanel extends JPanel {
         public final static int CIRCLE = 1, SQUARE = 2;
         private int shape;
         private boolean fill;
         private boolean showStatus;
    private int shapeSize = 100;
    private Color foreground;
         // draw a specified shape
    public void paintComponent (Graphics g){
              super.paintComponent(g);
              // find center
    int x=(getSize().width-shapeSize)/2;
              int y=(getSize().height-shapeSize)/2;
              if (shape == CIRCLE) {
         if (fill == true){
         g.setColor(foreground);
              g.fillOval(x, y, shapeSize, shapeSize);
    else{
                   g.setColor(foreground);
    g.drawOval(x, y, shapeSize, shapeSize);
              else if (shape == SQUARE){
         if (fill == true){
         g.setColor(foreground);
                        g.fillRect(x, y, shapeSize, shapeSize);
    else{
                        g.setColor(foreground);
    g.drawRect(x, y, shapeSize, shapeSize);
    // set showStatus value
    public void setShowStatus (boolean s) {
              showStatus = s;
         // return showstatus value
    public boolean getShowStatus () {
              return showStatus;
         // set fill value
    public void setFill(boolean isFill) {
              fill = isFill;
         // set shape value
    public void setShape(int shapeToDraw) {
              shape = shapeToDraw;
    // set shapeSize value
    public void setShapeSize(int newShapeSize) {
              shapeSize = newShapeSize;
    // set foreground value
    public void setForeground(Color newColor) {
              foreground = newColor;
         // repaint DrawPanel
    public void draw (){
              if(showStatus == true)
              repaint();

    Hello,
    does setSelectedIndex(int anIndex)
    do what you need?
    See Java Doc for JComboBox.

  • How can I hide the password and user name in url???

    Hi experts,
    I'm creating a login page and know I have a problem.
    The Username and password are verified in a Java class, after checking the user and password, the user should be linked to the portal.
    So far everything has worked well.
    But when I call the lin like this
    res.sendRedirect ("/ irj / portal j_user =" + UserN + "& j_password =" + passw);
    then the user name and Pwasswort appears in the url.
    Can someone tell me how can I hide the password and user name???
    It will be very helpful.
    Thank you
    Edited by: Cilvaring on Aug 5, 2011 12:00 PM

    If there is no specific reason that you have to use sendredirect...thne you can try request.forward.....
    RequestDispatcher rd = request.getRequestDispatcher("pathToResource");
      rd.forward(request, response);

Maybe you are looking for

  • Unable to log in user at this time / opening up all ports

    I've got a lion 10.7.3 server and several Lion client boxes all attached via ethernet to an airport extreme. I've got a bona fide certificate that seems to have installed correctly, and the client is talking to the open directory server Without fail,

  • DVD drive not recognized because of a registry problem (Code 19). HP Pavilion dv6500

    HP Pavilion dv6500, upgraded several years ago to Windows 7 32 bit. In the past few days I have noticed that the DVD/CD-ROM drive does not appear on My computer/ Windows Explorer. I also incidentally noted that my program "HP Total Care Advisor" no l

  • Why is my wireless mouse lagging after bootcamp install?

    Hi all, I'm running OS X 10.9.5 and I recently partitioned my hard drive so that I'd be able to run a specific statistical program on Windows. Everything went smoothly, and Windows is up and running. However, I noticed that once everything was finish

  • X1600 in the 15-Inch Vs. 17-Inch

    I've heard rumors that the video card in the 15-Inch MacBook Pro maybe slower than the one in the 17-Inch MacBook Pro. My question is: is that true? And if so, is it worth getting the 17-Inch for that reason? See, I personally want a fully loaded 15-

  • Plug-ins and filters - what set to buy? FX Factory, Boris, Nattress, etc.

    So I'm looking to buy a set of filters, i've checked some out through trials and worked with some at different jobs. I like Sapphire (although crazy expensive) and FX Factory seemed not bad. I will be using these with music videos, short films, etc..