Visibility of Component

I've got a JLabel that I want to be invisible until a user enters the info in a dialog box, then add that info to the label and display it. Could someone give me some direction on what I should be doing? I get an error that says that it can't find the symbols for the label and the frame in the Action Listener, but I'm not really sure how to fix that.
I've got code that looks something like this:
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class Barcoder extends JFrame implements ActionListener {
     public static void main(String args[]) {        
         //Schedule a job for the event-dispatching thread:
         //creating and showing this application's GUI.
         javax.swing.SwingUtilities.invokeLater(new Runnable() {
           public void run() {
                 createAndShowBarcoder();
     private static void createAndShowBarcoder() {
          //Create the window frame
          //Add various components to the main panels
          //A bunch of panels and components here
          //Barcode Label is initially not visible
          JLabel barcodeLabel = new JLabel("EZ4U");
          barcodeLabel.setFont(new Font("",Font.PLAIN,11));
          barcodeLabel.setBackground(Color.white);
          barcodeLabel.setVisible(false);
          //Indexed Option
               JButton indexButton = new JButton("EZ4U1");
          indexButton.setBackground(Color.white);
          indexButton.setFont(new Font("",Font.PLAIN,12));
          indexButton.addActionListener(this);
          indexButton.setActionCommand("Index");
          //Display the window
     public void actionPerformed(ActionEvent evt) {
           if(evt.getActionCommand()=="Index"){
             //Open Index options dialog
                IndexBarcode indexLabel = new IndexBarcode(this);
             indexLabel.setVisible(true);
               //Get user string and add to Visible label
             String labelText_V = indexLabel.query();
             barcodeLabel.setText(labelText_V);
             barcodeLabel.setVisible(true);
             BarcoderFrame.validate();
             BarcoderFrame.repaint();
}

I've tried a couple of different layouts but I still have the components moving around within the container. Can I stack them on top of each other with the barcodeLabel in the middle of the picture and the rotateButton at the bottom corner. Is this even possible?
Here is the code that I'm talking about:
        /* Objects in Center Panel */
         centerPanel = new JLayeredPane();
         centerPanel.setLayout(new GridBagLayout());
         GridBagConstraints gbc3 = new GridBagConstraints();
         //Plate Graphic
        picture = new JLabel(createImageIcon("images/plate_front.jpg"));
        picture.setPreferredSize(new Dimension(381, 219)); //The preferred size is hard-coded
         //Rotate Button
         JButton rotateButton = new JButton(rotateIcon);
         rotateButton.setMargin(new Insets (0,0,0,0));
          rotateButton.addActionListener(this);
          rotateButton.setActionCommand("rotate");
          //Barcode Label is initially not visible
          barcodeLabel = new JLabel("");
          barcodeLabel.setFont(new Font("",Font.PLAIN,12));
          barcodeLabel.setBackground(Color.white);
          barcodeLabel.setBorder(BorderFactory.createLineBorder(Color.black));
          barcodeLabel.setOpaque(true);
          barcodeLabel.setVisible(false);
          //Add objects to panel(s)
          gbc3.anchor = GridBagConstraints.NORTHWEST;
          gbc3.gridwidth = 1;
          centerPanel.add(picture, gbc3, 0);
          //centerPanel.setComponentZOrder(picture, 0);
          centerPanel.add(barcodeLabel, gbc3, 1);
          //centerPanel.setComponentZOrder(barcodeLabel, 1);
          gbc3.anchor = GridBagConstraints.SOUTHEAST;
          centerPanel.add(rotateButton, gbc3, 2);
          //centerPanel.setComponentZOrder(rotateButton, 2);

Similar Messages

  • ICCMP_BT_FOUP - How to call meth. 'DO_HANDLE_EVENT other Component/View?

    Dear Experts,
    when changing the field CONC_KEY-BTN in view BTSHeader in component ICCMP_BTSHEAD (Interaction Record Component)
    the method DO_HANDLE_EVENT of the view controller is called.
    The standard coding of the method is:
    method DO_HANDLE_EVENT.
    * Eventhandler dispatching
        CASE htmlb_event_ex->event_server_name.
          WHEN others.
            global_event = super->do_handle_event( event           = event
                                                   htmlb_event     = htmlb_event
                                                   htmlb_event_ex  = htmlb_event_ex
                                                   global_messages = global_messages ).
        ENDCASE.
    endmethod.
    The component ICCMP_BTSHEAD is used in component ICCMP_BT_INR. Also visible in component ICCMP_BT_INR is the component ICCMP_BT_FOUP (View:CREATEFOLLOWUP) used to create Follow-Up Documents like Service Tickets.
    What I want to is that, if the value of the field CONC_KEY-BTN is '1', the fields of the view CREATEFOLLOWUP follow-up-document have to be not modifiable. If the value of field CONC_KEY-BTN is '2' the fields are modifiable and it is possible to create a Follow-Up Document. That is my basic requierement. Better would be if the view CREATEFOLLOWUP would not visible if the value of the field CONC_KEY-BTN is '1'. But that would be more difficult I think?
    To make the fields not modifiable, I think I have to modify the Get and Set Methods of the specific Atributes. But my problem is how can I modify the above mentioned method 'DO_HANDLE_EVENT' (View: BTSHeader) so that the event 'DO_HANDLE_EVENT' of the view controller of view CREATEFOLLOWUP is called at the same time (The problem is that the 'DO_HANDLE_METHOD of view CREATEFOLLOWUP is not called when changing the field CONC_KEY-BTN of the view BTSHeader ).
    Best Regards
    Oliver

    Hi Oliver,
    In my opinion, the logic is not to be controlled at the do_handle_event level. ICCMP_BT_FOUP is created as a component usage right? So  in the component ICCMP_BT_INR, there will be a navigation link defined with source as outbound plug of  ICCMP_BT_INR and  target as inbound plug of  ICCMP_BT_FOUP. In this outbound plug, you can fill the param IV_DATA_COLLECTION as follows:
    data: lr_current type ref to if_bol_bo_property_access,
                        lr_col      type ref to if_bol_bo_col.
      lr_current = me->typed_context->YOUR CONTEXT NODE->collection_wrapper->get_current( ).
      check lr_current is bound.
      create object lr_col
        type
          cl_crm_bol_bo_col.
      check lr_col is bound.
      lr_col->add( lr_current ).
    Now pass this collection to the target inbound plug.
    In the inbound plug of the target, you can control the logic based on the value of the attribute field in the collection.
    I think this should work.
    Regards,
    Nisha

  • New portal component not available for new iView

    I've just written my first portal component using the NetWeaver Developer Studio.  It's a trivial "Hello World" application. 
    If I run it in the portal from the NWDS it runs successfully allowing me to capture the full URL.
    I tried to export the par file and upload it to my portal.  I used the Archive Uploader from the portal to load the par file (System Configuration -> Support -> Portal Runtime -> Administration Console).  The upload appeared to go successfully but the "Archive Deployment Checker" shows the local and repository versions as "undefined" with "update", "delete" and "refresh" buttons - no "install" button.
    When I try to build an iView to display this component I don't see it in the list of possible types. 
    (portal content -> new iViews -> choose source type of "portal component") I can't see anything that looks remotely like my component.
    If I create a generic applicationintegrator iView I can paste the full URL from my NWDS test run and it works.  I can even build that into a role and make it appear in the portal content area. 
    How do I:
    1  find/make visible my component so I can build an iView directly from it
    2  if I can't do 1, configure the URL a little more generically so it's portable.
    The URL in the iView looks like
    http://dev.mycompany.com:5xx00/irj/servlet/prt/portal/prtroot/MyHomePage.HomePage
    and I'd like it to look like
    http://<prtroot>/MyHomePage.HomePage

    Hi Murray,
    Try to deploy your portal application from NWDS itself.
    NWDS
    Windows / Preferences / SAP Enterprise Portal /Add
    After that check in Portal Archive Selection your component will be there.
    And for shorter URL you needs to check the DNS settings.
    Regards,

  • My panel doesnt comes visible .....why?

    ive read, and ive been told that the only thing i need to make a panel and its contents visible is to make the panel visible by using the setVisible() method,
    but iv tried that and it doesnt work, i dont know if i have to make visible each component in the panel or what, could anyone help me please??
    Here is my code:
    import java.io.*;
    import java.util.Vector;
    public class MainWin extends javax.swing.JFrame {
    public static ClientesDB Clientes;
    public static ProductosDB Productos;
    public MainWin() {
    initComponents();
    private void jMenuItem1MouseClicked(java.awt.event.MouseEvent evt) {                                       
    ClientPanel.setVisible(true);
    private void jButton2MouseClicked(java.awt.event.MouseEvent evt) {                                     
    Vector result;
    if(buttonGroup1.getSelection().equals(jRadioButton1))
    result=Clientes.Match_name(jTextField1.getText());
    else{
    if(buttonGroup1.getSelection().equals(jRadioButton2))
    result=Clientes.Match_rfc(jTextField1.getText());
    else{
    if(buttonGroup1.getSelection().equals(jRadioButton3))
    result=Clientes.Match_tel(jTextField1.getText());
    else
    result=new Vector(0);
    if(result.size()==0)
    jTextField1.setText("No hubo coincidencias o No selecciono un criterio de busqueda");
    else
    for(int i=0;i<result.size();i++)
    jComboBox1.addItem(result.elementAt(i));
    private void jButton1MouseClicked(java.awt.event.MouseEvent evt) {                                     
    System.exit(0);
    public static void main(String args[])throws IOException, ClassNotFoundException {
    File path=new File("c://MaximaPresion//Database");
    if(!path.exists())
    path.mkdirs();
    File clFile=new File(path, "clientes.txt");
    if(!clFile.exists()){
    clFile.createNewFile();
    Clientes= new ClientesDB(500);
    FileOutputStream FOS1=new FileOutputStream(clFile);
    ObjectOutputStream out1=new ObjectOutputStream(FOS1);
    out1.writeObject(Clientes);
    out1.close();
    FOS1.close();
    out1=null;
    FOS1=null;
    } else{
    FileInputStream FIS1=new FileInputStream(clFile);
    ObjectInputStream in1=new ObjectInputStream(FIS1);
    Clientes=(ClientesDB)in1.readObject();
    in1.close();
    FIS1.close();
    in1=null;
    FIS1=null;
    File prFile=new File(path, "ptoductos.txt");
    if(!prFile.exists()){
    prFile.createNewFile();
    Productos=new ProductosDB(500);
    FileOutputStream FOS2=new FileOutputStream(prFile);
    ObjectOutputStream out2=new ObjectOutputStream(FOS2);
    out2.writeObject(Productos);
    out2.close();
    FOS2.close();
    out2=null;
    FOS2=null;
    } else{
    FileInputStream FIS2=new FileInputStream(prFile);
    ObjectInputStream in2=new ObjectInputStream(FIS2);
    Productos=(ProductosDB)in2.readObject();
    in2.close();
    FIS2.close();
    in2=null;
    FIS2=null;
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    new MainWin().setVisible(true);
    I skiped the variable declaration and the init components cause i dont think its necesary. could anyone help me?

    it doesnt do anything so............ i think that must be it, ok........ im using netbeans, where do i find how to add the actionlistener to a menuItem?
    I guess its not the same to add actions to a menuItem than to add em to a jButton, but i havent found how to do it, so could anyone tell me where to find it?

  • Cant syncronize! Threads problem

    Hello everybody,
    recently i posted a question(im new to threads) and it was asked immediately but now i have another
    type of problem.
    Please read here the initial post and the answer and please give me any ideas..
    Initial Post
    Hi everybody,i have this thread problem(i'm new to java and h
    ave no idea what exactly to do).
    Well,in my applet i have this action performed method
    that i imagine is in the event dispatch thread.
    This method calls as u see, two other methods of a class named CPU(.
    Note that fetch and execute are observed classes and my applet class
    is the observer.
    The problem is that during the execution of fetch() and execute(),
    inside these methods change some things and so they call notifyObservers(Object arg)
    passing to the applet the argument and so the applet updates some text components.
    But as you can immagine there is no time for the gui to update himself so i see nothing.
    So, my question is which of the methods need to be in a separate thread so to ensure
    visible results(component updating)?
    Perhaps,the update method needs to be invokedLater with SwingUtilities?
    Please give me an example code if possible.
    Here is the actionPerformed code(from the applet class) and the fetch method:
        void executeProgramButton_actionPerformed(ActionEvent e) {      
    int numInstr = this.machine.ram.segmentSize;       
    for (int i = 0; i < numInstr; i = i + 4) {           
    machine.cpu.fetch();           
    machine.cpu.execute();       
    /*The following method is in the CPU class
    fetch method:here the observedPC is the observable value
    that notifies the observer(the main applet)
    that does: pcTextField.setText(arg.toString());*/   
    public void fetchInstructionProgram() {       
    observedPC = Integer.toString(pc);       
    setChanged();       
    notifyObservers(observedPC);       
    instructions++;       
    instruction=readOperation(cache.instructionfetch,pc);       
    pc = pc + 4;    }
    Answer to initial post
    Author: stevejluke
    One way could be to put the content of the action performed method into a new thread, then use invokeLater in your Observers that cause GUI updates:
        void executeProgramButton_actionPerformed(ActionEvent e) {     
    new Thread()       {      
    public void run()        {         
    int numInstr = this.machine.ram.segmentSize;         
    for (int i = 0; i < numInstr; i = i + 4)           {           
    machine.cpu.fetch();           
    machine.cpu.execute();         
    }.start();    }
    // In your Observer    public void update(Observable o, Object arg)    {     
    SwingUtilities.invokeLater(new Runnable() {      
    public void run()        { 
    /* your GUI afecting code
    });[i]
    Or something like that.
    You might need to watch for synchronizing things
    He was right...GUI is responsive but the results...
    Well,let me describe the new problem.
    Here you cant see the method execute().
    The problem is a synchronization problem.
    Actually,what the two methods do is:fetch() updates the value of a long called instruction and execute() takes this value and do some things.Note also that the time the execute method needs to finish is not
    always the same.By that, i mean that it depends on the value of the instruction updated by fetch().
    By putting some System.outs before and after updating i realized that there are delays or sometimes
    i noticed that fetch() executes 2 times before execute() takes control.
    So,i created some synchronized private methods set and get to control access to these resources.
    Better but still not correct...
    What should i look?Where stays the answer?
    How to synchronize these two methods on these resources?
    Thank you in advance,
    Chris

    I think that your fetch and execute has a "Producer-Consumer Relationship"
    in such cases you can make the producer place the produced value in to a queue and consumer take the vlues from the queue
    In the producer thread it sleeps for a while and try again if the Queue is full
    In the Consumer thread it sleeps for a while if the Queue is empty and then try again
    Or you can do as follows
    In the Producer thread it waite() if the Queue is full
    In the Consumer thread it waite() if the queue is empty
    When ever Producer put a value in to the Queue it calls the notify on Consumer and when ever Consumer takes a value from Queue it calls the notify() on Producer
    you can even use notify all
    I think thiere is no built in Queue class in java so you will have to write one here is a example
    public class MyLongQueue{
                long data[];
                int head, tail;
                int size;
               public MyLongQueue(int size){
                    data = new long[size];
                    head = -1;
                    tail = -1;
                    this.size = 0;
                public synchronized boolean isFull(){
                    return (size==data.length);
                public synchronized boolean isEmpty(){
                    return (size==0);
                public synchronized boolean  insert(long l){
                    if (size==data.length) return false; //Queue is full cant add more data
                    tail = (tail + 1) % data.length;
                    data[tail] = l;
                     size++;
                    return true;
               public synchronized long remove(){
                   if (size==0) throw new ArrayIndexOutOfBoundsException();
                   size--;
                   head = (head + 1) % data.length;
                   return data[head];

  • How can I tell if and how a SWF  file is streaming?

    My department is new to Flash, but we've now been creating
    basic Flash Videos for websites for a few months. We've always
    encoded our videos to FLVs (Flash 8), and then used the Video
    Import Wizard in Flash 8 to import those FLVs into our FLA
    document. We now need to be able to error-check all of our files
    (each video comprised of four files: an HTML file, an FLV file, and
    two SWF files including the player skin) to make sure that
    progressive videos are indeed progressive and streaming videos are
    streaming.
    My process thus far:
    In Flash 8, I brought up the SWF file and opened the Output
    window; from the Debug menu I then selected variables. I was able
    to find the variable "isRTMP:false", which according to the
    documentation seems to mean that the video is progressive, not
    streaming. However, when I authored this FLA file, I know I chose
    the streaming option (FVSS not FCS) in the Video Import Wizard. Am
    I looking in the wrong place? Am I confused about the meaning of
    this variable?
    Bottom line, how do I determine after authoring whether an
    SWF is streaming or progressive, and moreover whether it's been
    authored to use FVSS or FCS?

    I'm sorry, perhaps I was a little unclear. The files are all
    still stored herelocally, since they have not yet been deployed.
    I'm looking for some property of the SWF file (maybe visible
    through Component Inspector?) that will tell me how it has been
    authored. Is there any place in the SWF file itself that contains
    this information (since the files are not yet deployed)?

  • JProgressBar inside JDialogBox doesn't show up.

    Hi,
    I have a problem and kind of stuck.
    Here is the scenario.....
    Inside my actionPerformed method I create an instance of a class that extends java.lang.Thread and inside this class run method I create an instance of another class that extends JDialog that contains a JProgressBar. Now when a user clicks a button on the main application window the actionPerformed gets executed and it shows a JProgressBar and then continues the execution of the actionPerformed method while the JProgressBar keeps on updating the status. But the problem is that the JDialog shows up but the JProgressBar inside it doesn't even show. here is the code snippet I am using
    public void actionPerformed(ActionEvent e)
    //some code here
    //class extends Thread and creates JDialog with JProgressBar in it
    //JDialogBox with JProgressBar in it shows here
    t = new ProgressThread();
    t.start();
    //some other code I do some other processing
    //here I am hidding and destroying the JProgressBar
    //inside the reset method I hide the JDialog and set it to null
    t.reset();
    //some more code
    } //end of actionPerform
    Now my problem is that JDialogBox does pop-up but the JProgressBar in it doesn't show. Any ideas what I am doing wrong. I even tried to create the instance of JDialog directly instead of using a separate Thread but it didn't work either.
    Thanks for any help

    The point being, AWT and Swing are, in general, not thread-safe.
    You must not do anything that modifies the appearance of any visible Swing component, such as JProgressBar, from your thread. This must be done in the AWT Event Dispatch Thread. But when the components are not visible, like when you are building your GUI and haven't set it to visible yet, this doesn't apply.
    What I do, when my threads need to update the GUI, is to create a Runnable to do it, then queue that to the AWT Event Dispatch Thread for execution by calling SwingUtilities.invokeLater(). Other people use this SwingWorker class.
    Note that event listener methods are called in the AWT Event Dispatch Thread, so you need to worry about this only in your own thread.
    It is said there are some Swing components that are thread-safe. Given the typical use of JProgressBar, too bad it isn't one of them.

  • Capturing JCheckBox edit from within a JTable cell

    Hey,
    I've gone through as many posts as i can from this forum and i have managed to understand quite a bit but there is just this one probelm that i have.
    What i have is a checkbox in a cell in a jtable that causes the a jpanel elsewhere to repaint in various ways depending on whether the checkbok is checked or not.
    The code below is for the table editor. The model is my table model. aCanvas is the panel being repainted. completeVisible is the array that aCanvas accesses to repaint the panel.
    The code below works perfectly after the but only after the second click. the first 2 times i click the checkbox the value printed is true and then afterwards it starts alternating and working correctly... can anyone please tell me why this is?
    thanks in andvance... :o)
    private class TSPCellEditor extends AbstractCellEditor implements TableCellEditor, ActionListener {
              Boolean visible;
              JCheckBox check;
              String TEST = "TEST";
              public TSPCellEditor() {
                   check = new JCheckBox();
                   check.setActionCommand(TEST);
                   check.addActionListener(this);
              public void actionPerformed(ActionEvent e) {
                   if(TEST.equals(e.getActionCommand())) {
                        visible = new Boolean(check.isSelected());
                        fireEditingStopped();
              public Object getCellEditorValue() {
                   return visible;
              public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) {
                   visible = (Boolean)(value);
                   //boolean temp = visible.booleanValue();
                   //temp = !temp;
                   //visible = Boolean.valueOf(temp);
                   check.setSelected(visible.booleanValue());
    System.out.println(completeVisible[row]+" "+row);               
                   completeVisible[row] = visible.booleanValue();
                   model.setValueAt(visible, row, column);
                   aCanvas.repaint();
                   return check;
         }

    I can't answer your question, but I think a better way to implement your solution is to use a TableModelListener. An event is fired whenver the contents of the table model are changed so you can do your processing here. This [url http://forum.java.sun.com/thread.jsp?forum=57&thread=418560]thread gives a simple example.

  • Catalog in IA07 Transaction

    Hi,
    Need help in understanding the functionality of catlog tab in transaction code IA07 ? It is visible in component overview.
    Regards,
    Meghana

    Hi,
         The same Tab exists in IW32 ->Component Tab ..it is for Non stock component selection and purchase of Non stock components .., it is used for OCI and SRM Interface ..
    http://help.sap.com/saphelp_470/helpdata/en/5d/0eba5fa0084247acbb0c04cede18e8/content.htm
    http://help.sap.com/saphelp_rc10/helpdata/en/5d/0eba5fa0084247acbb0c04cede18e8/content.htm
    regards
    pushpa

  • Internet Explorer 11 Will Not Install

    I Have installed the following patches
    Windows6.1-KB2533623-x64
    Windows6.1-KB2639308-x64
    Windows6.1-KB2670838-x64
    Windows6.1-KB2729094-v2-x64
    Windows6.1-KB2731771-x64
    Windows6.1-KB2758857-x64
    Windows6.1-KB2786081-x64
    Windows6.1-KB2834140-v2-x64
    Windows6.1-KB2882822-x64
    Windows6.1-KB2888049-x64
    When i attempt to install Internet Explorer 11 it says that it could not be installed.
    Here is an excerpt of the CBS log which i think is causing the error
    2015-04-30 11:54:15, Error CBS Failed. Attempted to uninstall a version of a non-driver component that is not installed, version: 0X600011db145ca, component: amd64_microsoft-windows-scripting-vbscript_31bf3856ad364e35_6.1.7601.17866_none_a64bff6844ad4362, owner: Package_2_for_KB2706045~31bf3856ad364e35~amd64~~6.1.1.0.2706045-6_neutral_GDR [HRESULT = 0x80004005 - E_FAIL]
    2015-04-30 11:54:15, Info CBS Failed to mergecomponent [HRESULT = 0x80004005 - E_FAIL]
    2015-04-30 11:54:15, Info CBS ComponentAnalyzerUninstallDeployment: Failed on update: 2706045-6_neutral_GDR [HRESULT = 0x80004005 - E_FAIL]
    2015-04-30 11:54:15, Info CBS Failed to execute item[0] in Package: Package_2_for_KB2706045~31bf3856ad364e35~amd64~~6.1.1.0, Update: 2706045-6_neutral_GDR [HRESULT = 0x80004005 - E_FAIL]
    2015-04-30 11:54:15, Info CBS Failed to execute execution update. [HRESULT = 0x80004005 - E_FAIL]
    2015-04-30 11:54:15, Info CBS Failed to execute execution package: Package_2_for_KB2706045~31bf3856ad364e35~amd64~~6.1.1.0 [HRESULT = 0x80004005 - E_FAIL]
    2015-04-30 11:54:15, Info CBS Failed to prepare execution [HRESULT = 0x80004005 - E_FAIL]
    2015-04-30 11:54:15, Info CSI 0000002c@2015/4/30:02:24:15.538 CSI Transaction @0x541700 destroyed
    2015-04-30 11:54:15, Info CBS Perf: InstallUninstallChain complete.
    2015-04-30 11:54:15, Info CBS Failed to execute execution chain. [HRESULT = 0x80004005 - E_FAIL]
    2015-04-30 11:54:15, Error CBS Failed to process single phase execution. [HRESULT = 0x80004005 - E_FAIL]
    2015-04-30 11:54:15, Info CBS WER: Generating failure report for package: Microsoft-Windows-InternetExplorer-Package-TopLevel~31bf3856ad364e35~amd64~~11.2.9600.16428, status: 0x80004005, failure source: Execute, start state: Staged, target state: Installed, client id: DISM Package Manager Provider
    2015-04-30 11:54:15, Info CBS Failed to query DisableWerReporting flag. Assuming not set... [HRESULT = 0x80070002 - ERROR_FILE_NOT_FOUND]
    2015-04-30 11:54:15, Info CBS Failed to add %windir%\winsxs\pending.xml to WER report because it is missing. Continuing without it...
    2015-04-30 11:54:15, Info CBS Failed to add %windir%\winsxs\pending.xml.bad to WER report because it is missing. Continuing without it...
    2015-04-30 11:54:15, Info CBS Reboot mark refs: 0
    2015-04-30 11:54:15, Info CBS SQM: Reporting package change for package: Microsoft-Windows-InternetExplorer-Package-TopLevel~31bf3856ad364e35~amd64~~11.2.9600.16428, current: Absent, pending: Default, start: Absent, applicable: Installed, target: Installed, limit: Installed, hotpatch status: DisabledBecauseNoHotpatchPackagesInitiated, status: 0x0, failure source: Execute, reboot required: False, client id: DISM Package Manager Provider, initiated offline: False, execution sequence: 447, first merged sequence: 447
    2015-04-30 11:54:15, Info CBS SQM: Upload requested for report: PackageChangeBegin_Microsoft-Windows-InternetExplorer-Package-TopLevel~31bf3856ad364e35~amd64~~11.2.9600.16428, session id: 142859, sample type: Standard
    2015-04-30 11:54:15, Info CBS SQM: Ignoring upload request because the sample type is not enabled: Standard
    2015-04-30 11:54:15, Info CBS SQM: Reporting package change completion for package: Microsoft-Windows-InternetExplorer-Package-TopLevel~31bf3856ad364e35~amd64~~11.2.9600.16428, current: Staged, original: Absent, target: Installed, status: 0x80004005, failure source: Execute, failure details: "(null)", client id: DISM Package Manager Provider, initiated offline: False, execution sequence: 447, first merged sequence: 447
    2015-04-30 11:54:15, Info CBS SQM: execute time performance datapoint is invalid. [HRESULT = 0x80070490 - ERROR_NOT_FOUND]
    2015-04-30 11:54:15, Info CBS SQM: Win SAT assessment state is invalid.
    2015-04-30 11:54:15, Info CBS SQM: average disk throughput datapoint is invalid [HRESULT = 0x80004005 - E_FAIL]
    2015-04-30 11:54:15, Info CBS SQM: Upload requested for report: PackageChangeEnd_Microsoft-Windows-InternetExplorer-Package-TopLevel~31bf3856ad364e35~amd64~~11.2.9600.16428, session id: 142862, sample type: Standard
    2015-04-30 11:54:15, Info CBS SQM: Ignoring upload request because the sample type is not enabled: Standard
    2015-04-30 11:54:15, Info CBS Enabling LKG boot option
    2015-04-30 11:54:15, Info CBS Exec: End: nested restore point - complete.
    2015-04-30 11:54:15, Info CBS Restored system sleep block state: 0x80000000
    2015-04-30 11:54:15, Info CBS Exec: Processing complete. Session: 30442220_3048098672, Package: Microsoft-Windows-InternetExplorer-Package-TopLevel~31bf3856ad364e35~amd64~~11.2.9600.16428 [HRESULT = 0x80004005 - E_FAIL]
    2015-04-30 11:54:15, Error CBS Failed to perform operation. [HRESULT = 0x80004005 - E_FAIL]
    2015-04-30 11:54:15, Info CBS Session: 30442220_3048098672 finalized. Reboot required: no [HRESULT = 0x80004005 - E_FAIL]
    i have tried checksur and it is giving this result
    =================================
    Checking System Update Readiness.
    Binary Version 6.1.7601.22471
    Package Version 25.0
    2015-04-30 11:44
    Checking Windows Servicing Packages
    Checking Package Manifests and Catalogs
    Checking Package Watchlist
    (f) CBS Watchlist Package Missing 0x80070002 Microsoft-Windows-EmbeddedCore-Package~31bf3856ad364e35~amd64~~0.0.0.0 Package_for_KB3012176~31bf3856ad364e35~amd64~~6.1.1.2 Package registry presence failed, possibly an orphaned package on package watchlist
    Checking Component Watchlist
    Checking Packages
    (f) CBS Registry Error 0x80070002 Package_for_KB3012176_SP1~31bf3856ad364e35~amd64~~6.1.1.2 failed to get CurrentState
    (f) CBS Registry Error 0x80070002 Package_for_KB3012176_SP1~31bf3856ad364e35~amd64~~6.1.1.2 failed to get Visibility
    Checking Component Store
    Summary:
    Seconds executed: 82
    Found 3 errors
    CBS Registry Error Total count: 2
    CBS Watchlist Package Missing Total count: 1
    This computer has been freshly imaged.
    Any help appreciated

    I Have installed the following patches
    Windows6.1-KB2533623-x64
    Windows6.1-KB2639308-x64
    Windows6.1-KB2670838-x64
    Windows6.1-KB2729094-v2-x64
    Windows6.1-KB2731771-x64
    Windows6.1-KB2758857-x64
    Windows6.1-KB2786081-x64
    Windows6.1-KB2834140-v2-x64
    Windows6.1-KB2882822-x64
    Windows6.1-KB2888049-x64
    When i attempt to install Internet Explorer 11 it says that it could not be installed.
    Here is an excerpt of the CBS log which i think is causing the error
    2015-04-30 11:54:15, Error CBS Failed. Attempted to uninstall a version of a non-driver component that is not installed, version: 0X600011db145ca, component: amd64_microsoft-windows-scripting-vbscript_31bf3856ad364e35_6.1.7601.17866_none_a64bff6844ad4362, owner: Package_2_for_KB2706045~31bf3856ad364e35~amd64~~6.1.1.0.2706045-6_neutral_GDR [HRESULT = 0x80004005 - E_FAIL]
    2015-04-30 11:54:15, Info CBS Failed to mergecomponent [HRESULT = 0x80004005 - E_FAIL]
    2015-04-30 11:54:15, Info CBS ComponentAnalyzerUninstallDeployment: Failed on update: 2706045-6_neutral_GDR [HRESULT = 0x80004005 - E_FAIL]
    2015-04-30 11:54:15, Info CBS Failed to execute item[0] in Package: Package_2_for_KB2706045~31bf3856ad364e35~amd64~~6.1.1.0, Update: 2706045-6_neutral_GDR [HRESULT = 0x80004005 - E_FAIL]
    2015-04-30 11:54:15, Info CBS Failed to execute execution update. [HRESULT = 0x80004005 - E_FAIL]
    2015-04-30 11:54:15, Info CBS Failed to execute execution package: Package_2_for_KB2706045~31bf3856ad364e35~amd64~~6.1.1.0 [HRESULT = 0x80004005 - E_FAIL]
    2015-04-30 11:54:15, Info CBS Failed to prepare execution [HRESULT = 0x80004005 - E_FAIL]
    2015-04-30 11:54:15, Info CSI 0000002c@2015/4/30:02:24:15.538 CSI Transaction @0x541700 destroyed
    2015-04-30 11:54:15, Info CBS Perf: InstallUninstallChain complete.
    2015-04-30 11:54:15, Info CBS Failed to execute execution chain. [HRESULT = 0x80004005 - E_FAIL]
    2015-04-30 11:54:15, Error CBS Failed to process single phase execution. [HRESULT = 0x80004005 - E_FAIL]
    2015-04-30 11:54:15, Info CBS WER: Generating failure report for package: Microsoft-Windows-InternetExplorer-Package-TopLevel~31bf3856ad364e35~amd64~~11.2.9600.16428, status: 0x80004005, failure source: Execute, start state: Staged, target state: Installed, client id: DISM Package Manager Provider
    2015-04-30 11:54:15, Info CBS Failed to query DisableWerReporting flag. Assuming not set... [HRESULT = 0x80070002 - ERROR_FILE_NOT_FOUND]
    2015-04-30 11:54:15, Info CBS Failed to add %windir%\winsxs\pending.xml to WER report because it is missing. Continuing without it...
    2015-04-30 11:54:15, Info CBS Failed to add %windir%\winsxs\pending.xml.bad to WER report because it is missing. Continuing without it...
    2015-04-30 11:54:15, Info CBS Reboot mark refs: 0
    2015-04-30 11:54:15, Info CBS SQM: Reporting package change for package: Microsoft-Windows-InternetExplorer-Package-TopLevel~31bf3856ad364e35~amd64~~11.2.9600.16428, current: Absent, pending: Default, start: Absent, applicable: Installed, target: Installed, limit: Installed, hotpatch status: DisabledBecauseNoHotpatchPackagesInitiated, status: 0x0, failure source: Execute, reboot required: False, client id: DISM Package Manager Provider, initiated offline: False, execution sequence: 447, first merged sequence: 447
    2015-04-30 11:54:15, Info CBS SQM: Upload requested for report: PackageChangeBegin_Microsoft-Windows-InternetExplorer-Package-TopLevel~31bf3856ad364e35~amd64~~11.2.9600.16428, session id: 142859, sample type: Standard
    2015-04-30 11:54:15, Info CBS SQM: Ignoring upload request because the sample type is not enabled: Standard
    2015-04-30 11:54:15, Info CBS SQM: Reporting package change completion for package: Microsoft-Windows-InternetExplorer-Package-TopLevel~31bf3856ad364e35~amd64~~11.2.9600.16428, current: Staged, original: Absent, target: Installed, status: 0x80004005, failure source: Execute, failure details: "(null)", client id: DISM Package Manager Provider, initiated offline: False, execution sequence: 447, first merged sequence: 447
    2015-04-30 11:54:15, Info CBS SQM: execute time performance datapoint is invalid. [HRESULT = 0x80070490 - ERROR_NOT_FOUND]
    2015-04-30 11:54:15, Info CBS SQM: Win SAT assessment state is invalid.
    2015-04-30 11:54:15, Info CBS SQM: average disk throughput datapoint is invalid [HRESULT = 0x80004005 - E_FAIL]
    2015-04-30 11:54:15, Info CBS SQM: Upload requested for report: PackageChangeEnd_Microsoft-Windows-InternetExplorer-Package-TopLevel~31bf3856ad364e35~amd64~~11.2.9600.16428, session id: 142862, sample type: Standard
    2015-04-30 11:54:15, Info CBS SQM: Ignoring upload request because the sample type is not enabled: Standard
    2015-04-30 11:54:15, Info CBS Enabling LKG boot option
    2015-04-30 11:54:15, Info CBS Exec: End: nested restore point - complete.
    2015-04-30 11:54:15, Info CBS Restored system sleep block state: 0x80000000
    2015-04-30 11:54:15, Info CBS Exec: Processing complete. Session: 30442220_3048098672, Package: Microsoft-Windows-InternetExplorer-Package-TopLevel~31bf3856ad364e35~amd64~~11.2.9600.16428 [HRESULT = 0x80004005 - E_FAIL]
    2015-04-30 11:54:15, Error CBS Failed to perform operation. [HRESULT = 0x80004005 - E_FAIL]
    2015-04-30 11:54:15, Info CBS Session: 30442220_3048098672 finalized. Reboot required: no [HRESULT = 0x80004005 - E_FAIL]
    i have tried checksur and it is giving this result
    =================================
    Checking System Update Readiness.
    Binary Version 6.1.7601.22471
    Package Version 25.0
    2015-04-30 11:44
    Checking Windows Servicing Packages
    Checking Package Manifests and Catalogs
    Checking Package Watchlist
    (f) CBS Watchlist Package Missing 0x80070002 Microsoft-Windows-EmbeddedCore-Package~31bf3856ad364e35~amd64~~0.0.0.0 Package_for_KB3012176~31bf3856ad364e35~amd64~~6.1.1.2 Package registry presence failed, possibly an orphaned package on package watchlist
    Checking Component Watchlist
    Checking Packages
    (f) CBS Registry Error 0x80070002 Package_for_KB3012176_SP1~31bf3856ad364e35~amd64~~6.1.1.2 failed to get CurrentState
    (f) CBS Registry Error 0x80070002 Package_for_KB3012176_SP1~31bf3856ad364e35~amd64~~6.1.1.2 failed to get Visibility
    Checking Component Store
    Summary:
    Seconds executed: 82
    Found 3 errors
    CBS Registry Error Total count: 2
    CBS Watchlist Package Missing Total count: 1
    This computer has been freshly imaged.
    Any help appreciated

  • Need To hide Tabs in RiskAssessment creation

    Hi All ,
    in EHSM while creating RISK ASSESSMENT the tabs RISKS AND TASKS should be invisible,But while maintaining or editing the created RISK ASESSMENTS the tabs should be visible.
    the component configuration is EHHSS_RAS_OIF
    the webdynpro component is FPM_OIF_COMPONENT.Please let me know the technical steps.
    Thanks&Regards
    Luxmi

    Hi Luxmi,
    I normally handle these types of requirements within the OIF application controller class (CL_EHHSS_RAS_OIF_CONTROLLER in your case). Within the OVERRIDE_EVENT_OIF() method, you should be able to create a post exit to do what you need to do. If you look at the standard code around line 48, you can see some examples of how to do this. Hope this helps.
    Thanks,
    James

  • How can I apply an image filter to an entire Applet?

    Hey there,
    I was wondering, is it possible to apply an image filter of sorts to an entire applet rather than to images? I'm writing a little game in java for a university project and basically I'm only using functions like drawrect and drawpolygon etc, and I want to apply fairly simple filters like blur etc. Is there any way I can achieve this kind of effect with the draw functions?
    Thanks
    -Spec

    You might do better in the 2-D or Swing forums.
    I don't have an answer, but it's an intriging problem. Basically you need to get all the components to paint themselves into the graphics context of an offscreen buffer, then apply the transformation, then paint the buffer onto the screen.
    (Some hackery must be involved though. For instance blurring, by definition, means that components will have an onscreen appearance outside their bounds. So you are sort of fighting against Swing's painting mechanism - if a portion of your applet, close to but outside the bounds of a particular component, becomes visible that component will have to redraw itself, although Swing won't know that.)
    2-d - http://forum.java.sun.com/forum.jspa?forumID=20
    swing - http://forum.java.sun.com/forum.jspa?forumID=57

  • Components moving on setVisible

    I have a function that creates a JPanel with some Components (a few JLabels, JTextFields, and a JButton). When the button is clicked, it may or may not cause one of the JLabels that was previously set to be invisible to be visible using Component.setVisible( true or false ).
    I found that whenever the JLabel was set to become visible, it caused all the other Components to move down about 20 pixels. Why did this happen, and what am I supposed to do about it?
    Here is a code example that shows what I mean. On the system I'm coding it on (Windows with JDK 1.3.1) clicking the button causes everything in the JPanel to move down.
    JPanel makeStartPane()
         JPanel panel = new JPanel() ;
         panel.setLayout( null ) ;
         panel.setSize( width, height ) ;
         panel.setLocation( 0, 0 ) ;
         JLabel label1 = new JLabel( "some text" ) ;
         label1.setSize( 75, 18 ) ;
         label1.setLocation( 5, 30 ) ;
         panel.add( label1 ) ;
         JLabel label2 = new JLabel( "some more text" ) ;
         label2.setSize( 100, 18 ) ;
         label2.setLocation( 5, 50 ) ;
         label2.setVisible( false ) ;       // this one starts off invisible
         panel.add( label2 ) ;
         JButton button = new JButton( "click me" ) ;
         button.setSize( 90, 25 ) ;
         button.setLocation( 5, 75 ) ;
         panel.add( button ) ;
         button.addActionListener( new ActionListener()
              public void actionPerformed( ActionEvent e )
                   // set to visible here
                   getContentPane().getComponent( 1 ).setVisible( true ) ;
         return panel ;
    setContentPane( makeStartPane() ) ; // set the current pane to the start pane

    I done this small test, and it look ok:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Tjf extends JFrame 
    public Tjf()
         super();
         setBounds(6,6,400,300);     
         addWindowListener(new WindowAdapter()
        {     public void windowClosing(WindowEvent ev)
                   dispose();     
                   System.exit(0);
         setContentPane(makeStartPane());
         MenuBar mb   = new MenuBar();
              Menu mm      = new Menu("Option");
         MenuItem mi  = new MenuItem("New");
           mb.add(mm);
         mm.add(mi);
         setMenuBar(mb);
         setVisible(true);     
    public JPanel makeStartPane()
         JPanel panel = new JPanel();
         panel.setLayout(null);
    //     panel.setSize(200,200);
         panel.setLocation(0,0);
         JLabel label1 = new JLabel("some text");
         label1.setSize(75,18) ;
         label1.setLocation(5,30);
         panel.add(label1);     
         JLabel label2 = new JLabel("some more text") ;
         label2.setSize(100,18 ) ;
         label2.setLocation(5,50 ) ;
         label2.setVisible(false) ;
    // this one starts off invisible
         panel.add(label2) ;     
         JButton button = new JButton("click me");     
         button.setSize(90,25);     
         button.setLocation(5,75);
         panel.add(button);
         button.addActionListener(new ActionListener()
              public void actionPerformed(ActionEvent e)
                   getContentPane().getComponent(1).setVisible(true);     
         return(panel);
    public static void main (String[] args)
         new Tjf();  
    }       Noah
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Tjf extends JFrame
    public Tjf()
         super();
         setBounds(6,6,400,300);     
         addWindowListener(new WindowAdapter()
    {     public void windowClosing(WindowEvent ev)
                   dispose();
                   System.exit(0);
         setContentPane(makeStartPane());
         MenuBar mb = new MenuBar();
    Menu mm = new Menu("Option");
         MenuItem mi = new MenuItem("New");
         mb.add(mm);
         mm.add(mi);
         setMenuBar(mb);
         setVisible(true);     
    public JPanel makeStartPane()
         JPanel panel = new JPanel();
         panel.setLayout(null);
    //     panel.setSize(200,200);
         panel.setLocation(0,0);
         JLabel label1 = new JLabel("some text");
         label1.setSize(75,18) ;
         label1.setLocation(5,30);
         panel.add(label1);     
         JLabel label2 = new JLabel("some more text") ;
         label2.setSize(100,18 ) ;
         label2.setLocation(5,50 ) ;
         label2.setVisible(false) ;
    // this one starts off invisible
         panel.add(label2) ;     
         JButton button = new JButton("click me");     
         button.setSize(90,25);     
         button.setLocation(5,75);
         panel.add(button);
         button.addActionListener(new ActionListener()
              public void actionPerformed(ActionEvent e)
                   getContentPane().getComponent(1).setVisible(true);     
         return(panel);
    public static void main (String[] args)
         new Tjf();

  • Printing with jdk1.1.8

    Hi...I am developing an application for mac(classic) where i need to provide the print functionility.Now Mac supports only upto jdk1.1.8.Has someove ever developed printing with this...code will definetly help.........

    You should start with java.awt.Toolkit.getPrintJob(java.awt.Frame, java.lang.String, java.util.Properties)
    to obtain a PrintJob.
    From the PrintJob object you can get a Graphic by using the Method getGraphics().
    On you first try, produce the Output for the page in some visible AWT component, so you can see it.
    E.g. put your stuff in a panel and add this panel to a Window.
    Then print the Top-Level Component ( thats the panel) that contains your Output by
    calling printAll(Graphics g) on it, with the Graphics object from above.
    Notes:
    You have to take care for Printer borders - your output will be clipped there.
    Code was tested on JDK 1.3, but is designed for JDK 1.1
    Example: Test.java
    import java.awt.*;
    import java.awt.event.*;
    public class Test {
    static Frame f;
    static Panel panelToPrint;
    static class Handler implements ActionListener {
    public void actionPerformed(ActionEvent e) {
    //get a PrintJob (opens the native window)
    PrintJob pj = Toolkit.getDefaultToolkit().getPrintJob(f, "Print-Test", null);
    //get a graphics object to draw on
    Graphics g = pj.getGraphics();
    panelToPrint.printAll( g );
    //end the print job, now it is sent to the printer
    pj.end();
    f.dispose();
    public static void main(String args[]) {
    f = new Frame("Test");
    Button b = new Button("Print...");
    b.addActionListener(new Handler());
    f.add(b,"South");
    panelToPrint = new Panel();
    panelToPrint.add(new Label("Hello World"));
    panelToPrint.add(new Label("Hello World"));
    panelToPrint.add(new Label("Hello World"));
    panelToPrint.add(new Label("Hello World"));
    panelToPrint.add(new Label("Hello World"));
    panelToPrint.add(new Label("Hello World"));
    panelToPrint.add(new Label("Hello World"));
    panelToPrint.add(new Label("Hello World"));
    panelToPrint.add(new Label("Hello World"));
    panelToPrint.add(new Label("Hello World"));
    f.add(panelToPrint, "Center");
    f.setSize(new Dimension(300,400));
    f.setVisible(true);

  • How to add padding to s:Scroller?

    I have used scroller for my custom component:
    <s:Scroller top="0" width="100%" verticalScrollPolicy="auto" height="100%" >
         <components:propertyDetails  left="20" right="20" id="propDetails"  />
    </s:Scroller>
    My custom component is a group:
    <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
               xmlns:s="library://ns.adobe.com/flex/spark"
               xmlns:mx="library://ns.adobe.com/flex/mx" height="100%" width="100%" xmlns:components="components.*">
         <s:layout>
              <s:VerticalLayout gap="0" paddingRight="10" paddingTop="5" paddingBottom="5" paddingLeft="0" />
         </s:layout>
         <!--  Some code here -->
    </s:group>
    I want paddingRight to be 10 only if scrollbar appears on page, otherwise padding should be 0.
    In simple words i need a gap of 10 pixels in scrollbar and component if scrollbar is visible, otherwise component should use that space.
    Is this possible to achieve?
    Best Regards,
    Alok Jain

    Hi,
    I was just trying to do the same thing. And I thought this would be simple...
    Ok so minViewportInset doesn't work. my v scroll bar is about 20 px width and If I set this property to 50px the viewport gets smaller by 50 px from all sides when there is no scroller visible. And when it is visible it's located on the same spot where it would be if you had minViewportInset="1";
    So this is like a permanent not depending on the scroller visibility condition.
    What I need is simply as the guy who posted this post. When there is no scroller - full size viewport, when there is I want 10px padding for my text.
    Shongrunder could you tell if there is some developement on this matter, I see this topic is from long time ago. If no then what should I do:
    1) scrollerLayout or 2) individual VScrollBar. I need the easiest solution
    Also if the guy who posted this question found a good work around this, please share it
    Thanks!

Maybe you are looking for

  • Can't use credit card

    I can't use credit card to purchase any thing inside itune. Can you please do not block me. Please open it now urgently. Thank you.

  • How do you calculate the age of a query?

    Hi, We are trying to determine how old a query is?  Do one of the statistical cubes/queries contain the age or created on date of a query? Thanks for you help.  Points will be rewarded for the correct answer. Thanks, Mike

  • In Flat File Load last 3 data

    Hi Friends I have a Source system as a Flat File.. All data Packets are loaded but last 3 data packets are not updated and it is still running, and they did not use PSA. In transfer ruls/Update Rules all are showing updated in Monitor, but 3 Data Pac

  • HT201342 what is the benefit to using @icloud for email

    Just wondering what the benefit is to using @icloud.com vs @me.com?

  • Document Dimensions "Box" Disappeared (black box)

    I started Illustrator CS3 today and the dimensions box is no longer visible when I create a new document (sorry, I don't know the term for what I am trying to describe).  Instead of the usual "black box" that shows my canvas, Illustrator loads a Gree