Components not showing in java 1.4

I have a small program where some JLabels, JTextFields, JComboBoxes and JCheckBoxes are shown in a JFrame. It works fine in JBuilder 7 but when I tried to run it outside JBuilder, where I have java 1.4.1 installed, the components are not showing correctly. The JLabels are not shown att all and the rest of the components are not fully painted, if at all. If I run it from the bin directory in JBuilder, where java 1.3 is installed, the program works fine.
Anybody have any idea what could be wrong?

I have tried compiling both with javac and in JBuilder and in JBuilder and java 1.3 it works fine, but with java 1.4.1 it doesn't.
I am not using any special JBuilder layout, I have written all the code by hand (haven't figured out the design function in jBuilder yet).

Similar Messages

  • Components not showing up in Flash CS5

    What's the correct way to install components in Flash CS3?
    first I tried to install the NewGrounds Ad component for AS 3.0 which delivers as an .xmp file. I doubleclicked it and in the Extension Manager it's listed as active under Flash CS5. I restarted flash, but the component does not show up in the components list.
    I then tried to install the minimal components from http://minimalcomps.com/ which are delivered as an SWC. I went to the ActionScript 3.0 settings in flash, went to the "library path" tab and clicked browse to swc to select the SWC file. but these components don't show up in the components list either.
    So what am I doing wrong?
    Thanks

    1. Go to HELP > MANAGE EXTENSIONS
    2. Choose Flash
    3. Choose FILE > "Install Extension"
    4. Install xxx.mxp from below locations one of them (you may need to show system folders on Windows to see).
    5. I checked these folders on my machine but they were empty,,, but I already have components installed.
    C:\Users\userName\AppData\Local\Adobe\Flash CS4\en\Configuration
    if u can't find it try to go to the below path:
    C:\Users\userName\AppData\Local\Adobe\Flash CS4\ar\Configuration
    and copy all files existing in this folder to:
    C:\Users\userName\AppData\Local\Adobe\Flash CS4\en\Configuration

  • ADF visualization components not showing in a region

    I have a task-flow of JSF fragments, when I visit a page with adf visualization components they are not showing. I call:
    region.queueActionEventInRegion(getMethodExpression(methodExpression),
    null, null, false, -1, -1,
    PhaseId.ANY_PHASE);
    They dont show even iif I call
    AdfFacesContext.getCurrentInstance().addPartialTarget(getRegion());
    Only loads when I collapse a panel - which suggests they are there, loaded. Just not showing.

    Hi,
    if you want to refresh a region then either you call the refresh method exposed on the region or configure the Task Flow binding refresh condition to #{1==} (for always to refresh) in addition to the PPR refresh.
    The first of your method really has nothing to do with region refresh and is for a different usecase
    Frank

  • SAP management console not showing AS java

    Hello all,
    I have made a NW04s installation system test (linux+oracle). I then installed as java add-in EP and BI (AS JAVA, EP CORE, EP, BI JAVA). It was NW04s SR2 with SPC13 and kernel not changed: 700 patch 111.
    In the SAP management console there were 3 entries: one for database, one for abap instance and one for java instance.
    In the abap instance node I was able to see an entry for "AS java"  which was whowing two process (SDM and another one...).
    I made a new test installation similar to the previous one and in the SAP management console I do not see any entry for "AS Java". Of course AS java is installed and running !
    How can I get SAP management console show "AS java" ????
    Thank you
    Jean

    Hi Jean,
    Start Services.msc from run prompt (if this is windows based installation)
    and look for <SID>services, where <SID> is your instance name..
    Please do the following and let me know if this of any success
    You get back your MMC , please do the following steps.
    1. Go to Run and type MMC.
    2.Go to file and select add/remove snap in ( alt+m).
    3.Click on add
    4.Select the SAP system from there.
    Save the MMC console which you have created now....This should work fine.
    Thanks
    Pankaj

  • New installed components not showing in components panel in cs4

    Hi,
    I'm currently reading the excellent book "ActionScript 3.0
    Quick Reference Guide". In some chapters, the authors ask us to
    install third-party components. They install well in the Extension
    Manager CS4, but for a reason I don't know, they're not showing in
    the Components panel...
    I use Flash CS4... but I also have Flash 8 and Flash CS3
    installed (in fact, all the suites) and it never caused problems
    before, so I don't think that's the problem... By the way, if I
    install them in CS3, they show up in the panel.
    FYI, I have a French Canadian Windows XP version and I work
    with English Flash versions...
    Particularly, the extensions I tried are:
    - as3webservice by Pieter Michels (wellconsidered.com);
    - Yahoo! Astra Library (by Yahoo!, of course);
    - Accordion Panel V3AS3 (by JumpeyeComponents).
    Thank you.

    Well, we're making progress...
    No, there're not in that folder, but from what I understand,
    they shouldn't be there either, because in that folder, it's the
    place for the default ones (that comes with Flash).
    The ones that we add are in the Documents and Settings
    folder:
    So, since I installed the same components in Flash CS3 and
    Flash CS4 (because they weren't working in CS4), they appear in:
    C:\Documents and Settings\Nelson Therrien\Local
    Settings\Application Data\Adobe\Flash
    CS3\en\Configuration\Components... Good.
    Now, do they appear in Flash CS4 (path C:\Documents and
    Settings\Nelson Therrien\Local Settings\Application
    Data\Adobe\Flash CS4\en\Configuration\Components)... NO!!
    BUT!! I don't know if it's because I tried the French version
    once or because I have a French Operating System, but I also have a
    fr folder (full path: C:\Documents and Settings\Nelson
    Therrien\Local Settings\Application Data\Adobe\Flash
    CS4\fr\Configuration\Components) and... THEY APPEAR THERE!!
    So, I copied them from the fr folder to the en folder and
    Voilà! They now appear inside the Flash CS4 Components
    Panel...!
    Thank you for pointing me in the right direction!
    Nelson

  • FlowLayout wrapped components not showing when nested in a GridBagLayout

    Hello, I'm having a problem when adding multiple components to a FlowLayout that is inside a grid of a GridBagLayout. I'd love to post some code, but it's really entrenched, so I'll try to give an a decent verbal example below.
    The problem is that when I fill a grid in the GridBagLayout, it happily goes to the end of the JScrollPane it's nested inside (this is necessary for vertical movement, but horizontal is disabled). When I add a JPanel to this right-most grid, and set it FlowLayout, and then add any n components, the components plow right off the right side of the screen (and again, having a horizontal scroller is not acceptable to the users).
    I've tried screwing around with setting the preferred size: if I set the preferred width to 0 (or to anything smaller than the width of the JScrollPane), the FlowLayout wraps the components (good) but doesn't take up the height it needs to display them (bad). They get stuck "under" whatever is painted next. If I set the preferred height to some arbitrary value, it will show them, but maintains that value even when the window is resized, so again some components get buried.
    Further, the arbitrary size that I'm setting can't be calculated, as I can't get the preferred size (or any size) of the FlowLayout until after it's been drawn to the screen!
    Is there something that I'm missing here, or some trick that I haven't stumbled across before to make this work the way that I want it to? (That being that a JPanel nested in some grid in a GridBagLayout, and having sufficient GridBagConstraints, and being set to FlowLayout, will display all the components dropped in it, wrapping them as they reach the end of the JScrollPane that encapsulates the GridBagLayout).
    Any help is greatly appreciated!

    I've found a reasonable solution to my problem:
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=780453
    contains code for an extended FlowLayout called "BetterFlowLayout" which works in a much more friendly way with JScrollPane. It seems the problem wasn't so much with the GridBagLayout, but more with the JScrollPane. In any event, anyone having a similar problem can find (and modify) a decent solution from the post above.

  • Plz help me out!! Custom components not showed in JTabbedPane....

    Hi!!
    I am extending a JPanel and adding some components to it and finally when I create an object and add it to the JTAbbedPane its not being shown....If i do it disrectly on JPanel instead of my class its is being shown.can anybody...please help me out and tell where the problem is ...My code is as follows....
    public class TabColorExample extends JPanel {
    public TabColorExample() {
    setLayout(new BorderLayout());
    UIManager.put("TabbedPane.selected", Color.green);
    JTabbedPane tabbedPane = new JTabbedPane();
    String tabs[] = {"One", "Two", "Three", "Four"};
    Color[] colors = {null, Color.red, null, null};
    for (int i=0;i<tabs.length;i++) {
    tabbedPane.addTab(tabs, createPane(tabs[i]));
    tabbedPane.setBackgroundAt(i, colors[i]);
    tabbedPane.setSelectedIndex(0);
    add(tabbedPane, BorderLayout.CENTER);
    JPanel createPane(String s) {
    return new panel(s);
    public static void main(String[] args) {
    JFrame frame = new JFrame("Tab color Example");
    frame.addWindowListener( new WindowAdapter() {
    public void windowClosing( WindowEvent e ) {
    System.exit(0);
    frame.getContentPane().add( new TabColorExample() );
    frame.setSize( 200, 100 );
    frame.setVisible(true);
    class panel extends javax.swing.JPanel
         panel(String s)
              super();
              JPanel p = new JPanel();
              p.add(new JLabel(s));
    Thanx in advance...
    Krtrao

    Hi there,
    Having that string in a mapping of DSO when DSO will process the SIDs it doesn't like that string and therefore throws an error.
    You could for example transform that field in for example start routine or customer exit R/3 side, like for example split string with commas, and concatenate everything like this: 01,02,03 should retrieve 010203.
    Other option is to first create master data texts datasource for that field PDP and for each key retrieves a string, like this for example:
    010203 - text 01,02,03, or text MDTDWD
    than when you fill the DSO with that field aready fixed in the form 010203, you can in the query represent it with text, it should represent in the form 01,02,03 or MDTDWD, see the picture?
    You can do this kind of fixing of the filed 01,02,03 or in the start routine, or the transfer structure.
    And to only get those records with the field being there, just write in the start routine something like:
    DELETE <SOURCE_PACKAGE> where your_field is initial.
    Hope this helps,
    Diogo.

  • Video components not showing up in flash

    I am only using Flash MX 6, so I hope it is ok, but I am
    having a major problem.
    First I need a video component that works, hopefully there is
    a few one that is floating around out there.
    I have a QT.mov, I have converted it to flash and I drop a
    video component on it (surprisingly, it looks like the QT
    controls). I test the movie, it works, but when I use the swf in
    Dreamweaver on my page, the controls are no where to be seen. I
    can't see them, therefore they are useless to me!!I have tried Muak
    one, it doesn't seem to link to my movie no matter what I do, along
    with VideoController 1_1 which doesn't seem to show up in my movie.
    Has anyone else had this problem? How can I resolve it?
    Thanks in advance.

    1. Go to HELP > MANAGE EXTENSIONS
    2. Choose Flash
    3. Choose FILE > "Install Extension"
    4. Install xxx.mxp from below locations one of them (you may need to show system folders on Windows to see).
    5. I checked these folders on my machine but they were empty,,, but I already have components installed.
    C:\Users\userName\AppData\Local\Adobe\Flash CS4\en\Configuration
    if u can't find it try to go to the below path:
    C:\Users\userName\AppData\Local\Adobe\Flash CS4\ar\Configuration
    and copy all files existing in this folder to:
    C:\Users\userName\AppData\Local\Adobe\Flash CS4\en\Configuration

  • JSF Components not showing on all projects.

    I am working with 10.1.3, I have a web project using JSF and ADF BCs. The original project works fine and I can see the tags in JSP Visual Editor but when I create a new project, all I see is tags. All JSP tags in the project properties have the "Execute Tags in JSP Visual Editor" checked. Any clues?
    I used the example at http://www.oracle.com/technology/products/jdev/howtos/10g/jsf_howto/jsf.html?_template=/ocom/technology/content/print

    It's weird. When I look for them under the artist tab they don't show. But if I do a search or look under the album tab I can see them. Guess they still have a lot of bugs to work out.

  • Components Not Showing In JPanel

    I am trying to make a program that I can give to friends and family to help them keep track of their banking accounts and the such (It's nothing big I'm making, just something to do in my spare time). I've coded all the data classes and such (Transaction, Account, Type, etc) and am now working on the GUI. I've made them before so I created this bit of code. The problem is, whenever I run the program, I only get the frame and JMenuBar. The rest is white space where my JPanel should be. The panel is there, I've tried setting the background color to black and the entire frame follows suit accordingly, but all the objects I've added aren't there? I know I'm missing something painfully obvious, so if anyone out there would help out I would be much obliged.
    * @(#)TFrame.java
    * @author T^&*( W*(%^&$
    * @version 2.00 2009/9/23
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class TFrame extends JFrame {
         private Account account;
         public TFrame(Account opened) {
              account = opened;
              setTitle("xxxx-xxxx-xxxx-" + account.getAccountNumber());
              setSize(800,500);
              setDefaultCloseOperation(EXIT_ON_CLOSE);
         // Creates MenuBar
              JMenuBar menuBar = new JMenuBar();
              JMenu file = new JMenu("File");
              file.setMnemonic(KeyEvent.VK_F);
              JMenuItem save = new JMenuItem("Save",KeyEvent.VK_S);
              save.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));
              file.add(save);
              JMenuItem load = new JMenuItem("Load",KeyEvent.VK_L);
              load.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_2, ActionEvent.ALT_MASK));
              file.add(load);
              JMenuItem print = new JMenuItem("Print",KeyEvent.VK_P);
              print.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_3, ActionEvent.ALT_MASK));
              file.add(print);
              file.addSeparator();
              menuBar.add(file);
         // Finishes MenuBar
              setJMenuBar(menuBar);
         // Creates the RadioPanel that switches type
              JPanel radioPanel = new JPanel();
              radioPanel.setLayout(new FlowLayout());
              ButtonGroup bg = new ButtonGroup();
              JRadioButton deposit = new JRadioButton("Deposit");
              deposit.setMnemonic(KeyEvent.VK_D);
              deposit.setActionCommand("Deposit");
              JRadioButton withdraw = new JRadioButton("Withdraw");
              deposit.setMnemonic(KeyEvent.VK_W);
              deposit.setActionCommand("Withdraw");
              JRadioButton all = new JRadioButton("All");
              deposit.setMnemonic(KeyEvent.VK_A);
              deposit.setActionCommand("All");
              bg.add(deposit);
              bg.add(withdraw);
              bg.add(all);
              deposit.addActionListener(TransactionPane.INSTANCE);
              withdraw.addActionListener(TransactionPane.INSTANCE);
              all.addActionListener(TransactionPane.INSTANCE);
         // Finishes the RadioPanel
         // Creates the TransactionPane
              TransactionPane.INSTANCE = new TransactionPane(account);
         // Finishes TransactionPane
         // Creates the ActionPane
              JPanel actionPane = new JPanel();
              actionPane.setLayout(new GridLayout(2,3));
              JButton addButton = new JButton("Add");
              JButton removeButton = new JButton("Remove");
              JButton printButton = new JButton("Print");
              JButton saveButton = new JButton("Save");
              JPanel pages = new JPanel();
                   JButton lastButton = new JButton("<-");
                   JButton nextButton = new JButton("->");
                   pages.setLayout(new GridLayout(1,2));
                   pages.add(lastButton);
                   pages.add(nextButton);
              JButton exitButton = new JButton("Exit");
              actionPane.add(addButton);
              actionPane.add(printButton);
              actionPane.add(pages);
              actionPane.add(removeButton);
              actionPane.add(saveButton);
              actionPane.add(exitButton);
         // Finishes the ActionPane
         // Creates the TPanel
              TPanel tPanel = new TPanel(account);
              tPanel.add(radioPanel, BorderLayout.NORTH);
              tPanel.add(TransactionPane.INSTANCE, BorderLayout.CENTER);
              tPanel.add(actionPane, BorderLayout.SOUTH);
              getContentPane().add(tPanel, BorderLayout.CENTER);
         // Finishes the TPanel
              pack();
              setVisible(true);
    * @(#)TPanel.java
    * @author
    * @version 1.00 2009/9/24
    import java.awt.*;
    import javax.swing.*;
    public class TPanel extends JPanel {
         private Account account;
         public TPanel(Account acc) {
              account = acc;
              setPreferredSize(new Dimension(800,480));
    }

    ok
    Edited by: Caarmel on Sep 25, 2009 1:12 AM

  • Components not showing up on dialog box

    Hi,
    I'm building a little progrma tha displays points and lines. I have a dialob box that pops up to get point coordinates, once the user enters the point data and clicks the display button it displays the point. here is my problem, when the dialog box pops up to enter another point only the buttons and on radio button in the dialog box are visible the rest are no, however if I click on some of the items inthe dialog box like a text field it sometimes shows up.
    any help would be great
    Jim

    Hi,
    I'm building a little progrma tha displays points and lines. I have a dialob box that pops up to get point coordinates, once the user enters the point data and clicks the display button it displays the point. here is my problem, when the dialog box pops up to enter another point only the buttons and on radio button in the dialog box are visible the rest are no, however if I click on some of the items inthe dialog box like a text field it sometimes shows up.
    any help would be great
    Jim

  • Oracle Rules: Adding Java Facts - not showing up in list.

    I am having trouble with adding my own Java classes to the Java Facts. I find the class in the list of classes, tick it, and hit "Ok". When I come back to the list of Java Facts, the class has not been added to the list. And no error message is displayed.
    I am able to add default classes under packages java, javax and org.
    My Java-classes are located here: ...\MyProject\SCA-INF\classes\packageName
    The .rules-file is located here: ...\MyProject\oracle\rules\packageName
    What can be the reason for this?

    I just had a similar issue and I ended having to manually clean up the registry to get Java working again.
    I just got a new computer at work and it had Java 7 installed but it turns out an app we need to use at work doesn't work with Java 7, only Java 6.
    I uninstalled Java 7 and installed Java 6 but Firefox was not showing the Java plugin as installed. I tried all sorts of things, including uninstalling and reinstalling Firefox and none of it worked. Finally I again uninstalled Java and then I searched for "Java" in the registry and found TONS of entries still in there for Java, including for Java 7. I manually deleted all the entries (WARNING: this is extremely risky) rebooted, then installed Java 6 and now it's working fine.
    I really hate it when uninstallers leave stuff behind. It just makes a mess.

  • I add components to contentPane, but JFrame still does not show them

    I converted a small game I was making from AWT to Swing.(The game is just MineSweeper.) I made all the necessary adjustments like, Button to JButton and add() to getContentPane().add(), but when I show the JFrame, it does not show any components that I added. I have run test programs to see if I am adding the components correctly and they work.
    I print out the number of components contained in the frame by using getComponentCount() and the number is correct. It just will not show up in the JFrame. I have tried everything I can think of, no matter how strange and it still will not show the components.
    I have attached all the code to the bottom of this message. Can someone please take a look and see what I am missing.
    Thanks.
    Here's the code. The main file is at the end and is the one causing the problems. All the rest is just support stuff and should not be relavent, but I included it in case I missed something there.
    //Timer is just a custom timer
    import java.util.Date;
    public class Timer {
         Date curr;
         public Timer() {
              curr=new Date();
         public void start() {
              curr=new Date();
         public int getSeconds() {
              return (int)(((new Date().getTime())-curr.getTime())/1000);
    //Cover subclasses JButton for initial look
    import java.awt.*;
    import javax.swing.*;
    public class Cover extends JButton {
         Dimension size;
         public Cover() {
              super("");
              size=new Dimension(20,20);
              setSize(size);
         public Cover(String l) {
              super("");
              size=new Dimension(20,20);
              setSize(size);
         public void setSize(Dimension s) {
              super.setSize(size);
         public Dimension getPreferredSize() {
              return size.getSize();
         public Dimension getMinimumSize() {
              return size.getSize();
         public Dimension getMaximumSize() {
              return size.getSize();
    //Flag subclasses JButton to flag a mine
    import java.awt.*;
    import javax.swing.*;
    public class Flag extends JButton {
         Dimension size;
         public Flag() {
              super("F");
              size=new Dimension(20,20);
         public Flag(String l) {
              super("F");
              size=new Dimension(20,20);
         public void setSize(Dimension s) {
              super.setSize(size);
         public Dimension getPreferredSize() {
              return size.getSize();
         public Dimension getMinimumSize() {
              return size.getSize();
         public Dimension getMaximumSize() {
              return size.getSize();
    //Reveal subclasses JPanel to show what's underneath
    import java.awt.*;
    import javax.swing.*;
    public class Reveal extends JPanel {
         Dimension size;
         int number;
         Color color[];
         public Reveal(int n) {
              super();
              size=new Dimension(20,20);
              number=n;
              color=new Color[10];
              color[0]=Color.black;
              color[1]=Color.orange;
              color[2]=Color.cyan;
              color[3]=Color.yellow;
              color[4]=Color.green;
              color[5]=Color.magenta;
              color[6]=Color.blue;
              color[7]=Color.pink;
              color[8]=Color.darkGray;
              color[9]=Color.red;
              //for(int x=0;x<10;x++) {
              //     System.out.println(x+"="+color[x]);
              setBackground(Color.black);
         public void paintComponent(Graphics g) {
              int width=getWidth();
              int height=getHeight();
              FontMetrics fm=g.getFontMetrics();
              int fw=0;
              int fh=fm.getAscent();
              g.setColor(color[number]);
              if(number==9) {
                   fw=fm.stringWidth("M");
                   g.drawString("M",width/2-(fw/2),height/2+(fh/2));
              else if(number!=0) {
                   fw=fm.stringWidth(""+number);
                   g.drawString(""+number,width/2-(fw/2),height/2+(fh/2));
              g.setColor(Color.white);
              g.drawRect(1,1,width-2,height-2);
              //System.out.println("number="+number);
         public void setNumber(int n) {
              number=n;
         public int getNumber() {
              return number;
         public Dimension getPreferredSize() {
              return size.getSize();
         public Dimension getMinimumSize() {
              return size.getSize();
         public Dimension getMaximumSize() {
              return size.getSize();
    //MineSweeper just launches the program and subclasses JFrame
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class MineSweeper extends JFrame implements ComponentListener {
         public MineSweeper(String s) {
              super(s);
              addComponentListener(this);
         public void quit() {
              System.exit(0);
         public void componentHidden(ComponentEvent e){}
         public void componentMoved(ComponentEvent e){}
         public void componentResized(ComponentEvent e){
              System.out.println("resized");
              MineSweeper temp=(MineSweeper)e.getSource();
              System.out.println("count="+temp.getContentPane().getComponentCount());
         public void componentShown(ComponentEvent e){}
         public static void main(String args[]) {
              MineSweeper t=new MineSweeper("Inside Moves");
              t.addWindowListener(new WindowAdapter() {
                   public void windowClosing(WindowEvent e) {
                        System.exit(0);
              GameManager manager=new GameManager(t);
    //GameManager is the main program. This is where the JFrame is realized
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import javax.swing.*;
    public class GameManager implements MouseListener, ActionListener, Runnable {
         JPanel display;
         JPanel gameInfo;
         MineSweeper screen;
         JButton reset;
         JTextField tMine,time;
         Container pane;
         int clickX,clickY;
         int minesLeft;
         int gridX[],gridY[],mine[];
         static final int MAX_X=30;
         static final int MAX_Y=24;
         static final int MAX_MINE=667;
         JComponent grid[][];
         int board[][];
         int number[][];
         final static int OB=64;
         final static int BLANK=0;
         final static int MINE=1;
         final static int REVEAL=128;
         int level;
         final static int EASY=0;
         final static int MEDIUM=1;
         final static int HARD=2;
         final static int CUSTOM=3;
         int state;
         final static int START=1;
         final static int PLAYING=2;
         final static int DONE=3;
         Timer timer;
         int timeDisp;
         public GameManager(MineSweeper s) {
              screen=s;
              pane=screen.getContentPane();
              pane.setLayout(new BorderLayout());
              display=new JPanel();
              gameInfo=new JPanel(new GridLayout(1,3));
              reset=new JButton("Reset");
              tMine=new JTextField(20);
              time=new JTextField("0",20);
              grid=new JComponent[MAX_X+2][MAX_Y+2];
              board=new int[MAX_X+2][MAX_Y+2];
              number=new int[MAX_X+2][MAX_Y+2];
              gridX=new int[4];
              gridY=new int[4];
              mine=new int[4];
              level=EASY;
              gridX[0]=8;
              gridY[0]=8;
              mine[0]=10;
              gridX[1]=16;
              gridY[1]=16;
              mine[1]=40;
              gridX[2]=30;
              gridY[2]=16;
              mine[2]=99;
              gridX[3]=0;
              gridY[3]=0;
              mine[3]=0;
              minesLeft=mine[level];
              tMine.setText(""+minesLeft);
              state=START;
              timer=new Timer();
              reset.addActionListener(this);
              setup();
              Thread t=new Thread(this);
              t.start();
              /*System.out.println("count="+pane.getComponentCount());
              Component cc[]=pane.getComponents();
              for(int i=0;i<cc.length;i++) {
                   System.out.println("cc="+cc);
         public void setup() {
              boolean done;
              for(int x=0;x<=gridX[level]+1;x++) {
                   for(int y=0;y<=gridY[level]+1;y++) {
                        if(x==0 || x==gridX[level]+1 || y==0 || y==gridY[level]+1) {
                             board[x][y]=OB;
                             number[x][y]=-1;
                        else {
                             board[x][y]=BLANK;
              for(int i=0;i<mine[level];i++) {
                   done=false;
                   while(!done) {
                        int x=(int)((Math.random()*gridX[level])+1.0);
                        int y=(int)((Math.random()*gridY[level])+1.0);
                        if(board[x][y]==BLANK) {
                             board[x][y]=MINE;
                             done=true;
                             //System.out.println("Mine x="+x+" y="+y);
              for(int y=1;y<=gridY[level];y++) {
                   System.out.print("\n");
                   for(int x=1;x<=gridX[level];x++) {
                        number[x][y]=0;
                        if(board[x][y]==MINE) {
                             number[x][y]=9;
                             System.out.print(""+number[x][y]);
                             continue;
                        else {
                             //System.out.println("For board pos x="+x+" y="+y);
                             for(int i=-1;i<=1;i++) {
                                  for(int j=-1;j<=1;j++) {
                                       //System.out.print(""+board[x+i][y+j]);
                                       if(board[x+i][y+j]!=OB && board[x][y]==BLANK) {
                                            number[x][y]+=board[x+i][y+j];
                                  //System.out.print("\n");
                             System.out.print(""+number[x][y]);
              System.out.print("\n");
              screen.setVisible(false);
              display.removeAll();
              pane.removeAll();
              display.setLayout(new GridLayout(gridY[level],gridX[level]));
              for(int y=1;y<=gridY[level];y++) {
                   for(int x=1;x<=gridX[level];x++) {
                        Cover temp=new Cover();
                        //System.out.println("new button="+temp);
                        grid[x][y]=temp;
                        //System.out.println("display="+display.add(temp));
                        //display.add(temp);
                        temp.addMouseListener(this);
              //System.out.println("count="+display.getComponentCount());
              screen.setSize(gridX[level]*20,gridY[level]*20+30);
              pane.add(gameInfo,BorderLayout.NORTH);
              pane.add(display,BorderLayout.CENTER);
              minesLeft=mine[level];
              timeDisp=0;
              tMine.setText(""+minesLeft);
              time.setText(""+timeDisp);
              state=START;
              //System.out.println("gameInfo="+gameInfo);
              //System.out.println("display="+display);
              //screen.pack();
              screen.setVisible(true);
         void revealAround(int x,int y) {
              int index;
              Reveal tempRev=new Reveal(number[x][y]);
              grid[x][y]=tempRev;
              board[x][y]=(board[x][y]|REVEAL);
              index=(x-1)+((y-1)*gridX[level]);
              display.remove(index);
              display.add(tempRev,index);
              if(number[x][y]==0) {
                   for(int i=-1;i<=1;i++) {
                        for(int j=-1;j<=1;j++) {
                             if(!(i==0 && j==0)) {
                                  if((board[x+i][y+j]&REVEAL)!=REVEAL && board[x+i][y+j]!=OB) {
                                       revealAround(x+i,y+j);
         void startTimer() {
              timer.start();
         public void run() {
              while(true) {
                   if(state==PLAYING) {
                        if(timer.getSeconds()>timeDisp) {
                             timeDisp=timer.getSeconds();
                             time.setText(""+timeDisp);
                   else {
                        try {
                             Thread.sleep(1000);
                        catch (InterruptedException e) {
         public void actionPerformed(ActionEvent e) {
              if(e.getActionCommand().equals("Reset")) {
                   setup();
         public void mouseClicked(MouseEvent e) {
              if(state==START) {
                   startTimer();
                   state=PLAYING;
              if(state==PLAYING) {
                   Component tempComp=(Component)e.getSource();
                   boolean found=false;
                   int index=0;
                   int buttonPressed=e.getModifiers();
                   for(int x=1;x<=gridX[level];x++) {
                        if(found) {
                             break;
                        for(int y=1;y<=gridY[level];y++) {
                             if(tempComp==grid[x][y]) {
                                  clickX=x;
                                  clickY=y;
                                  found=true;
                                  break;
                   index=(clickX-1)+((clickY-1)*gridX[level]);
                   if(buttonPressed==InputEvent.BUTTON1_MASK && !(grid[clickX][clickY] instanceof Flag)) {
                        Reveal tempRev=new Reveal(number[clickX][clickY]);
                        grid[clickX][clickY]=tempRev;
                        board[clickX][clickY]=board[clickX][clickY]|REVEAL;
                        display.remove(index);
                        display.add(tempRev,index);
                   else if(buttonPressed==InputEvent.BUTTON3_MASK) {
                        if(display.getComponent(index) instanceof Cover) {
                             Flag tempFlag=new Flag();
                             grid[clickX][clickY]=tempFlag;
                             display.remove(index);
                             display.add(tempFlag,index);
                             tempFlag.addMouseListener(this);
                             minesLeft--;
                        else if(display.getComponent(index) instanceof Flag) {
                             Cover tempCov=new Cover();
                             grid[clickX][clickY]=tempCov;
                             display.remove(index);
                             display.add(tempCov,index);
                             tempCov.addMouseListener(this);
                             minesLeft++;
                        tMine.setText(""+minesLeft);
                   if(number[clickX][clickY]==0) {
                        revealAround(clickX,clickY);
                   screen.setVisible(true);
         public void mousePressed(MouseEvent e) {}
         public void mouseReleased(MouseEvent e) {}
         public void mouseEntered(MouseEvent e) {}
         public void mouseExited(MouseEvent e) {}

    setBounds() is only used for absolute positioning. I
    am using layout managers, so it should no be used.
    Thanks for you reply.Oh I get I did not look at your source code enought... can you post only the part that is bugy!?!?!
    JRG

  • Stack file that is generated does not contain any java components

    We are in process of upgrading our ecc6.0 system with ehp4. The enhancement is stuck up in configuration phase for JAVA. Though we have configured Java in solution manager the stack file that is generated does not contain any java components and so the installation is stuck up. Kindly request you to advice us on this issue .
    Attached is the 'Trouble Ticket Report', PREPARE_JSPM_QUEUE_CSZ_01.LOG, and SMSDXML_EA4_20100623144541.375.txt
    ++++
    Trouble Ticket Report
    Installation of enhancement package 1 for SAP NetWeaver 7.0
    SID................: EA4
    Hostname...........: wipro
    Install directory..: e:/usr/sap/EA4
    Upgrade directory..: F:\EHPI\java
    Database...........: Oracle
    Operating System...: NT
    JDK version........: 1.6.0_07 SAP AG
    SAPJup version.....: 3.4.29
    Source release.....: 700
    Target release.....: 700
    Start release SP...: $(/J2EE/StandardSystem/SPLevel)
    Target release SP..: $(/J2EE/ShadowSystem/SPLevel)
    Current usages.....:
    ABAP stack present.: true
    The execution of PREPARE/INIT/PREPARE_JSPM_QUEUE ended in error.
    The stack E:\usr\sap\trans\EPS\SMSDXML_EA4_20100625054857.968.xml contains no components for this system.
    More information can be found in the log file F:\EHPI\java\log\PREPARE_JSPM_QUEUE_CSZ_02.LOG.
    Use the information provided to trouble-shoot the problem. There might be an OSS note providing a solution to this problem. Search for OSS notes with the following search terms:
    com.sap.sdt.j2ee.phases.PhaseTypePrepareJSPMQueue
    com.sap.sdt.ucp.phases.PhaseException
    The stack E:\usr\sap\trans\EPS\SMSDXML_EA4_20100625054857.968.xml contains no components for this system.
    PREPARE_JSPM_QUEUE
    INIT
    NetWeaver Enhancement Package Installation
    SAPJup
    Java Enhancement Package Installation
    ++++++
    PREPARE_JSPM_QUEUE_CSZ_01.LOG>>
    <!LOGHEADER[START]/>
    <!HELP[Manual modification of the header may cause parsing problem!]/>
    <!LOGGINGVERSION[2.0.7.1006]/>
    <!NAME[F:\EHPI\java\log\PREPARE_JSPM_QUEUE_CSZ_01.LOG]/>
    <!PATTERN[PREPARE_JSPM_QUEUE_CSZ_01.LOG]/>
    <!FORMATTER[com.sap.tc.logging.TraceFormatter(%d [%s]: %-100l [%t]: %m)]/>
    <!ENCODING[UTF8]/>
    <!LOGHEADER[END]/>
    Jun 28, 2010 9:21:23 AM [Info]:                      com.sap.sdt.ucp.phases.AbstractPhaseType.initialize(AbstractPhaseType.java:754) [Thread[main,5,main]]: Phase PREPARE/INIT/PREPARE_JSPM_QUEUE has been started.
    Jun 28, 2010 9:21:23 AM [Info]:                      com.sap.sdt.ucp.phases.AbstractPhaseType.initialize(AbstractPhaseType.java:755) [Thread[main,5,main]]: Phase type is com.sap.sdt.j2ee.phases.PhaseTypePrepareJSPMQueue.
    Jun 28, 2010 9:21:23 AM [Info]:                   com.sap.sdt.ucp.phases.AbstractPhaseType.logParameters(AbstractPhaseType.java:409) [Thread[main,5,main]]:   Parameter inputFile=EHPComponents.xml
    Jun 28, 2010 9:21:23 AM [Info]: com.sap.sdt.j2ee.phases.jspm.JSPMQueuePreparatorFactory.createJSPMQueuePreparator(JSPMQueuePreparatorFactory.java:93) [Thread[main,5,main]]: Creating JSPM SP Stack  queue preparator.
    Jun 28, 2010 9:21:24 AM [Info]: com.sap.sdt.ucp.dialog.elim.DialogEliminatorContainer.canBeOmitted(DialogEliminatorContainer.java:96) [Thread[main,5,main]]: Dialog eliminator spStackDialogEliminator allows to omit dialog SPStackLocationDialog
    Jun 28, 2010 9:21:24 AM [Info]:                  com.sap.sdt.util.validate.ValidationProcessor.validate(ValidationProcessor.java:97) [Thread[main,5,main]]: Validatable parameter SP/STACK/LOCATION has been validated by validator RequiredFields.
    Jun 28, 2010 9:21:24 AM [Info]:                  com.sap.sdt.util.validate.ValidationProcessor.validate(ValidationProcessor.java:97) [Thread[main,5,main]]: Validatable parameter SP/STACK/LOCATION has been validated by validator SPStackLocationValidator.
    Jun 28, 2010 9:21:24 AM [Info]: com.sap.sdt.j2ee.phases.jspm.JSPMSpStackQueuePreparator.createQueue(JSPMSpStackQueuePreparator.java:107) [Thread[main,5,main]]: Using SP Stack E:\usr\sap\trans\EPS\SMSDXML_EA4_20100625054857.968.xml.
    Jun 28, 2010 9:21:24 AM [Info]:                   com.sap.sdt.j2ee.tools.spxmlparser.SPXmlParser.parseStackTag(SPXmlParser.java:488) [Thread[main,5,main]]: STACK-SHORT-NAME tag is missing. The CAPTION of the stack will be used as stack name.
    Jun 28, 2010 9:21:24 AM [Info]:                   com.sap.sdt.j2ee.tools.spxmlparser.SPXmlParser.parseStackTag(SPXmlParser.java:582) [Thread[main,5,main]]: PRODUCT-PPMS-NAME tag is missing. The CAPTION of the product will be used as product PPMS name.
    Jun 28, 2010 9:21:24 AM [Info]:                      com.sap.sdt.j2ee.tools.spxmlparser.SPXmlParser.parseSPXml(SPXmlParser.java:424) [Thread[main,5,main]]: Parsing of stack definition file E:\usr\sap\trans\EPS\SMSDXML_EA4_20100625054857.968.xml has finished.
    Jun 28, 2010 9:21:24 AM [Error]:                       com.sap.sdt.ucp.phases.AbstractPhaseType.doExecute(AbstractPhaseType.java:863) [Thread[main,5,main]]: Exception has occurred during the execution of the phase.
    Jun 28, 2010 9:21:24 AM [Error]: com.sap.sdt.j2ee.phases.jspm.JSPMSpStackQueuePreparator.createQueue(JSPMSpStackQueuePreparator.java:136) [Thread[main,5,main]]: The stack E:\usr\sap\trans\EPS\SMSDXML_EA4_20100625054857.968.xml contains no components for this system.
    Jun 28, 2010 9:21:24 AM [Info]:                         com.sap.sdt.ucp.phases.AbstractPhaseType.cleanup(AbstractPhaseType.java:906) [Thread[main,5,main]]: Phase PREPARE/INIT/PREPARE_JSPM_QUEUE has been completed.
    Jun 28, 2010 9:21:24 AM [Info]:                         com.sap.sdt.ucp.phases.AbstractPhaseType.cleanup(AbstractPhaseType.java:907) [Thread[main,5,main]]: Start time: 2010/06/28 09:21:23.
    Jun 28, 2010 9:21:24 AM [Info]:                         com.sap.sdt.ucp.phases.AbstractPhaseType.cleanup(AbstractPhaseType.java:909) [Thread[main,5,main]]: End time: 2010/06/28 09:21:24.
    Jun 28, 2010 9:21:24 AM [Info]:                         com.sap.sdt.ucp.phases.AbstractPhaseType.cleanup(AbstractPhaseType.java:910) [Thread[main,5,main]]: Duration: 0:00:00.781.
    Jun 28, 2010 9:21:24 AM [Info]:                         com.sap.sdt.ucp.phases.AbstractPhaseType.cleanup(AbstractPhaseType.java:911) [Thread[main,5,main]]: Phase status is error.
    ++++++++++++++++++++++
    [stack xml data: version=1.0]
    [SPAM_CVERS]
    ST-PI                         2005_1_7000006
    LSOFE                         600       0015
    SAP_AP                        700       0015
    SAP_BASIS                     701       0003
    SAP_ABA                       701       0003
    SAP_BW                        701       0003
    PI_BASIS                      701       0003
    PLMWUI                        700       0002
    SAP_APPL                      604       0002
    EA-APPL                       604       0002
    SAP_BS_FND                    701       0002
    EA-IPPE                       404       0002
    WEBCUIF                       700       0002
    INSURANCE                     604       0002
    FI-CA                         604       0002
    ERECRUIT                      604       0002
    ECC-DIMP                      604       0002
    EA-DFPS                       604       0002
    IS-UT                         604       0002
    IS-H                          604       0003
    EA-RETAIL                     604       0002
    EA-FINSERV                    604       0002
    IS-OIL                        604       0002
    IS-PRA                        604       0002
    IS-M                          604       0002
    SEM-BW                        604       0002
    FINBASIS                      604       0002
    FI-CAX                        604       0002
    EA-GLTRADE                    604       0002
    IS-CWM                        604       0002
    EA-PS                         604       0002
    IS-PS-CA                      604       0002
    EA-HR                         604       0005
    SAP_HR                        604       0005
    ECC-SE                        604       0002
    [PRDVERS]                                  
    01200314690900000432SAP ERP ENHANCE PACKAGE       EHP2 FOR SAP ERP 6.0          sap.com                       EHP2 FOR SAP ERP 6.0                                                    -00000000000000
    01200314690900000463SAP ERP ENHANCE PACKAGE       EHP4 FOR SAP ERP 6.0          sap.com                       EHP4 FOR SAP ERP 6.0                                                    -00000000000000
    01200615320900001296                                                            sap.com                                                                                +00000000000000
    01200615320900001469SAP ERP ENHANCE PACKAGE       EHP3 FOR SAP ERP 6.0          sap.com                       EHP3 FOR SAP ERP 6.0                                                    -00000000000000
    01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01                                           +00000000000000
    [SWFEATURE]                                                                               
    1                   01200615320900001296SAP ERP                       2005                          sap.com                       SAP ERP 6.0: SAP ECC Server
    19                  01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01: Discrete Ind. & Mill Products
    20                  01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01: Media
    21                  01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01: Utilities/Waste&Recycl./Telco
    23                  01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01: Leasing/Contract A/R & A/P
    24                  01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01: Retail
    25                  01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01: Global Trade
    26                  01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01: Financial Supply Chain Mgmt
    30                  01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01: Central Applications
    31                  01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01: Strategic Enterprise Mgmt
    33                  01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01: Human Capital Management
    37                  01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01: Oil & Gas
    38                  01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01: Catch Weight Management
    42                  01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01: Public Sector Accounting
    43                  01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01: Insurance
    44                  01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01: Hospital
    45                  01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01: SAP ECC Server VPack successor
    46                  01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01: ERecruiting
    47                  01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01: Defense & Public Security
    48                  01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01: Financial Services
    55                  01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01: Oil & Gas with Utilities
    56                  01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01: Defense
    59                  01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01: PLM Core
    69                  01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01: EAM config control
    9                   01200615320900003195EHP4 FOR SAP ERP 6.0_NW701    EHP4 FOR ERP 6.0_NW701        sap.com                       EHP4 FOR SAP ERP 6.0 / NW7.01: SAP ESA ECC-SE
    ++++++++++++++++

    Though we have configured Java in solution manager the stack file that is generated does not contain any java components
    You will probably need to update Solution Manager first with a number of corrections so you can get a correctly generated stack file. Depending on your ST400 version in Solution Manager apply collective corrections from "Note 1461849 - MOpz: Collective corrections 24" or "Note 1452118 - MOpz: Collective Corrections 23". They generally deal with these kind of stack file issues.
    Nelis

  • Image not showing in Abobe integrated with Java WebDynPro

    Hi All,
    Image is not showing in Abobe integrated with Java WebDynPro.
    I did the following:
    Added the image field in adobe form. in URL value set the value of context node binding. Binding set to none and size set to Use Original Size.
    Then in script editor i wrote
    this.value.image.href = xfa.resolveNode(this.value.image.href).value;
    at innitialize , javascript and client.
    I can see the image from the same url context value if image field is created directly in WebDynPro View.
    Can anyone suggest what is missing?
    Thanks and Regards,
    Nuzhat

    Try changing your line of code for this one
    this.value.image.href = xfa.record.Images.URL;
    Check that the url passed by scripting is correct with a messageBox for example.
    You can also try assigning a hardcoded url at scripting level to check if its works.
    Best regards, Aldo.

Maybe you are looking for

  • Can you sync attachments from an iPhone to a Windows PC with Outlook 2007?

    Can you sync attachments from an iPhone to a Windows PC with Outlook 2007? I would like to receive email on the iphone with attachments and then sync the attachments to a Windows XP PC with Outlook 2007 without Outlook 2007 having to connect to the m

  • MacBook Pro (13, late 2011) keeps restarting several times a day for no apparent reason.

    Hi, my MacBook Pro (13 inch, late 2011, 2,4 GHz, 4GB memory, Intel HD Graphics 3000 384 MB) keeps restarting "because of a problem". Often it happens in the morning just after I wake it. It's really annoying (it takes about 5 minutes to turn on again

  • My iPod screen has randomly stopped working?

    So a while so my iPod screen has randomly striped working. I've tried everything. Restoring didn't help one bit and I don't have enough money to go in and get it looked at and get it fixed. I have talked to an apple professional and he was telling me

  • Rebate type

    We get wrong settlements for a rebate type: 1. The system does not ask for an assignment. 2. the related accounting document does contain a posting on the customer number when it should be the GL Code. I already checked the Agreement type, and there

  • Weird snapping issues with objects in Ai CS5...

    For some reason, when I want to adjust a vectored object (expanded as well), is will only snaop to certain places. • Smart Guides is not engaged. • NONE of the perspective grid is activated. • NONE of the snap-to's are activated. But for the life of