freemefast | 9 Feb 22:27
Picon

Adding images to key events

Hi all hope you can help,

Im using a jframe form and my program is a mars lander that moves left, right up and down with the keyboard arrows.

I am using a jLabel for the lander image but want to know how I can have it so that the image icon is swapped when i
press an arrow. i.e. I want an image of my spaceship to display thrusters to the left and right when i press
the arrow keys respectively.

Here is my code for the movement, it works just fine;
    private void jPanel1KeyPressed(java.awt.event.KeyEvent evt) {                                   
 System.out.println(evt.getKeyCode());
 switch (evt.getKeyCode()){
     case ARROW_RIGHT:
         x++;
         break;
     case ARROW_LEFT:
         x--;
         break;
      case ARROW_UP:
         y--;
         break;
      case ARROW_DOWN:
         y++;
         break;

 }

I thought maybe using the image url after the (x--) statement would work but cant find help on the syntax. Any ideas?

Thanks in advance. :)

PFN1991 | 9 Feb 22:19

Why is it...?

Why is it that when I make an applet using the walkthrough given by Netbeans I still can't hit the run button or
hit fn+F6. When I do there it comes up with a "no main class" window.  But it will run the file if I right click it
and hit "run file."  I'm new to programing and any help would be greatly appreciated.

emiddio-verizon | 9 Feb 23:11
Picon

Re: Why is it...?

applets require -- run file --

they are not standalone programs.

they have no main class.

gary
----- Original Message ----- 
From: "PFN1991" <pf.norton10 <at> students.bchigh.edu>
To: <nbusers <at> netbeans.org>
Sent: Tuesday, February 09, 2010 1:19 PM
Subject: [nbusers] Why is it...?


> Why is it that when I make an applet using the walkthrough given by > Netbeans I still can't hit the run button or hit fn+F6. When I do there it > comes up with a "no main class" window. But it will run the file if I > right click it and hit "run file." I'm new to programing and any help > would be greatly appreciated. > > > >
lsauvage | 9 Feb 20:56
Picon
Favicon

Where netbeans stores subversion username/password ?

Hi all,

I am encountering problem while commiting files on my subversion repository: I get a HTTP Basic challenge
error message when commiting. Notice I can commit with other SVN client (SmartSVN). My problem is
netbeans don't ask me to reenter username/password. So I tried to remove .netbeans folder but netbeans
still does not ask me to enter  username/password.
So where subversion username and passwords are stored by netbeans ?

Regards,

Laurent.
NB: My OS is ubuntu.

studiowolff | 9 Feb 21:26
Picon

How to add library to a JavaFX project?

Hi, i'm having trouble adding a Jar to my JavaFX project in Netbeans 6.8
The library i would like to add is: http://www.cokeandcode.com/phys2d/
phys2d-060408.jar
The jar fine! (Checked with jar -tf phys2d-060408.jar)

Run the application fine (with use of the jar) but code completion does not
work. Also cannot find symbol faults, but application builds and runs fine.

A bug in Netbeans 6.8??

Regards,

Jeroen

Ganesh | 9 Feb 19:22
Picon

Hi.. Help in While using Netbeans IDE pls..

Hi friends,

       I'm changing my IDE from  Eclipse  to Netbeans(6.8) and i'm searching few features of eclipse in Netbeans
which are very helpful for me.

1. How to map files b/w editor view to Files window, i means if i select one file in editor i need that file
should be auto selected in the Files window.

2. I need to push modified JSP into already running tomcat without redeploying.(here i'm confusing about
where to copy my JSP-- like copying in webapps in tomcat).

    Can anybody help me out pls...

Thanx in advance..

Thanx in advance

codegoat | 9 Feb 18:58

Mouse wheel vertical scrolling very slow on Mac OS 10.5.8

Anybody have any solutions/updates on this?

Same as the others in this thread, OSX (Snow Leopard), Netbeans 6.8... Single line scrolling, verrrrry
slow. ;)

