Showing swing components in the palette og jdeveloper

hello, I have found a problem with jdeveloper, as a user uses jdeveloper since 2 years I have never found a problem like this. (IDE problem).
like habitude I created a simple java project which contains a jframe and an entry class (main class), but when I try to drag and drop from the component palette somes swing components I didn't find
the page of swing components ( I found in the components palette just "my components" page in the jcombobox selection category). this problem will delay a big project and causes big problems
please any person who know some things help me as soon as possible.
Best Regards.

Check this post -
showing palette containing JButton,JLabel,JPanel ... components

Similar Messages

  • DID YOU KNOW?? - ABOUT ADVANCED COMPONENTS IN THE PALETTE??

    <br>
    Hi All,
    DID YOU KNOW??
    The IDE ships with the following Advanced Components in the Palette.
    These advanced components are a set of JavaServer Page markup tags for advanced users. The components have no visual appearance and are useful to developers with experience in JSP and JavaServer Faces technologies.
    * Encoding
    * Faces Action Listener
    * Faces Converter
    * Faces Validator
    * Faces Value Change Listener
    * Faces Verbatim
    * Link
    * Load Bundle
    * Markup
    * Meta
    * Parameter
    * Script
    Lets look at MARKUP component in more detail.
    The MARKUP Component
    You can drag the Markup component Markup component icon from the Palette's Advanced category to the Visual Designer to create a standard HTML tag. The Markup component enables you to insert HTML elements into the JSP page in places that HTML is not permitted.
    When you drop this component on a page in the Visual Designer, you cannot see it on the page until you set the tag property. You can see it in the Outline window and you can select it there to edit its properties in the Properties window.
    Use the tag property to specify the type of HTML element to insert. For instance, to insert an <hr> tag, set the tag property to hr with no angle brackets and select the singleton property .
    To provide compliance with XHTML, if the HTML element you are inserting is a singleton element, you must specify the singleton property, which causes a trailing /> to be generated in the rendered HTML. For example, the <br> element is a singleton element that must be rendered as
    to make it XHTML compliant.
    If you want to specify HTML attributes in addition to id and style for the element you are inserting, use the extraAttributes property.
    Learn more :-
    http://developers.sun.com/prodtech/javatools/jscreator/reference/docs/help/2update1/components/advanced_list.html
    We would like to know the following from you :-
    1) Are you using these Advanced Components in applications you are building? If so How and Where?
    2) Did you face any challenges while using them?
    3) Did you find any special usages/scenarios for using these components?
    Thanks for all your inputs and for joining in the discussion.
    K
    </br>

    What would you like in the documentation? Do you have specific questions about particular components? Do you want examples? What's missing from the online help at http://developers.sun.com/prodtech/javatools/jscreator/reference/docs/help/2update1/components/advanced_list.html?

  • Not getting swing components when the applet reloads

    I am facing one problem that is related to reloading of swing components. I Have a JPanel inside JApplet which contains some swing components and a button to launch the same JPanel again in the JApplet. When I click on the button the JPanel should get added in the JApplet once again below the upper JPanel. But new JPanel is not getting displayed although the reference of the new JPanel is created.

    My guess is that you haven't added your swing components to the right place. Are you adding them to the contentpane?

  • DID YOU KNOW?? - ABOUT DATAPROVIDER COMPONENTS IN THE PALETTE??

    Hi All,
    DID YOU KNOW??
    Practically all applications entail accessing data of some sort, often data stored in a relational database table or some sort of list, such as a vector or an array. Usually you need to read in data from the data source, but many times you have to update that data, too. The Sun Java Studio Creator integrated development environment, as another enhancement to its application model, provides data provider components that simplify accessing data sources, regardless of whether the data source is a relational database table, flat file, web service, vector, array, or some other type of data store.
    A data provider component is a nonvisual abstraction for wrapping sources of data, and it represents a more generic and flexible data binding mechanism. A glance at the Palette indicates that there are many different kinds of data providers available to you. These include data providers for cached RowSets, ResultSets, lists, arrays, maps, table rows, and method results.
    These data providers constitute a layer between a web application's components and its persistence tier, such as a database table, Array object, or Enterprise JavaBean object. This layer enables you to access data in a consistent way, even though data may come from different sources.
    Lets briefly discuss the CachedRowSetDataProvider
    The CachedRowSetDataProvider Component
    A CachedRowSetDataProvider is a wrapper to data held in a CachedRowSet. The primary purpose of a CachedRowSetDataProvider is to facilitate binding to components in the IDE. A CachedRowSet stores the data retrieved from a database. In fact, the only information held by the CachedRowSetDataProvider is a cursor position into the CachedRowSet. Multiple CachedRowSetDataProvider instances can reference the same CachedRowSet, and each instance will have its own cursor position into the CachedRowSet.
    Learn more :-
    Working With Data Providers
    http://developers.sun.com/jscreator/learning/tutorials/2/dataproviders.html
    Data Provider Components in Java Studio Creator
    http://developers.sun.com/jscreator/reference/fi/2/data-providers.html
    Using CachedRowSet and CachedRowSetDataProvider in the Sun Java Studio Creator IDE
    http://developers.sun.com/jscreator/reference/techart/2/insert_row_in_table.html
    We would like to know the following from you :-
    1) Which of the DataProviders are you using in applications you are building? Also How and Where?
    2) Did you face any challenges while using them?
    3) Did you find any special usages/scenarios for using these components?
    4) Do you have any feedback/comments/improvements which you would like to see with using Dataproviders?
    Thank you for all your inputs and for joining in the discussion.
    K

    .

  • Swing components and the garbage collector

    How much care does one need to take with swing components, with reference to running out of stack space? I ask because I'm writing a system for an automotive parts company, and the company tends to not reboot the machines very often...
    Anyway... if a JFrame is closed, is it and all its components marked for GCing? Do I need to call the dispose method, or is this part of the default close behaviour? Or is there something else entirely?
    Cheers

    In class that calls for .setVisible(false) of one JFrame u MUST call
    for dispose() method.
    so
    myFrame.setVisible(false)
    myFrame.dispose()
    myFrame = null // to help the garbage collector
    If u have classes that becames from JFrame (or JDialog) u can
    invoke in its constructors:
    this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE)
    This makes uncecessary to call for dispose() method explicetly.
    If u do not have this kind of classes u can invoke this method
    after u have create your JFrame
    JFrame myFrame = new JFrame();
    myFrame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE)
    The most important thing is REMOVE ALL LISETNERS that u have added, so, if u have classes that becames from JFrame u can ovverride
    the dispose method to do that
    eg
    public void dispose()
    super.dispose()
    removeActionListener(.....)
    and so on
    If u do not have this kind of classes u must remove all listeners u have
    added before u invoke the setVisible(false) method.
    Regards

  • MF60 Pull List doesn't show all components in the BOM

    I just switched to REM and use MF60 for replenishment. I have some products that use 2-3 FGS in the BOM. While MF60 lists out requirements for components, it does not list any requirements for FGs in the BOM. For eg product Y contains A (FG) and B(comp). However when I run MF60, it shows me to pull only B even though A is missing. I would appreciate if someone can help.

    Dear KB,
    What's the specific reason for treating A as a finished product and why to include A under the BOM of Y(Finished Product)?
    Check if there is sufficient stock for A, already in the required production storage location,in this case the system does not
    show the material A in the missing parts for staging.
    Check and revert back.
    Regards
    Mangalraj.S

  • Determine event handler for swing components from the API browser

    Is there a way to determine what event handlers are assocaited with the different swing classes. For example JTextField is associated to ActionListener, and JCheckbox uses the event handle ItemListener. Is there a way to determine this by looking at the class via the Java API?

    Yes, there is. You'll observe that JTextField has an "addActionListener(ActionListener)" method, for a start. And JTextField is a subclass of JTextComponent, which has "addCaretListener(CaretListener)" and "addInputMethodListener(InputMethodListener)" methods. And JTextComponent is a subclass of JComponent, which has an "addAncestorListener(AncestorListener)" method. And so on... there are more. All of this can be found in the API documentation by looking for methods whose names start with "add".

  • GetTreeLock during constructor for swing components

    I've noticed some dead locks in our application that are showing up in the call to getTreeLock that exists in the constructor for various JComponents. Specifically, the updateUI method winds up calling validateTree.
    I thought it was OK to construct JComponents from any thread, this suggests it is not.
    Has anyone else experienced this?

    It goes like this:
    On win32, thread 0 is our windows message pump. If dispatching one of our messages results in a call from C into Java that constructs a JComponent, we call getTreeLock from thread 0.
    Imagine that at the same time, the awt event disptatch thread is trying to show a frame. Since the awt event dispatch thread is part of our process, when the native implemention of the frame calls SendMessage to show the frame, the call to SendMessage blocks until thread 0 calls GetMessage.
    Since thread 0 is now blocking waiting for synchronized(getTreeLock()) to return and the awt event dispatch thread has the tree lock - fetched while executing the show() method - we are in a dead lock.
    This is not a problem with AWT components, only swing components.
    The stack looks like this:
         at java.awt.Component.getTreeLock(Component.java:811)
         at java.awt.Container.invalidateTree(Container.java:1116)
         at java.awt.Container.setFont(Container.java:1148)
         at javax.swing.JComponent.setFont(JComponent.java:2310)
         at javax.swing.LookAndFeel.installColorsAndFont(LookAndFeel.java:89)
         at javax.swing.plaf.basic.BasicButtonUI.installDefaults(BasicButtonUI.java:124)
         at com.sun.java.swing.plaf.windows.WindowsButtonUI.installDefaults(WindowsButtonUI.java:63)
         at javax.swing.plaf.basic.BasicButtonUI.installUI(BasicButtonUI.java:60)
         at javax.swing.JComponent.setUI(JComponent.java:449)
         at javax.swing.AbstractButton.setUI(AbstractButton.java:1616)
         at javax.swing.JButton.updateUI(JButton.java:119)
         at javax.swing.AbstractButton.init(AbstractButton.java:1952)
         at javax.swing.JButton.<init>(JButton.java:109)
         at javax.swing.JButton.<init>(JButton.java:64)
    It seems like we could simply have the invalidateTree method return early if there is no parent or there are no children or somesuch.
    A work around we've done is to have the updateUI method delegate to the event dispatch thread. This is a drag as we need to subclass all the JComponents and make sure developers use the safe subclass.

  • Rendering of Swing components

    Hi,
    As the renderer is used to be client independant, is it suitable to send back to the client a serialized view of Swing components (using the new XML serialization format) ?
    This could allow server-side management of the client's look-and-feel and total move of the business on the server.
    It might sounds weird and I'm not totally clear with myself anyway.
    I think a little "deamon" should handle the requests to the server and the demarshalling step of the server response.
    Any point of view on this ?
    (this is just a thought of an alternative use of the renderer capabilities coz todays it only sends back HTML tags)
    Ionel

    Hi,
    personally, I do not have too much experience with Swing.
    There is a project on sourceforge that implements your idea but is not based on Java Server Faces.
    It's called SwingML:
    swingml.sourceforge.net

  • Jre 15.0_22/Linux - Swing components error when using GTKLookAndFeel

    Hello,
    I'm not sure if it's a JRE bug or what, but on Linux platforms our applet fails when using swing components using the GTKLookAndFeel.
    To demonstrate/test, I have the ff test applet:
    import java.applet.Applet;
    import javax.swing.UIManager;
    import javax.swing.UnsupportedLookAndFeelException;
    public class TestApplet extends Applet {
      @Override
      public void init() {
        super.init();
        test();
      public static void main(String[] args) {
        (new TestApplet()).test();
      public void test() {
        try {
          String className = UIManager.getSystemLookAndFeelClassName();
          System.out.println(className);
          javax.swing.LookAndFeel laf = (javax.swing.LookAndFeel) this.getClass().forName(className).newInstance();
          UIManager.setLookAndFeel(laf);
          System.out.println("setting classloader");
          UIManager.put("ClassLoader", this.getClass().getClassLoader());
          UIManager.getLookAndFeelDefaults().put("ClassLoader", this.getClass().getClassLoader());
        } catch (ClassNotFoundException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
        } catch (InstantiationException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
        } catch (IllegalAccessException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
        } catch (UnsupportedLookAndFeelException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
        System.out.println(UIManager.getLookAndFeelDefaults().getUIClass("javax.swing.JTextField"));
        UIManager.getLookAndFeelDefaults().getUI(new javax.swing.JTextField());
    }The system look and feel here is GTKLookAndFeel. The problem is that the getUI() call in the last line is returning null and I can see in the console:
    UIDefaults.getUI() failed: no ComponentUI class for: javax.swing.JTextField
    java.lang.Error
    .. etc.
    This is happening for different swing classes, I just used JTextField here as a simple test case.
    This only happens if the applet is run from the browser (via the java plugin). If I run the above code from the command line, there is no error raised, and the actual component UI class is a Synth class.
    This is only happening for us in Java 1.5.0_22 on Linux...on 1.5.0_15 and 1.6+ it seems to be fine. I'm using the 1.5.0_22 JDK downloaded from Sun.
    Anyone have any idea how to fix this error or any workaround? As you can see in the code above, I tried specifying the classloader (I read it in some other thread on these forums), but no luck there.
    Or is this a known problem in 1.5.0_22? Can anyone else replicate it?

    Installation howto you can find on http://www.puschitz.com
    Try use "Search" function before you create new topic. This one was discussed many times.

  • Printing Swing components doesn't work on all printers? Please Help!

    I have a really serious problem. I try to print Swing components with the so called PrintUtilities class. The source code can be found here: http://archive.corewebprogramming.com/Chapter15/printing/PrintUtilities.java).
    My Swing components are panels (JPanel) including more panels and/or other components like text fields, text areas, combo boxes, radio buttons, check boxes and so on.
    On one of my printers (Kyocera mita FS 1010) it works fine. But on other printers (Panasonic DP-2000, HP Deskjet 890 C) the results are weird: Only the first component (independent of the component depth) is printed (and it is every time the same result!).
    I don't know whether this is important or not, but all printers I use are installed as network printers.
    I have already searched the forum but couldn't find a similar problem.
    Can anyone tell me what the problem is and what I can do to solve it?
    Thank you for any response in advance!

    try this:
    package ayto;
    import java.awt.*;
    import java.awt.print.*;
    import javax.swing.JComponent;
    public class ComponenteParaImprimir
    implements Printable {
    private Component mComponent;
    boolean isBook;
    final static boolean PARA_BOOK = true;
    final static boolean HARDCOPY = false;
    public ComponenteParaImprimir(Component c, boolean book) {
    mComponent = c;
    isBook = book;
    public int print(Graphics g, PageFormat pageFormat, int pageIndex) {
    if (pageIndex > 0 && !isBook) {
    return NO_SUCH_PAGE;
    Graphics2D g2 = (Graphics2D) g;
    g2.translate(pageFormat.getImageableX(), pageFormat.getImageableY());
    boolean wasBuffered = disableDoubleBuffering(mComponent);
    mComponent.paint(g2);
    restoreDoubleBuffering(mComponent, wasBuffered);
    return PAGE_EXISTS;
    private boolean disableDoubleBuffering(Component c) {
    if (c instanceof JComponent == false) {
    return false;
    JComponent jc = (JComponent) c;
    boolean wasBuffered = jc.isDoubleBuffered();
    jc.setDoubleBuffered(false);
    return wasBuffered;
    private void restoreDoubleBuffering(Component c, boolean wasBuffered) {
    if (c instanceof JComponent) {
    ( (JComponent) c).setDoubleBuffered(wasBuffered);
    }

  • Swing components without using applets

    hi there
    can i display swing components on the browser without using applets through jsp.
    if the answer is yes.please help me by sending a sample code.thanking u.
    -radhakrishna

    A JSP is compiled into a (server-side, obviously) servlet, which responds to Http requests by constructing a String of HTML/JavaScript etc to send back to the browser which then displays it.
    A Swing component is a piece of Java. The only way for such a component to run on the client side is to use either Applets or the new Java WebStart technology (see the JDC), which allows you to run a Java App locally from a Web Browser.
    You cannot possible use JSP to view Swing Components, without also using either of the above.

  • Swing components core design

    does the swing components, all the J... components, designed using other swing or AWT components?
    I mean a JButton is actually a panel with an image or some thing like that?
    I would like to read about these things, does any one know where to find some reading materials on the subject it would be great.
    the tutorial of each component as far as i remember does not discus the issue.
    thanks, Adam.

    i did look at the hierarchy of the components and it didn't tell me anything newIt tells you a JButton is NOT a panel with an image on it!
    java.lang.Object
      java.awt.Component
          java.awt.Container
              javax.swing.JComponent
                  javax.swing.AbstractButton
                      javax.swing.JButtonIt also tells you a lot of the painting code is going to be in AbstractButton with customizations in JButton.

  • Only the components of the first tab is visible

    I have created an application with 4 tabs in a jtabbedpane. Depending on the users rights in a node(of a tree) the tabs should be visible or removed.
    Here is an example of how I add and remove tabs.
    if (status) {
    String title = ((ObjectObjectData)myTabs.elementAt(index)).getObj2().toString();
    boolean there = false;
    Component allEnabledComp[] = tabPanel.getComponents();
    for (int i=0; i<allEnabledComp.length; i++) {
    // Compare the tabs with the orign tabs stored in a vector
    if (allEnabledComp.equals(((ObjectObjectData)myTabs.elementAt(index)).getObj1())) {
    there = true;
    break;
    if (!there) {
    int newIndex = getNewIndex(index);
    tabPanel.insertTab(title, null, (Component)((ObjectObjectData)myTabs.elementAt(index)).getObj1(), "", newIndex);
    Component comp[] = tabPanel.getComponents();
    else {
    for (int i=0; i<tabPanel.getComponents().length; i++) {
    // Check if the tab should be removed or if it is already removed
    if (tabPanel.getComponentAt(i).equals(((ObjectObjectData)myTabs.elementAt(index)).getObj1())) {
    tabPanel.removeTabAt(i);
    break;
    The problem is that when I add and remove tabs only the first tab will show its components. The other tabs are empty.
    And an other strange thing. If I change the order of the tabs all components of every tab will be visible...
    Any suggestions ?

    I have tested to use setVisible instead of removeXXX and insertXXX.
    if (status) {
    String title = ((ObjectObjectData)myTabs.elementAt(index)).getObj2().toString();
    boolean there = false;
    Component allEnabledComp[] = tabPanel.getComponents();
    for (int i=0; i<allEnabledComp.length; i++) {
    if (allEnabledComp.equals(((ObjectObjectData)myTabs.elementAt(index)).getObj1())) {
    // there = true;
    allEnabledComp[i].setVisible(true);
    break;
    /*if (!there) {
    int newIndex = getNewIndex(index);
    tabPanel.insertTab(title, null, (Component)((ObjectObjectData)myTabs.elementAt(index)).getObj1(), "", newIndex);
    Component comp[] = tabPanel.getComponents();
    else {
    //Component allEnabledComp[] = tabPanel.getComponents();
    for (int i=0; i<tabPanel.getComponents().length; i++) {
    if (tabPanel.getComponentAt(i).equals(((ObjectObjectData)myTabs.elementAt(index)).getObj1())) {
    //tabPanel.removeTabAt(i);
    tabPanel.getComponentAt(i).setVisible(false);
    break;
    If I debug the code the components method isVisible() will return the state that was assign to it. But when I se the GUI, all components are visible !
    Any ideas ?

  • Problem with showing palette component which contains swing components

    hello, I have found a simple problem with jdeveloper IDE but this simple problem delays my project and it make late a big project so help me please. I want to add somes swing components to a JFrame
    but when I try to show the palette component as usual I didn't find the swing components like habit.
    Best Regards

    duplicate
    Frank

Maybe you are looking for

  • "Stuttered​" printing in middle of page on psc 2175 all in one

    I have been very happy with my 2175 for several years. Then today I have experienced all kinds of problems. A lot of noises, best described as Grinding.  Also, the msg "Open door, clear carriage jam then press enter, -- following which I would get a

  • Settings for invoice block

    Dear Experts, Whenever i post invoice w.r.to purchase order, that invoice is getting blocked for payment for all the invoices. I have checked in OMR6, but i don't know where i should correct it. Kindly guide me. Regards, Prasath

  • How to install & Configure Work Flow for OWB

    Hi All, I have installed companion products and now to configure work flow, what schema name should I have to give. Can anybody tell me please. Thanks, Siva

  • Itunes Account being limited?

    I keep receiving emails saying that my apple account has been limited. It thens prompts me to a screen to fill out all my info including cc. I filled it out once but keep receiving it. I am able to still use my itunes account. Any body know about thi

  • Apple continues to ask me to create a New Username

    I have nearly given up on Apple, and group them right in there with MS & Android. Nearly complete product, but not enough to make me buy again. Why can't software for the masses work properly, but thats another discussion... Apple ID entered, Create