Swing Components not displaying in a JFrame

Hi,
I have a JFrame with a couple of JLabels, JButtons etc. and a Choice Combo Box
my problem is that when i run the program the only component that gets displayed at first is Choice and in order for me to see the swing components i have to roll over them with my mouse and the JLabels dont even display when i do that..
Does anyone know how i can fix this please?
here is my code
import java.awt.*;
import java.awt.event.*;
import java.lang.*;
import java.awt.Image.*;
import java.io.*;
import java.net.*;
public class ImageViewerAnim extends JFrame {
     private JLabel perc, scale;
     private JTextField inPercent;
     private JButton draw, muteOn;
     private JPanel sPanel;
     private String[] pics = {"Earth", "Moon", "Jupiter", "Pluton", "Neptun"};
     private String[] picsFile = {"images/earth.gif", "images/moon.gif", "images/jupiter.jpg", "images/pluton.jpg", "images/neptun.jpg"};
     private String[] soundsFile = {"sounds/tada.wav", "sounds/notify.wav", "sounds/ding.wav", "sounds/chimes.wav", "sounds/chimes.wav"};
     private Choice ch;
     private Image pic;
     private AudioClip sound = null;
     private int scaleAm = 0;
     private int origScale = 500;
     private int finalScale = 0;
     private boolean proceed = true;
     public ImageViewerAnim() {
          Container c = getContentPane();
          c.setLayout(new BorderLayout());
          sPanel = new JPanel();
          ch = new Choice();
          for(int i = 0; i < pics.length; ++i) {
               ch.add(pics);
          scale = new JLabel("Scale");
          perc = new JLabel("%");
          inPercent = new JTextField(5); // scale value input field
          draw = new JButton("Draw");
          draw.setBorder(BorderFactory.createEtchedBorder());
          draw.addActionListener(new ActionListener() {
               public void actionPerformed(ActionEvent e) {
                    int index = 0;
                    index = ch.getSelectedIndex();
                    pic = null;
                    repaint();
                    pic = (Toolkit.getDefaultToolkit().getImage(picsFile[index]));
                    try{
                    File f = new File(soundsFile[index]);
                    sound = Applet.newAudioClip(f.toURL());
                    }catch(MalformedURLException mfe) {
                         mfe.printStackTrace();
                    if(!inPercent.getText().equals("")) {
                         scaleAm = Integer.parseInt(inPercent.getText()); // get the scale amount from the user
                         finalScale = ((origScale * scaleAm)/100); // calculate the final scale amount based on what the user entered
                    }else {
                         finalScale = origScale; // default to original size of the image if no value for scale was entered
                    // creates a scaled instance of an image and takes the amount of scale as an argument
                    repaint();
                    sound.loop();
          muteOn = new JButton("Mute On");
          muteOn.addActionListener(new ActionListener() {
               public void actionPerformed(ActionEvent e) {
                    sound.stop();
                    muteOn.setText("MuteOff");
          sPanel.add(ch);
          sPanel.add(scale);
          sPanel.add(inPercent);
          sPanel.add(perc);
          sPanel.add(draw);
          sPanel.add(muteOn);
          c.add(sPanel, BorderLayout.SOUTH);
          repaint();
public void paint(Graphics g) {
     if(pic!=null) {
          g.drawImage(pic,0,0,this);
public static void main(String args[]) {
     ImageViewerAnim app = new ImageViewerAnim();
     app.setSize(500,500);
     app.setVisible(true);
     app.setDefaultCloseOperation(EXIT_ON_CLOSE);
     app.show();
thank you in advance
Ivo

for future reference
i was able to fix this by adding
super.paint(g);in the first line of my paint method
Ivo

Similar Messages

  • Swing components not displaying correctly in JApplet

    Hello everyone,
    I have experienced some strange problems using Swing components on JApplets. Maybe I missed some documentation somewhere and someone can help me out.
    The problem is that when I add components like JButtons,
    JCheckboxes, JRadioButtons, JTextFields, JPasswordFields,
    and JComboBoxes to JApplets, when I view the applet, the
    component does not become visible until I move the mouse
    pointer over it in the case of buttons. For the JComboBox I have
    to hit the mouse key many times on the component to see the list. Has anyone experienced problems like these? Thanks.
    Keith

    check what is in ur paint(Graphic g) method. if it does nothing, remove the paint(Graphic g) method. if it has some codes, double check ur codes.

  • Why the JTable do not display in the JFrame? Thanks!

    Why the JTable do not display in the JFrame?
    Thanks for your help.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class test extends JFrame implements ActionListener {
         JButton button=new JButton("Click");
         public test(){
              JFrame frame=new JFrame("abc");
         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.getContentPane().add(button, BorderLayout.NORTH);
              button.addActionListener(this);
              frame.setVisible(true);
         public void actionPerformed(ActionEvent event) {
              String[] columnNames = {"First Name","Last Name","Sport","# of Years","Vegetarian"};
              Object[][] data = {{"Mary", "Campione","Snowboarding", new Integer(5), new Boolean(false)}};
              JTable table = new JTable(data, columnNames);
              table.setPreferredScrollableViewportSize(new Dimension(500, 70));
              JScrollPane scrollPane = new JScrollPane(table);
         getContentPane().add(scrollPane, BorderLayout.NORTH);
         public static void main(String args[]){
              test t=new test();
    }

    Problem solved.
    Thanks!

  • Swing Panels-not displaying correctly

    I have created a GUI using Panels. Panels are created at runtime and added to the GUI dynamically.
    But content of these panels are not displayed properly. For beg. some items appear only when I move the mouse over them. When I resize the GUI, content of the Panels are disappeared.

    In the future, Swing related questions should be posted in the Swing forum.
    Panels are created at runtime and added to the GUI dynamically.You need to use the revalidate() method on the Container that you add the panels to. This will cause the LayoutManager to be invoked and all the panels will be repainted in there new location.

  • Swing is not displaying urdu

    hi,
    i am developing an application in Swing, i am setting URDU(Pakistan national language) with the help of setText() method in Netbeans 6.0 IDE, when i see preview it dispaly urdu correctly,But when i run application it display ?????????? this.
    any body help me how can i solve this problem.........

    we can do this by using UNICODE.
    for example
    this.textField.setText("\u0633\u0648\u0627\u0644");it display Urdu in swing Text Field. you can do this with other swing components like button, label ..etc
    Edited by: aftab_ali on Jun 30, 2008 10:24 AM

  • Swing components not visible

    Hello,
    My big and ununderstandable problem is that i have developed my application under eclipse IDE and it works perfectly well, the application has A JTabbedPane with 6 Tabs consisting of a JEditPane first 5 and the last one consisting of a JSplitPane, which inside it�s got another JSplitPane which inside has a JScrollPane wrapping a Jtable.
    This works marvelous on my development station, but when i export it to a Jar file and execute it on another machine, all the first 5 tabs are displayed perfectly when i click on them. But the last one doesn�t, if i roll over the places and click i can obtain the functionality but can�t see well most of the swing components.
    Thank you very much in advance for your attention.

    In the absence of code I can only guess. Here's my first guess. You used a Panel instead of a JPanel for the tab.

  • A Components not displayed in JDialog opened from Applet.

    Hi. I have an Applet from which I am opening a JDialog, that contains a JPanel with some JTextFields. Sometimes half of textfields are not displayed. Does anybody know something about such problem?

    When you say sometimes do you mean sometimes or do
    you mean all the time?sometimes.
    In general when you have a condition that only
    sometimes occurs this is the result of a race
    condition. Assuming that this is something you see
    only sometimes, my guess is that you are displaying
    the dialog (calling setVisible(true)) before you have
    finished adding all the componentsYep. you are 100% right. found it. it was not synchronized lazy initialization called from some callbacks in different threads. ;)

  • Fonts used in HTML rendered components not displayed

    Hi all,
    I have a problem using fonts in components with text that is being rendered by the HTML renderer.
    It's the exact same problem as described in this topic;
    http://forum.java.sun.com/thread.jspa?forumID=257&threadID=222691
    but no solution found...
    When I do this, my font isn't displayed (only the default SansSerif font is used at this point);
    JLabel label = new JLabel("<html>a text</html>");
    InputStream fontStream = getClass().getResourceAsStream("SystemVIO.ttf");
    Font font = Font.createFont(Font.TRUETYPE_FONT, fontStream);
    label.setFont(font.deriveFont((float)12));SystemVIO is placed in a JAR-file (loaded in my classpath).
    And when I do this, it is displayed correctly;
    InputStream fontStream = getClass().getResourceAsStream("SystemVIO.ttf");
    Font font = Font.createFont(Font.TRUETYPE_FONT, fontStream);
    JLabel label = new JLabel("<html>a text</html>");
    label.setFont(font.deriveFont((float)12));But the real problem here is, if one component is made with a HTML renderer, none of the other components can use a font if it's loaded after the FIRST component with HTML renderering is constructed.
    So, for some reason, the fonts aren't reloaded in the HTML renderer (is the html renderer native?) whenever I use createFont().

    Hi Sundar,
    if I understand your post properly, what your are doing in your BSP is executing a procedure to create an Adobe document, and then placing that document into the HTTP response.
    If you have built this code by following some of the blogs in SDN, you probably do something like...
    response->set_header_field( name  = 'content-type'
                                value = 'application/pdf' ).
    l_pdf_len = XSTRLEN( l_pdf_xstring ).
    response->set_data( data   = l_pdf_xstring
                        length = l_pdf_len ).
    navigation->response_complete( ).
    What this code does is change the type of the HTTP response to 'application/pdf', set the content of the HTTP repsonse to the PDF data stream, and finally signal the HTTP runtime that processing has completed.
    Once processing has been completed control is returned to the HTTP runtime. This means any further 'down-stream' code in your BSP will not be executed. This includes the Layout section of your BSP.
    It is not possible to send two responses, PDF data and HTML data, to a single HTTP request. If you want to show both on the same web page you need to embed the Adobe document into the HTML page using frames or some other method.
    Cheers
    Graham Robbo

  • Image will not display in a jFrame

    So, I had this working, but then I resized the jFrame and the image, and now it doesn't work. I even tried setting it back to the original size and it still doesn't work. I changed nothing else in the code.
    I'm using Netbeans IDE and this is a java desktop application so maybe it changed something without telling me. Any advice would be appreciated.
    ImageIcon bgmap = new ImageIcon("C:\\Users\\1\\Documents\\NetBeansProjects\\Timekeeper\\src\\timekeeper\\resources\\Sunlight.png");
    Image i = bgmap.getImage();
    ImageObserver Iob = null;
    //Al.setBackground(Color.black);
    //Al.setForeground(Color.black);
    jPanel3.getGraphics().drawImage(i, 0, 0, Iob);
    jPanel3.getGraphics().setPaintMode();

    pbrockway2 wrote:
    Make sure the image i is not null. Paint in a component's paintComponent() method (and unless there is some reason for doing so, don't keep recreating the image.)Added to that:
    1) If you mean JFrame, spell it correctly (with correct capitalisation) so we can be sure you are dealing with a JFrame as opposed to some 3rd party class that nobody here knows about, nor supports.
    2)
    ImageIcon bgmap = new ImageIcon("C:\\Users\\1\\Documents\\NetBeansProjects\\Timekeeper\\src\\timekeeper\\resources\\Sunlight.png");
    Image i = bgmap.getImage();
    ImageObserver Iob = null;
    //Al.setBackground(Color.black);
    //Al.setForeground(Color.black);
    jPanel3.getGraphics().drawImage(i, 0, 0, Iob);
    jPanel3.getGraphics().setPaintMode();How can you jam so much crap into so few lines?
    a) Try not to post code with lines that are commented out. That is just a waste of bandwidth.
    b) Declaring an ImageObserver and setting it to null before passing the null variable to the drawImage() method is a waste of a line, since you could directly pass 'null'. But..
    c) JPanels as well as many other components, implement an ImageObserver, so why the heck not pass the JPanel is ImageObserver, rather than 'null'?
    d) If you do not pass an image to something that is an ImageObserver, ensure it is loaded by using a MediaTracker.
    e) Never call getGraphics().
    f) Your call to setPaintMode() at the end of the lines. What did you expect that to do? Did you read the JavaDocs for the method, or did you just throw it in there for 'good luck'?
    In future, please consider posting code in the form of an SSCCE. For image based SSCCEs, you can hot-link to any of the [images at my site|http://pscode.org/media/#image].

  • Swing ProgressMonitor not displaying it's values

    While initializing an application, i want to use a ProgressMonitor and have following prob.
    When class with ProgressMonitor is launched using it's main, the PM is shown correctly.
    (to test, please run 'testApp').
    When class with PM is launched from DesktopPane, it isn't showing it's value's / progressbar.
    (to test, please run 'menu')
    TestApp
    import java.awt.Dimension;
    import javax.swing.JFrame;
    import javax.swing.JInternalFrame;
    import javax.swing.JLabel;
    import javax.swing.ProgressMonitor;
    public class TestApp
        extends JInternalFrame {
        ProgressMonitor pm;
         public TestApp() {
              setTitle("Swing-Application  PanelTest");
              add(new JLabel("Greetz from the programmer"));
            pm = new ProgressMonitor(this, "Building Resources...",
                      "Process is 0% complete",0, 100);
                 pm.setMillisToDecideToPopup(0);
                 pm.setMillisToPopup(0);
                 pm.setProgress(1);
                 myLoop();
                 pm.setProgress(50);
              pm.setNote("Process is 50% complete");
                 myLoop();
                 pm.setProgress(75);
              pm.setNote("Process is 75% complete");
                 myLoop();
             pm.setProgress(100);
              pm.setNote("Process is 100% complete");
            pack();
            setVisible(true);
         public static void main(String[] args) {
              JFrame f = new JFrame();
            f.add(new TestApp());
            f.setPreferredSize(new Dimension(400,300));
            f.pack();
            f.setVisible(true);
         public void myLoop() {
                 for (int x=1;x<50000;x++){
                      System.out.println("waiting... " + x);
    }Menu
    import java.awt.BorderLayout;
    import java.beans.PropertyVetoException;
    import javax.swing.JDesktopPane;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JSplitPane;
    import javax.swing.JTree;
    import javax.swing.event.TreeSelectionEvent;
    import javax.swing.event.TreeSelectionListener;
    import javax.swing.tree.DefaultMutableTreeNode;
    public class Menu extends JFrame implements TreeSelectionListener{
        private JDesktopPane myDeskTop;
        private JPanel jContentPane = null;
        private JSplitPane jSplitPane = null;
        private JTree jTree = null;
        private TestApp myApp;
         * This is the default constructor
        protected Menu() {
            setContentPane(getJContentPane());
            setDefaultCloseOperation(javax.swing.JFrame.DISPOSE_ON_CLOSE);
            setSize(400, 300);
            setTitle("MyApplication");
            this.validate();
            setVisible(true);
         * Launches this application
        public static void main(String[] args) {
            Menu myApplication = new Menu();
             myApplication.setVisible(true);
        private JPanel getJContentPane() {
            if (jContentPane == null) {
                jContentPane = new JPanel();
                jContentPane.setLayout(new BorderLayout());
                jContentPane.add(getJSplitPane(), java.awt.BorderLayout.CENTER);
            return jContentPane;
        private JSplitPane getJSplitPane() {
            if (jSplitPane == null) {
                jSplitPane = new JSplitPane();
                jSplitPane.setLeftComponent(getJTree());
                myDeskTop = new JDesktopPane();
                jSplitPane.setRightComponent(myDeskTop);
                jSplitPane.setDividerLocation(150);
            return jSplitPane;
        private JTree getJTree() {
            if (jTree == null) {
                DefaultMutableTreeNode root = new DefaultMutableTreeNode("Root");
                DefaultMutableTreeNode newNode = new DefaultMutableTreeNode("Dept");
                newNode.add(new DefaultMutableTreeNode("application"));
                root.add(newNode);
                jTree = new JTree(root);
                jTree.addTreeSelectionListener(this);
            return jTree;
        public void valueChanged(TreeSelectionEvent event) {
            try {
                String selectedApplication = jTree.getLastSelectedPathComponent().toString();
                if (selectedApplication.equals("application")){
                     myApp = new TestApp();
                    myDeskTop.add(myApp);
                    myApp.pack();
                    myApp.setClosable(true);
                    try {
                        myApp.setMaximum(true);
                    } catch (PropertyVetoException e){}
                    myApp.setVisible(true);
                    myApp.toFront();
            } catch (Exception e){}
    }

    In order not to block the event dispatch thread (GUI update) you have to put the progress monitor in an own thread. Here I put your whole app in the thread:
        public void valueChanged(TreeSelectionEvent event) {
            try {
                String selectedApplication = jTree.getLastSelectedPathComponent
    ().toString();
                if (selectedApplication.equals("application")){
               Thread t = new Thread(new Runnable() {
              public void run() {
                        myApp = new TestApp();
                      myDeskTop.add(myApp);
                      myApp.pack();
                      myApp.setClosable(true);
                      try {
                        myApp.setMaximum(true);
                      } catch (PropertyVetoException e){}
                      myApp.setVisible(true);
                      myApp.toFront();
               t.start();
            } catch (Exception e){}
        }

  • Help JTree is not displaying inside of JFrame

    Hello,
    I have a frame application, inside the frame I have a jtable. when the users double click on a row from the table. I want to display an internalJFrame, which contain a tree with data on it. I try different combination with no luck. Below is the code where I am calling the internalJFrame and the internalJFrame code. Thank you for your help.
    //calling internal frame (hierarchicalPanel)
    if (e.getClickCount () == 2) {
    try {
    String tempID = jTable1.getValueAt(jTable1.getSelectedRow(), 0).toString();
    selectedID = Long.parseLong(tempID);
    }catch (NumberFormatException nfe) {
    hierarchicalPanel = new HierarchicalPanel(selectedID);
    hierarchicalPanel.setAddedToDesktop (true);
    desktop.add(hierarchicalPanel);
    hierarchicalPanel.setVisible(true);
    //internal frame class
    private HierarchalView hierarchalView;
    //tree stuff
    private DefaultMutableTreeNode root = null;
    private DefaultTreeModel treeModel;
    private CommRecord commRec;
    private InstalledComponent installedAComponent;
    private InstalledComponent installedZComponent;
    private static boolean addedToDesktop;
    /** Creates new form Hierarchical */
    public HierarchicalPanel(long sipID) {
    initComponents();
    hierarchalView = new HierarchalView();
    createNodes(sipID);
    createTree();
    * create a JTree
    public void createTree() {
    jTree1 = new JTree(treeModel);
    jTree1.putClientProperty("JTree.lineStyle", "Angled");
    jTree1.getSelectionModel()
    .setSelectionMode(TreeSelectionModel
    .DISCONTIGUOUS_TREE_SELECTION);
    jTree1.setOpaque(false);
    // tree.setCellRenderer(new AlphaRenderer());
    jTree1.expandRow(0);
    //this.llistenToTree(treeModel);
    //popup();
    //return tree;
    * Add nodes to model
    public void createNodes(long sipID){
    DefaultMutableTreeNode root = null;
    DefaultMutableTreeNode node = null;
    DefaultMutableTreeNode child = null;
    commRec = hierarchalView.getComRec(sipID);
    long aComponentID = commRec.getSiteAInstalledComponent().getId();
    long zComponentID = commRec.getSiteZInstalledComponent().getId();
    long comID = commRec.getId();
    //String desc = getSipData(sipID).getCustomerName();
    root = new DefaultMutableTreeNode("SIP ID" + sipID);
    treeModel = new DefaultTreeModel(root);
    node = new DefaultMutableTreeNode("Communication ID");
    root.add(node);
    child = new DefaultMutableTreeNode("A InstallComponent " + aComponentID );
    node.add(child);
    child = new DefaultMutableTreeNode("Z InstallComponent " + zComponentID );
    node.add(child);
    System.out.println("finish inside node********");
    /** This method is called from within the constructor to
    * initialize the form.
    * WARNING: Do NOT modify this code. The content of this method is
    * always regenerated by the Form Editor.
    private void initComponents() {
    jPanel1 = new javax.swing.JPanel();
    jTree1 = new javax.swing.JTree();
    jPanel1.setLayout(new java.awt.BorderLayout());
    jPanel1.setMinimumSize(new java.awt.Dimension(5, 100));
    jPanel1.setPreferredSize(new java.awt.Dimension(5, 100));
    jTree1.setMaximumSize(new java.awt.Dimension(78, 50));
    jTree1.setMinimumSize(new java.awt.Dimension(80, 20));
    jTree1.setPreferredSize(new java.awt.Dimension(100, 50));
    jPanel1.add(jTree1, java.awt.BorderLayout.CENTER);
    getContentPane().add(jPanel1, java.awt.BorderLayout.NORTH);
    pack();
    * Called whenever the value of the selection changes.
    * @param e the event that characterizes the change.
    public void valueChanged(TreeSelectionEvent e) {
    /** Getter for property addedToDesktop.
    * @return Value of property addedToDesktop.
    public boolean isAddedToDesktop () {
    return addedToDesktop;
    /** Setter for property addedToDesktop.
    * @param addedToDesktop New value of property addedToDesktop.
    public void setAddedToDesktop (boolean addedToDesktop) {
    this.addedToDesktop = addedToDesktop;

    You forgot insert it into treeModel

  • Images uploaded in Shared Components not displaying

    We recently installed version 4.2.1 on a new dedicated server. The entire setup went through without error.
    The default images found in apex (/i/apex/builder/ etc.) are all visible. But when we upload any image through Shared Components > Images do not show on screen. An entry is available in the report on the Images page but the image itself is blank. The URL of the image is shown as : "+http://hostname:port/apex/wwv_flow_file_mgr.get_file?p_security_group_id=100000&p_flow_id=100&p_fname=Sampleimage.jpg+". The image is available in the wwv_flow_file_objects$ table and can be viewed through the BLOB_CONTENT column. But it is not visible in the front end.
    Is there a solution to this issue?
    Thanks,
    Aniket

    AniketP wrote:
    We recently installed version 4.2.1 on a new dedicated server. The entire setup went through without error.
    The default images found in apex (/i/apex/builder/ etc.) are all visible. But when we upload any image through Shared Components > Images do not show on screen. An entry is available in the report on the Images page but the image itself is blank. The URL of the image is shown as : "+http://hostname:port/apex/wwv_flow_file_mgr.get_file?p_security_group_id=100000&p_flow_id=100&p_fname=Sampleimage.jpg+". The image is available in the wwv_flow_file_objects$ table and can be viewed through the BLOB_CONTENT column. But it is not visible in the front end.Is the image associated with an application (No Application Associated)? If not then consider using the #APP_IMAGES# substitution istring nstead of #WORKSPACE_IMAGES#

  • Fl.* components not displaying correctly, getting error 2007 and 1009. help me please

    Hi guys,
    I am trying to make my application use Flash components, but I have a problem with displaying them correctly. I've used Flash CS5 to export them into .SWC. In Flex it seems that their graphics doesn't load, and below is a screenshot how it looks with a Button and UILoader. I couldn't find any solution, as I've searched other forums.
    And also I've selected all flash components to be included in the .SWC library, but almost half of them is missing when I include the file in Flex. Is maybe some catalog corrupted or is it an issue with Flash CS5? I hope somebody can help please!
    I when I try to use the .SWC in in Flash I get this:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at fl.containers::ScrollPane/drawBackground()
    at fl.containers::ScrollPane/draw()
    at fl.core::UIComponent/callLaterDispatcher()
    TypeError: Error #2007: Parameter child must be non-null.
    at flash.display::DisplayObjectContainer/addChildAt()
    at fl.controls::BaseButton/drawBackground()
    at fl.controls::BaseButton/draw()
    at fl.core::UIComponent/drawNow()
    at fl.controls::ScrollBar/draw()
    at fl.core::UIComponent/callLaterDispatcher()

    Hi guys,
    I am trying to make my application use Flash components, but I have a problem with displaying them correctly. I've used Flash CS5 to export them into .SWC. In Flex it seems that their graphics doesn't load, and below is a screenshot how it looks with a Button and UILoader. I couldn't find any solution, as I've searched other forums.
    And also I've selected all flash components to be included in the .SWC library, but almost half of them is missing when I include the file in Flex. Is maybe some catalog corrupted or is it an issue with Flash CS5? I hope somebody can help please!
    I when I try to use the .SWC in in Flash I get this:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at fl.containers::ScrollPane/drawBackground()
    at fl.containers::ScrollPane/draw()
    at fl.core::UIComponent/callLaterDispatcher()
    TypeError: Error #2007: Parameter child must be non-null.
    at flash.display::DisplayObjectContainer/addChildAt()
    at fl.controls::BaseButton/drawBackground()
    at fl.controls::BaseButton/draw()
    at fl.core::UIComponent/drawNow()
    at fl.controls::ScrollBar/draw()
    at fl.core::UIComponent/callLaterDispatcher()

  • V2 components not displaying content

    I've got an application that I'm developing that creates and
    displays several forms from an XML file. The form is created on an
    MC inside of a ScrollPane by attaching MCs to it. The MCs contain
    one component each (just TextInputs, TextAreas and ComboBoxes for
    now). When I'm only displaying TextInputs and Areas, it works
    perfectly. But when I diplsay a ComboBox, something breaks - and no
    data is displayed in the components. I can type in them and the
    data is saved (i can trace "instance.text" and the correct data is
    returned), but I can't see it. If I have the app redraw the form
    several times, it all starts working again, but will break again
    the very next time.
    I don't know if it's a depth conflict or the mask isn't being
    applied to the component MC's text field properly. I'm at a loss,
    but I need to find a solution.
    Thanks!

    anyone have any idea? at least clues to where i should
    look?

  • ADF Faces 16 Components not displaying in Disign Tab

    I am trying to create a page with the ADF Faces Table component. When I add the component to the page it tells me to restart JDeveloper (as expected). When I restart JDev the page shows up blank in the designer tab. The source tab seems to have all the code.
    Also, when I run the project the page does display with the header text but without the table.
    Any ideas on how to get the components to show in the designer?

    btw, here is the jsp code:
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/EA16"
    xmlns:afh="http://xmlns.oracle.com/adf/faces/EA16/html">
    <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
    doctype-system="http://www.w3.org/TR/html4/loose.dtd"
    doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <f:view>
    <afh:html binding="#{backing_JSFCustomerUwq.html1}">
    <afh:head title="JSFCustomerUwq"
    binding="#{backing_JSFCustomerUwq.head1}">
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1252"/>
    <style type="text/css">
    body {
    background-color: #ffffff;
    </style>
    </afh:head>
    <afh:body binding="#{backing_JSFCustomerUwq.body1}">
    <link href="css/blaf.css" rel="stylesheet" media="screen"/>
    <h2>
    My Delinquent Customer Work List
    </h2>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    <af:table binding="#{backing_JSFCustomerUwq.table1}" banding="Row"
    bandingInterval="2" rows="5"
    value="#{CustomerUwqBean.customers}" var="DelCustomers"/>
    </p>
    </afh:body>
    </afh:html>
    </f:view>
    </jsp:root>

Maybe you are looking for

  • How to skin a cat? Or maybe a BoxDivider?

    Ok, I'm pretty new to all of this, and learning lots every day I work with it. I would simply like to make the dividers on my 3-panel DividedBox "pretty". I'm thinking that adding a small tiled bitmap as the divider would be a good approach. But I'd

  • How to create game in flex3 to run from cd?

    I want to create a game in flex3 (action script project). I have created game in flash 8 and flash cs3 to run from cd. But I dont know how create a game using as3 in flex 3 for cd. I am new in flex. can anyone guide me? I just need a guidance of what

  • Oracle EBS is patehtically working on VM Ware although it has same specs as of physical machine.

    Hi Everyone, We are running Oracle EBS on Physical machine having specs as follows: DB X2 Quad Core Xeon 2.4 GHz 32 GB RAM x2 146GB SAS Drive with RAID-1 for OS SAN HDD x10 450GB SAS 15K i.e. 4.0TB but RAID-5 implemented (2.3TB allotted to DB) x4 NIC

  • ORA-12154: TNS:Could not resolve service name. (WIS 10901).

    HI Gurus, we have the following scenario... Weu2019ve installed Busines Objects EDGE 3.1 SP3. The server of this installation is MS Windows Server 2003 Enterprise Edition SP2, Intel ® Xeon Enterprise TM CPU 2.80 GHz 6.5 RAM. In the Server we have SAP

  • Attaching a file

    Hi Experts, I am trying to write this program which will attach a file to the screen with the click of a button. I am using FM f4_filename. Whtever code I have written so far I am pasting it here can you please help me out to execute it successfully