Adding Background with NetBeans

I am new to NetBeans and currently am trying to add a cycling background. Is there a way to do this. Also, I have changed the font of one of my JLabel, but it still shows the font first used instead of the one I have recently changed it too. I look at the code and it is also specified to the one I want it to be. Any way to fix this?
Thanks

Alright I have tried a majority of different ways, but I am still unable to get this JMF media player to compile and work. I have a combo box that once selected will go play a file of that specific genre. I want to set the media player to be visible on the JForm once played, but am unsuccessful at that as well. I have read through forums and looked at the JMF tutorial with no success, so I am hoping I can get some answers here. I also can't get my font to display as it should be. Any suggestions? I appreciate it so much for anyone taking the time to look at this.
Here is the code...
* MediaClass.java
* Created on October 22, 2007, 11:18 PM
package netbean;
import java.beans.EventHandler;
import java.io.File;
import java.io.IOException;
import javax.swing.*;
import javax.media.*;
import java.awt.*;
* @author
public class MediaClass extends javax.swing.JFrame {
     /*//constructor
     public TestBg(){
          //.. other codes go in here
          //set the first background
          setContentPane(getImage());
          //create a timer which is invoked every second
          Timer timer = new Timer(1000,this);
          timer.start();
     //close constructor
     public void actionPerformed(ActionEvent e){
          //print a statement to see if method is invoked
          System.out.println("Method invoked");
          setContentPane(getImage()); */
    /** Creates new form MediaClass */
    public MediaClass() {
        initComponents();
    /** 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.
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">
    private void initComponents() throws IOException {
        jButton1 = new javax.swing.JButton();
        jComboBox2 = new javax.swing.JComboBox();
        label1 = new java.awt.Label();
        jComboBox3 = new javax.swing.JComboBox();
        label2 = new java.awt.Label();
        label3 = new java.awt.Label();
        jButton2 = new javax.swing.JButton();
        jButton1.setText("jButton1");
        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Media Center");
        jComboBox2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "", "Funny", "Romantic", "Epic" }));
        String movies = String.valueOf (jComboBox2.getSelectedItem ());
        label1.setAlignment(java.awt.Label.CENTER);
        label1.setFont(new java.awt.Font("Magneto", 0, 18));
        label1.setText("MEDIA CENTER");
        jComboBox3.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "", "Rock", "Country", "Hip-Hop" }));
        String music = String.valueOf (jComboBox3.getSelectedItem ());
        if (music=="Rock"){
            player = Manager.createPlayer
            (new MediaLocator(new java.lang.String("file:///C:\\Users\\Rock\\Queen - We Are The Champions.mp3")));
            player.start();
        else if (music=="Hip-Hop"){
            player = Manager.createPlayer
            (new MediaLocator(new java.lang.String("file:///C:\\Users\\Bone Thugs N Harmony - Crossroads.mp3")));
            player.start();
        else if (music=="Country"){
            player = Manager.createPlayer
            (new MediaLocator(new java.lang.String("file:///C:\\UsersCountry\\Rascal Flatts - Life Is a Highway.mp3")));
            player.start();
        label2.setAlignment(java.awt.Label.CENTER);
        label2.setFont(new java.awt.Font("Magneto", 0, 18));
        label2.setText("Movies");
        label3.setAlignment(java.awt.Label.CENTER);
        label3.setFont(new java.awt.Font("Magneto", 0, 18));
        label3.setText("Music");
        jButton2.setText("Select Files");
        jButton2.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                openFile(evt);
        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(165, Short.MAX_VALUE)
                .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(166, 166, 166))
            .addGroup(layout.createSequentialGroup()
                .addGap(109, 109, 109)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(label3, javax.swing.GroupLayout.PREFERRED_SIZE, 190, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(label1, javax.swing.GroupLayout.PREFERRED_SIZE, 190, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(label2, javax.swing.GroupLayout.PREFERRED_SIZE, 190, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(101, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(174, Short.MAX_VALUE)
                .addComponent(jComboBox3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(162, 162, 162))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(101, Short.MAX_VALUE)
                .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(91, 91, 91))
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(31, 31, 31)
                .addComponent(label1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(44, 44, 44)
                .addComponent(label2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 81, Short.MAX_VALUE)
                .addComponent(label3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jComboBox3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(90, 90, 90)
                .addComponent(jButton2)
                .addContainerGap())
        pack();
    }// </editor-fold>
    private void openFile(java.awt.event.MouseEvent evt) {                         
      JFileChooser fileChooser = new JFileChooser();
      fileChooser.setFileSelectionMode(
         JFileChooser.FILES_ONLY );
      int result = fileChooser.showOpenDialog( this );
      // user clicked Cancel button on dialog
      if ( result == JFileChooser.CANCEL_OPTION )
         file = null;
      else
         file = fileChooser.getSelectedFile();
    private void createPlayer()
      if ( file == null )
         return;
      //removePreviousPlayer();
      try {
         // create a new player and add listener
         player = Manager.createPlayer( file.toURL());
         //player.addControllerListener( new EventHandler() );
         player.start();  // start player
      catch ( Exception e ){
         JOptionPane.showMessageDialog( this,
            "Invalid file or location", "Error loading file",
            JOptionPane.ERROR_MESSAGE );
   private void removePreviousPlayer()
      if ( player == null )
         return;
      player.close();
      Component visual = player.getVisualComponent();
      Component control = player.getControlPanelComponent();
      Container c = getContentPane();
      if ( visual != null )
         c.remove( visual );
      if ( control != null )
         c.remove( control );
     * @param args the command line arguments
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new MediaClass().setVisible(true);
    private Player player;
    private File file;
    // Variables declaration - do not modify
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JComboBox jComboBox2;
    private javax.swing.JComboBox jComboBox3;
    private java.awt.Label label1;
    private java.awt.Label label2;
    private java.awt.Label label3;
    // End of variables declaration
// inner class to handler events from media player
   private class EventHandler implements ControllerListener {
      public void controllerUpdate( ControllerEvent e ) {
         if ( e instanceof RealizeCompleteEvent ) {
            Container c = getContentPane();
            // load Visual and Control components if they exist
            Component visualComponent =
               player.getVisualComponent();
            if ( visualComponent != null )
               c.add( visualComponent, BorderLayout.CENTER );
            Component controlsComponent =
               player.getControlPanelComponent();
            if ( controlsComponent != null )
               c.add( controlsComponent, BorderLayout.SOUTH );
            c.doLayout();
*/

Similar Messages

  • How can I get a single jar file with NetBeans?

    How can I get a single jar file with NetBeans?
    When I create the project I get these files:
    dist/lib/libreria1.jar
    dist/lib/libreria2.jar
    dist/software.jar
    The libraries that have been imported to create the project are in separate folders:
    libreria1/libreria1.jar
    libreria2/libreria2.jar
    libreria1, libreria2, dist folders are all located inside the project folder.
    I added the following code to the build.xml:
    <target name="-post-jar">
    <jar jarfile="dist/software.jar">
    <zipfileset src="${dist.jar}" excludes="META-INF/*" />
    <zipfileset src="dist/lib/libreria1.jar" excludes="META-INF/*" />
    <zipfileset src="dist/lib/libreria2.jar" excludes="META-INF/*" />
    <manifest>
    <attribute name="Main-Class" value="pacco.classeprincipale"/>
    </manifest>
    </jar>
    </target>
    Of course there is also the project folder:
    src/pacco/classeprincipale.form
    src/pacco/classeprincipale.java
    Can you tell me what is wrong? The error message I get is as follows:
    C:...\build.xml:75: Problem creating jar: archive is not a ZIP archive BUILD FAILED (total time: 2 seconds)

    This is not a NetBeans forum, it is a JDeveloper forum. You might want to try http://forums.netbeans.org/. I also saw your other question - try looking in the New to Java forum: New To Java

  • How do I get a white background with black lines

    How do I get a white background with black lines and characters on my screen. To run the program, copy it out and delete the ` and it should go. If it does not compile on your machine, I would like to know. There is a test on about line 34 for changing the colors.
    `//Simple program to test Graphics2D.setBackground(white) obtained from BufferedImage.getGraphics()
    `import java.awt.Frame; //Object>awt.Component>Container>Window>Frame
    `import java.awt.Insets; //Object>awt.Insets
    `import java.awt.image.BufferedImage; //Object>awt.Image>awt.image.BufferedImage
    `import java.awt.Graphics; //Object>awt.Graphics
    `import java.awt.Graphics2D; //Object>awt.Graphics>Graphics2D
    `import java.awt.Color;
    `import java.awt.BasicStroke;
    `public class TstBgCol { //frame & BufferedImage in pixels & BasicStroke in points ????????????
    ` TstBgCol tstBgCol;
    ` public static void main(String[] args) {
    ` TstBgCol tstBgCol=new TstBgCol(); tstBgCol.tstBgCol=tstBgCol;
    ` tstBgCol.main2(); tstBgCol.byteBinary();
    ` }
    ` Graphics fgcontext;
    ` Frame fram; Insets insets; //borders of the Frame, Container.getInsets
    ` int bIWid=1272,bIHgt=876; //set for 1280x1024 screen on windows XP & matches paper ratio 10.6x7.3
    ` int unusedPixHgt=84;
    ` void main2() {
    ` fram=new Frame();
    ` fram.addWindowListener(new java.awt.event.WindowAdapter() { //anonymous inner class
    ` public void windowClosing(java.awt.event.WindowEvent e) { System.exit(0); }
    ` });
    ` fram.setVisible(true);
    ` insets=fram.getInsets(); //(Container)getInsets() works after displayable
    ` System.out.println("Insets l,t,r,b:"+insets.left+","+insets.top+","+insets.right+","+insets.bottom);
    ` fram.setSize(insets.left+bIWid+insets.right,insets.top+bIHgt+unusedPixHgt+insets.bottom);
    ` fgcontext=fram.getGraphics(); //creates Graphics context for this component
    ` }
    ` void byteBinary() {
    ` BufferedImage buIm=new BufferedImage(bIWid,bIHgt,BufferedImage.TYPE_BYTE_BINARY); //can be resized
    ` Graphics2D bIG2=buIm.createGraphics(); //returns Graphics2D context
    ` //change to if(true) to use either of the following two lines
    ` if(false) bIG2.setBackground(Color.white); //does not change the background color to white
    ` if(false) bIG2.setColor(Color.black); //does change the foreground color to black
    ` edgeLinesAndX(buIm,bIG2);
    ` fgcontext.drawImage(buIm,insets.left,insets.top,fram);
    ` }
    ` private void edgeLinesAndX(BufferedImage bI,Graphics2D bIG2) { //really on the edge
    `      BasicStroke strk=new BasicStroke(10f); bIG2.setStroke(strk);
    ` int x0,y0,xmx,ymx;
    ` x0=bI.getMinX(); y0=bI.getMinY(); xmx=bI.getWidth()-1; ymx=bI.getHeight()-1;
    ` bIG2.drawLine(x0+xmx,y0,x0,y0+ymx); //lo-left to up-right
    ` bIG2.drawLine(x0,y0,x0+xmx,y0+ymx); //up-left to lo-right
    ` bIG2.drawLine(x0,y0,x0+xmx,y0); //up-left to up-right
    ` bIG2.drawLine(x0,y0,x0,y0+ymx); //up-left to lo-left
    ` bIG2.drawLine(x0,y0+ymx,x0+xmx,y0+ymx); //lo-left to lo-right
    ` bIG2.drawLine(x0+xmx,y0,x0+xmx,y0+ymx); //up-right to lo-right
    ` bIG2.drawString("("+x0+","+y0+") wid="+(xmx+1)+" hgt="+(ymx+1),(xmx+1)/5,(ymx+1)/5);
    ` }
    `} //the result on my screen is a black background, why?????

    How do I get a white background with black lines and characters on
    my screen.Contrary to what you might think, the linebIG2.setBackground(Color.white);does not give the buffered image a white background. The API docs
    http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Graphics2D.html#setBackground(java.awt.Color)
    say: "Setting the background color in the Graphics2D context only
    affects the subsequent clearRect calls... " So adding a line to your
    if blocks we getif (false) {
        bIG2.setBackground(Color.white);
        bIG2.clearRect(0, 0, buIm.getWidth(), buIm.getHeight());
    if (false) {
        bIG2.setColor(Color.black);                    
    }Changing the false to true results in a white background (and black
    X and text).

  • How to use a scaled object(MC) to fill the background with the new properties

    So lets say i have a stage 300 to 200 and all object that i have are for this dimensions.Also have an pattern function that fills the background.
    But the user is thinking of resizing the stage to lets say 1024 to 480 (he switched from a phone to a tablet).And now the scale of the objects in the tablet screen are more than 3times before(when seen on the Phone)
    How do i save the current new size object and use it in the creation of the new background (the 1024x480).
    currently i have this :
    public static const GAME_ORG_WIDTH:uint = 300;
    public static const GAME_ORG_HEIGHT:uint = 200;
    public function MainClass_road() {
                                  addEventListener(Event.ADDED, init);
                        public function init(e:Event):void{
                                   stage.scaleMode = StageScaleMode.NO_SCALE;
                                     stage.align = StageAlign.TOP_LEFT;
                                     stage.addEventListener(Event.RESIZE, setUpScreen);
                        public function setUpScreen(ev:Event):void{
                                  stage.removeEventListener(Event.RESIZE, setUpScreen);
                                  if(stage.fullScreenHeight > stage.fullScreenWidth){  
                                            gameStageWidth = stage.fullScreenWidth;
                                gameStageHeight = stage.fullScreenHeight;
                                  }else {
                                            gameStageWidth = stage.fullScreenHeight;       // 480
                                            gameStageHeight = stage.fullScreenWidth;                     //1024
                                  rescaleRatio = gameStageWidth / GAME_ORG_WIDTH;  
                                  //rescale every object, ie:
                                myC.scaleX = myC.scaleY =   rescaleRatio;
                       //start filling the Background with the pattern
                                       tileBgF();
    and then I use the while loop for filling the screen/background
    public function tileBgF(e:Event=null):void {
                                                      var bgClip = MyC;
                                                      var i:int = 0;
                                                      var j:int = 0;
                                                      while (bgClip.x < stage.stageWidth) {
                                                                bgClip = MyC;
                                                                while (bgClip.y < stage.stageHeight) {
                                                                          bgClip = MyC;
                                                                          tileLayer.addChild(bgClip);
                                                                          bgClip.x = bgClip.width * i;
                                                                          bgClip.y = bgClip.height * j;
                                                                          j++;
                                                                j = 0;
                                                                i++;
                                                      addChildAt(tileLayer,0);
    why does it give me
    Line 52
    1120: Access of undefined property MyC.
    in public function tileBgF
    and further more.After filling the background/screen with the pattern , how do i save it all like one big bitMap  so i can use /add it after time without doing all the checking of screen and things again.

    and is it better to use
    stage.fullScreenHeight
    in the while loop or leave it like it is ,or its irrelevant

  • Serious problems on GUI with NetBeans.....

    package supershare;
    import java.awt.event.*;
    import javax.swing.*;
    public class testGUI extends javax.swing.JFrame implements java.awt.event.ActionListener{
        public testGUI(){initComponents();}
    public void initComponents(){/*Generated Code*/}
    public static void main(String args[]) {
                    new testGUI().setVisible(true);
      public void actionPerformed(ActionEvent e)
            /*JProgressBar jp = new JProgressBar(0, 100);
            jp.setValue(0);
            jp.setStringPainted(true);
            this.add(jp);
            this.validate();*/
            this.remove(jButton1);
        // Variables declaration - do not modify
        private javax.swing.JButton jButton1;
        // End of variables declaration
    }Above is the code I made under NetBeans....
    As you know, NetBeans has a function called "JFrameForm", which allows you to design GUI more conviniently....
    if you are familar with NetBeans, you can easily understand the above code...
    You know what I am trying to do is that when I click the button, the button should disappear, but it doesnot....
    please help here... actually, I have a bigger project meeting this problem.. and if I have to design the whole project without using NetBeans's JFrameForm function, it will be a nightmare...yes, lots of work...
    Apreciate any help
    thanks

    Has any one here used NetBeans before???
    It has nothing to do with netbeans (except the layout manager you used happens to come with it)
    You need to understand what you are doing in terms of LayoutManagers and Containers. You cannot just add a Component to a Container with anything but the simplest layout manager - you need to understand the constraints the manager uses. In this case, I designed my JFrame using the Netbeans designer (which is most cool I must say) and added a JPanel to act as an area to add and remove components from (so I don't have to understand the GroupLayout constraints).
    Be forewarned that GroupLayout is not (as of yet) part of the standard jdk and you may have issues trying to distribute your application or run it outside of netbeans unless you know what you are doing or netbeans does it for you (I haven't tried yet)
    Good luck
    import java.awt.BorderLayout;
    import javax.swing.JProgressBar;
    * @author  Ian Schneider
    public class NewJFrame extends javax.swing.JFrame {
        /** Creates new form NewJFrame */
        public NewJFrame() {
            initComponents();
        /** 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.
        // <editor-fold defaultstate="collapsed" desc=" Generated Code ">
        private void initComponents() {
            jButton1 = new javax.swing.JButton();
            jPanel1 = new javax.swing.JPanel();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            jButton1.setText("Press Me");
            jButton1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton1ActionPerformed(evt);
            jPanel1.setLayout(new java.awt.BorderLayout());
            jPanel1.setName("progressArea");
            org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()
                    .addContainerGap()
                    .add(jButton1)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(jPanel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 281, Short.MAX_VALUE)
                    .addContainerGap())
            layout.setVerticalGroup(
                layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()
                    .addContainerGap()
                    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING, false)
                        .add(org.jdesktop.layout.GroupLayout.LEADING, jPanel1, 0, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .add(jButton1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            pack();
        // </editor-fold>
        private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
            final JProgressBar jpb = new JProgressBar(0,100);
            jPanel1.add(jpb,BorderLayout.CENTER);
            jPanel1.validate();
            jPanel1.repaint();
            Runnable task = new Runnable() {
                public void run() {
                    jButton1.setEnabled(false);
                    for (int i = 0; i < 100; i++) {
                        jpb.setValue(i);
                        try {
                            Thread.sleep(50);
                        } catch (InterruptedException ie) {}
                    jButton1.setEnabled(true);
                    jPanel1.remove(jpb);
                    jPanel1.validate();
                    jPanel1.repaint();
            new Thread(task).start();
         * @param args the command line arguments
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new NewJFrame().setVisible(true);
        // Variables declaration - do not modify
        private javax.swing.JButton jButton1;
        private javax.swing.JPanel jPanel1;
        // End of variables declaration
    }

  • Problem with Netbeans IDE 5.0: Building Gui

    Hello,
    I have the following problem with Netbeans IDE 5.0 (I made the same with netbeans 3.6 and it works properly):
    Step 1) Create a myJPanel class (new JPanel Form)
    Step 2) make a simple operation on myJPanel such as adding a JTable.
    Step 3) Create a myJForm Class (new JFrame Form)
    Step 4) Adding a JPanel to myJFrame (default name jPanel1)
    Step 5) Select JPanle1 within myJFrame and go to code-> custom creation code and write "new myJPanel();"
    this should set the jPanel1 (and all its contents and behaviours) created
    in step 4 equals to myJPanel();
    Step 6) run myJFrame;
    ........ and nothing happens. It is dispalyed just a gray JFrame.
    It seems that myJFrame is able to istantiate myJPanel() but is not able to paint it. what's wrong?
    Hope you may help me,
    thx

    Unfortunately, Netbeans 3.6 files and Netbeans 5 files are not compatible. Except the Java source files, Netbeans uses other aditional files such as xml files etc for forming GUI and other reasons. I have also faced the same problem with you. Good luck.

  • Just updated my iphone. Now I can se I have two? iCloud accounts? One of them appears on my phone, and I have forgotten the password. When I try to add the other account, I get the message that this account is already added, but with the name of the first

    Just updated my iphone. Now I can se I have two! iCloud accounts? One of them appears on my phone, and I have forgotten the password. When I try to add the other account, I get the message that this account is already added, but with the name of the first account where there is no available password. I have tried several times to reset the password, bun I don't get the information I need - I have no access to email. What can I do?

    Hi, thanks for the suggestion. I have tried as you suggested, and when opening the "purchased" apps some have the icloud logo next to them, but I only have "OPEN" against "Find My iPhone". When opening it up, it goes through the same routine; needs to be updated before proceeding, and wouldn't update because I don't have IOS8.
    Anything else I could try, or am I doomed!
    All of your help is much appreciated, thanks

  • How do i turn off apps running in the background with the new upgrade?

    how do i turn off apps running in the background with the new upgrade?

    They changed it a bit, but you can still close apps. Double click the Home button to pull up the currently running apps. Side scroll over to the app you want to close, then swipe up on the app *window* (not the icon at the bottom).
    = L.I.

  • Batch Input : Adding component with C002

    Hi all
    I try to add component on a production ordrer with C0O2 but i have problem with the item category 'R' (Variable-size item). In fact, SAP ask me to fill variable-size item data but i can't run this step with batch input.
    For example with the batch input recorder, i obtain :
    SAPLCOKO1 0110 X
         BDC_OKCODE                         /00
         CAUFVD-AUFNR          10001280
    SAPLCOKO1 0115 X
         BDC_OKCODE          =KPU2
    SAPLCOMK 0120 X
         BDC_CURSOR          RESBD-LGORT(23)
         BDC_OKCODE          /00
         FILTER_BOX          NO_FIL
         SORT_BOX          ST_STA
         RESBD-MATNR(23)      SAM6506P00055
         RESBD-MENGE(23)          2
         RESBD-EINHEIT(23)     M
         RESBD-POSTP(23)          R
         RESBD-VORNR(23)          0040
         RCOLS-APLFL(23)          23
         RESBD-WERKS(23)          0200
         RESBD-LGORT(23)          0010
         BDC_SUBSCR          SAPLCOKO1                               0800ORD_HEADER
         BDC_SUBSCR          SAPLCOMK                                0050BUTTONS
         BDC_SUBSCR          SAPLCOMD                                0160SUBSCR_0100
         BDC_CURSOR          RESBD-ROMEI
         RESBD-MATNR          SAM6506P00055
         RESBD-ROMS1          1000
         RESBD-ROMEI          MM
         RESBD-ROKME          M
    Is there other way to fill variable-size item ? Have you got ideas to simulate this step ?
    I don't use FM because i have to fill the field RESBD-VORNR.
    Thanks in advance for your response.
    Patrick.

    In fact the choice that i have made was wrong.
    Adding component with CO02 is possible with ls_params-nobinpt = ''.

  • Reg creation of  value added service with delivery material

    hi
    I want to create the material which is used for the value added service with delivery .do u know the material type for creating the service material other than material type 'dien '. if i use the material type as ' DIEN ' , then i can't create the shipment. in  my scenario , i need to create the shipment. kindly help me in this scenario with the material type & the procedures

    hi
    I want to create the material which is used for the value added service with delivery .do u know the material type for creating the service material other than material type 'dien '. if i use the material type as ' DIEN ' , then i can't create the shipment. in  my scenario , i need to create the shipment. kindly help me in this scenario with the material type & the procedures

  • My mac book pro will not fully boot up. I have the grey background with the apple sign and the timer going round...but 20 minutes later still no desktop

    My mac book pro will not fully boot up. I have the grey background with the apple sign and the timer going round...but 20 minutes later still no desktop

    You could try doing a hard shut down (holding the power button or yanking the battery) and then doing a safe boot by holding the shift key at startup:
    http://support.apple.com/kb/HT1455
    Also, not sure if this applies in your case, but I've had that happen when there's a USB drive inserted either in the computer or a connected external keyboard.  I did a hard shut down, removed the drive and it went through a normal start up. 

  • Premiere Pro CC 2014 very unresponsive while rendering on background with Adobe Media Encoder

    Usually while I eddit videos on Premiere, I'm rendering on the background with AME. Or at least I used to. Some time ago, this process suddenly stopped working, as rendering on the background bagan to make Premiere really unresponsive, and quite impossible to work with. I couldn't think of any change I made other than switching my HDD, and I blamed it on that (it made sense because new HDD is one of those WD Green ones, a little worse than my old Seagate one). So I adapted to just queueing everything and start rendering when I was done edditing. But yesterday I installed a 240gb Kingston HyperX SSD, re-installed Windows and the main apps on it, and tried again, hoping to see an improvement. Now I was storing the original media on the HDD, running OS, Premiere and AME on the SSD, and rendering to the HDD. It did not work. Premiere still became slow while I rendering with AME. So I thought it might get better if the HDD was not reading and writing at the same time, and I switched the original media to the SSD, while still rendering to the HDD. Also didn't help. I don't know why this setup suddenly does not work, and I really need to fix it.
    My setup:
    Windows 7 Home Premium 64bit
    Intel Core i7 2600 @ 3.4GHz
    12GB of RAM
    nVidia GeForce GTX 560 (yes, drivers are up to date)
    Dual monitors (one for Premiere workspace and one for a bigger program monitor)
    2TB WD Green HDD where I keep most of my junk (and media files)
    240GB Kingston HyperX SSD where I run the OS and important apps (Premiere and AME included)
    I'm running Adobe Premiere Pro CC 2014 (8.1.0 build) and AME CC 2014 (8.1.0.122 build)

    Hi chriscorrell,
    Thank you for posting on Adobe forums.
    Upgrading your OS might be a good idea because Premiere CC 2014's OS requirement is OS X 10.8.
    See here: System requirements | Adobe Premiere Pro
    Thanks,
    Rameez

  • Need Help With NetBeans (Java Studio Enterprise 8)'s code generation

    Hi!
    I am using Java Studio Enterprise 8 with NetBeans 4.1 IDE bundled together with it. When trying to create GUI out from NetBeans Form Designer, I don't like the way it generates the code. When I try to use a JTextField, it uses "Fully Qualifed Class Names" (e.g: javax.swing.JTextField) on the code. How do I set NetBeans not to use it but rather use only the class name and generate import lines on top of the code? Also, how do I set it up that it will generate the variable declarations (which is on the uneditable blue portion of the code) on top rather than the default which is placed at the bottom of the class code body. I have tried tweaking the Options menu of this IDE but haven't got any luck...
    Hope you could help, and thanks in advance!

    To address the location of the var decl codegen section (or any codegen location issues), there is a workaround, admittedly, it is a bit tedious.
    Once the form code is generated, as Kris mentioned, open the class in an external editor so that you can edit the generated code.
    Then cut the entire var declaration section along with the begin/end gen-code markers and paste it to the section of the file you desire.
    When you add more components to your form, the codegen will find this section wherever it is and add to it.
    Alternatively, you could just move the non-protected code around the protected within the NB editor, but you would not be able to rearrange the order of the actual code-genned sections.
    craig

  • How do I layer digital backgrounds with photoshop elements 2011? [was:Please Help]

    How do I layer digital backgrounds with photoshop elements 2011?

    What do you mean by "layer digital backgrounds"? Can you explain a little more about what you're trying to do?

  • Can I take a frame from my project and use it as a custom menu background with CS4 and its Encore

    My project is edited in CS4.
    I moved it to Encore CS4.
    I don't want to use any of the supplied menu templates in CS4 Encore.
    I was hoping CS4 would be all I needed to create custom menus using scenes from my project.
    My question is: Can I take a frame from my project and use it as a custom menu background with CS4 and its built in Encore or do I need some other element from the Adobe catalog to make these custom chapter menus and sub-menus?
    Thanks Jim

    OK, I'm back. Here are my steps for creating Custom Menus with PS, En and PrPro:
    In PrPro, move the CTI (Current Time Indicator) to the desired Frame. Check Frames on either side, with the Program Monitor’s Magnification to 100%, or maybe even 200% (you’ll need to scroll, but get a really clear picture). You want the clearest Frame in that area. With AME, in CS4, you’ll want to Export that Frame as .TIFF, or .BMP. I use .TIFF for this.
    Now, for a caveat. When you Import this Exported Frame into Photoshop, be sure to check the specs., especially the PAR. You may have to use Image>PAR to adjust this to match your Project’s specs. Or, all might be perfect - just check this out.
    Now, at this point, I choose the Library Menu, Blank, so that everything is setup. One can create the Menu from scratch, but careful attention needs to be paid to the exact naming conventions. At the very least, unless you’ve done this dozens of times before, use that Blank Menu, or similar as a guide, so you get things done, as they must be done.
    Using that Blank Menu, just drag the Layer from your Exported Frame to your Menu image. It will appear above the black Background.
    Add, or manipulate your Button Layer Sets, as is required, keeping them together. Remember that Button #1 will be the Button Layer Set, that is lower down in the Layers Palette. This can play a roll with Button Routing, back in Encore. Lower Button Layer Sets will have lower Button numbers.
    Now, I always rename my Button Layer Sets, keeping the required characters - just changing the name. I also do all of my Button text in PS, and make sure to turn OFF Sync Button Names.
    When done, Save_As .PSD, and then Import_As_Menu into Encore. Note: if you start with the Blank Menu, you can choose Edit in Photoshop, and then when done in PS, you just need to Save, and it will update in Encore. This is a personal workflow choice. I do the Edit in Photoshop route, but it is not necessary. One just needs to Import the resulting .PSD into Encore with Import_As_Menu, so that Encore does all the things that it needs to and recognizes the .PSD as a Menu.
    When deciding what to base your Menu on, remember that you can "populate" your Menu with Buttons from the Functional Content. I’d suggest studying these Assets, and picking the ones that work best for you. You can still alter/edit those back in PS, so you just need to "get close."
    Pay special attention to the required naming conventions. You cannot deviate from those first characters in the Button Layer Sets. They MUST be followed.
    If you have any questions, do not hesitate to ask.
    Good luck,
    Hunt

Maybe you are looking for

  • Fcx-creating multicam clip with two different frame rate

    I have created a multicam clip with 2 clips, one shot with iphone 3gs, 15 fps, and the otherone with a dslr i remember that with fc7 the main task to accomplish this was to shot with same setting but now it seems to work althought they are not same.

  • Can't copy dvd's

    I want to copy dvds, mostly my own which includes dvd copies of VHS movies I wrote as well as home dvds. I tested DVD-Cloner based on reviews but it seems to only copy dvds it wants to and others it won't. There's no pattern and their support said "s

  • Select item list

    is their a way to do a add from a select item list. IE: created a view of the items i wanted to select off. based on this view i want to select it from the select item list and then add these records to another table. table 1: item id, item descripti

  • How to deinstall programmes on mac os x

    I need to de-install a series of programmes from my Mac Book Pro 5.3. Im running Mac OS X 10.6.8 For example coud software. Any ideas please...

  • Lost my hard drive. How to transfer from IPOD to MacBook -OR!- Match?

    I lost my entire harddrive on my W7 PC.  I have most (but not all) of my music on my iPod.  I just purchased a MacBook Pro, and iPhone 5, and subscribed to iTunes Match.  QUESTION: How can I transfer all the songs on my iPod, from the ipod up into iT