col.naiturs | 9 Feb 18:31
Picon

How to access custom JPanel in design time?

Hello everyone. I'm a greenhorn with netbeans, so don't be too hard ;)  

I have a custom JPanel which is a simple bunch of JLabels, JButtons, etc. that are placed on standard JPanel.
Let's call this class CustomPanel. I added my CustomPanel (customPanel1) as a new component to JFrame via
NetBeans IDE. Everything is just fine except one little thing. I can't add new elements to my customPanel1
via NetBeans IDE in design time. You can easily add elements to an instance of JPanel in design time, so i
guess it is obviously posible to create JPanel's child with such abilities. What should be
overriden/added to make it possible?

Thanks in advance for any useful advice.

Glenn Holmer | 9 Feb 16:42

JEE6 application client

I'm trying to learn how to write an "Enterprise Application Client" for
our new Java EE 6 app.  We have the prototype web app up and running,
but I'm having trouble with the client.

The enterprise (blue triangle) project has an EJB subproject and a WAR
subproject; I created an Enterprise Application Client project and added
it to the enterprise project.  The client project lists the EJB
subproject in its library list.

I added a remote interface to one of our EJBs and verified that the app
still builds and the web app runs; now I want to add code in the client
to call it:

CategoryBeanRemote categoryBean = null;
ctxName = "java:global/phoenix-jee6/phoenix-jee6-ejb/CategoryBean"
        + "!com.weycogroup.phoenix.business.iface.CategoryBeanRemote";
categoryBean = (CategoryBeanRemote)ctx.lookup(ctxName);

The problem is that I can't get NetBeans to recognize the name
CategoryBeanRemote, which is the remote interface to CategoryBean (i.e.
alt-shift-I gives no suggestions, and typing the package name in
manually gives an error).  If I declare it as CategoryBean instead of
CategoryBeanRemote, he still won't recognize the method name that
implements the remote interface ("cannot find symbol").

In CategoryBeanRemote:

public String myGroovyMethod();

In CategoryBean:

@Override
public String myGroovyMethod() {  // for testing remote interface
  return "Shadow codez good";
}

In the app client:

s = categoryBean.myGroovyMethod();

Am I missing something here?

--

-- 
____________________________________________________________
Glenn Holmer                          gholmer <at> weycogroup.com
Software Engineer                        phone: 414-908-1809
Weyco Group, Inc.                          fax: 414-908-1601

garyamort | 9 Feb 15:09
Picon

Bookmarks/Marker Sets type of functionality?

I've been exploring different IDE's and netbeans looks really really close to what I want.  There is one
feature I'd really love to see, and I finally found an implementation in another IDE, which makes it easier
to describe what I want.

In JEDIT the plugin is called MarkerSets
http://plugins.jedit.org/plugins/?MarkerSets

Basically, you can maintain a list of line numbers and files in a "set" and by launching/opening the "set"
you open all the files to those line numbers.

Even more importantly, you can export that marker set to an XML file.

From my perspective, the use is if I am editing a "bug" and I edit 4 files, I can create a marker set of the first
line changed in each file.  Than when I'm done, export that marker set to an xml file and attach it to the issue tracker.

Then if someone has to come back later and work on the same code, they can get the marker set off the tracker and
open all the files automatically.

So, does Netbeans have any similar functionality/plugins?  If not, how hard would it be to add something
like this and what would it entail[ie can it be done in  a macro, does it require java, etc?]

seeismjava | 9 Feb 12:41
Picon

Netbeans 6.5.1 loading issue


Hi,

   Inorder to load netbeans IDE 6.5.1 in my machine is taking around 30
minutes.For just opening it.What could be the reason for this.

regards,
Seeism
--

-- 
View this message in context: http://old.nabble.com/Netbeans-6.5.1-loading-issue-tp27514003p27514003.html
Sent from the Netbeans IDE Users mailing list archive at Nabble.com.


Gmane