Florent Georges | 1 Jul 2010 01:17

Maven-based project: add Saxon dependency

  Hi,

  I created a new Maven-based project by using the builtin
project wizard for Maven plugins.  That plugin has to use the
Saxon XSLT processor, so I right-click on the "Libraries" node
under the project, and select "Add Dependency".  In the "Query"
field I type "saxon", and select "9.1.0.8 [jar,s9api]" in the
result list (see http://fgeorges.org/tmp/maven-nb-xspec.png for a
screenshot).

  The main Saxon JAR file is downloaded, but not the S9API one,
which you can see at:

http://repo1.maven.org/maven2/net/sourceforge/saxon/saxon/9.1.0.8/

  If I expend the JAR added in the "Libraries" mode, I do not see
the package net.sf.saxon.s9api.  If I right-click on this JAR and
select "View Artifact Details", I can see "s9api" in the box
"Secondary Artifacts", but there is no way to ask NetBeans to add
the corresponding JAR as a dependency of my project.  And the
corresponding JAR (saxon-s9api) is not in my ~/.m2 neither.

  How can I ask NetBeans to add the proper dependencies to my
project?

  Regards,

--

-- 
Florent Georges
http://fgeorges.org/
(Continue reading)

ncgsoftware | 1 Jul 2010 07:26
Picon

Can't Open 6.9 on Mac OS 10.6.4

Hi guys,
I am running 10.6.4 with 6.9 without incident on three Macs. I could be wrong, but I believe Snow Leopard only
ships with JDK 1.6. I ran clean installs on all machines and that is the only (Apple shipping version with
all updates) JDK on all three (I have not tried installing any others). 

I did have 6.9 installed before updating to .4 from .3 on two. The other 6.9 was added after the update. They
all also run 6.8 without incident. So it's not the update. 

Try checking the log files  <at>  "/Users/≤user>/.netbeans/config/var/log/" to see what is happening. If you
use Finder you will have to be able to see the "hidden" files. If you need this turned on, try using Secrets or
similar tool.

http://secrets.blacktree.com/

shivam_choubey | 1 Jul 2010 09:41
Favicon

Showing Folder tree : Fetching data from CMS

Hi,
I want to show Jtree(BeanTreeView) kind of structure for the folders which I am fetching from the CMS
(Alfresco). 
Can you suggest what api's I should use to implement this.

Regards,
Shivam

Petr Podzimek | 1 Jul 2010 10:28

Re: I can not run the created jar file

OK. send your project please.

Petr Podzimek <petr <at> podzimek.net>

2010/6/28 mamech <mamech <at> windowslive.com>:
> Hello Everyone
>
> I am in really in need for a quick solution for my problem.
> when I press compiles & run the program run perfectly on the netbeans, but when I double click the jar file
created in the dist folder, nothing happens.
>
> lately, the program does not compile giving a weird compilation error, but surprisingly the program
still runs even if it does not compile!!!!!!!
>
> I am about to finish my project and still have no jar file!!
>
> I tried to attach the file , but the site refuses saying : "Sorry, but the maximum filesize for all
Attachments is reached."
>
> I can send it to the helping person email.
>
> Can anyone help me??
>
>
>
>
>

treyk | 1 Jul 2010 17:33
Favicon

javaFX NoSuchMethodException

[/quote]everytime I run this code no matter what I change, I get this exception. I was just trying to make a
quick gui in JavaFX and have been stuck on this for days. The full exception is:
java.lang.NoSuchMethodException: torpedodepth.Main.javafx$run$(com.sun.javafx.runtime.sequence.Sequence)
        at java.lang.Class.getMethod(Unknown Source)
        at com.sun.javafx.runtime.Entry.start(Entry.java:63)
        at com.sun.javafx.runtime.Main.main(Main.java:80)

[ code}
/*
 * Main.fx
 *
 * Created on Jun 3, 2010, 11:15:40 AM
 */
package torpedodepth;

import javafx.scene.Scene;
import javafx.scene.image.ImageView;
import javafx.scene.image.Image;
import javafx.scene.Group;
import javafx.stage.Stage;

/**
 *  <at> author hkight
 */
public class Main {

    // <editor-fold defaultstate="collapsed" desc="Generated Code">                
    public-read def rectangle: javafx.scene.shape.Rectangle = javafx.scene.shape.Rectangle {
        opacity: 0.1
        layoutX: 1.0
(Continue reading)

David Kaspar | 1 Jul 2010 21:08
Picon

Re: Font support in JavaFX Composer ...


Hi,

There is one enhancement filed similar to your feature-request:
   http://netbeans.org/bugzilla/show_bug.cgi?id=185564

Very likely it is not going to be implemented in the NB 6.9.1.

Regards,
   David

On 06/28/2010 08:01 AM, rktumuluri wrote:
> I am newbie to JavaFX. I have experimented with "JavaFX Composer" and tried out many of the related
tutorials. A feature-request ...
>
>   Currently one has to type the name of the "font" when trying to define properties for "text". I am never sure
as to what fonts are supported. Would'nt it be nice to simply have some control such as a "Check Menu Item" or
something equivalent. Right now, one has to spend a considerable amount of time and figure out fonts
supported by the underlying OS, the java-platform, the javafx-platform and such.
>
>   I am not yet upto speed to be able to contribute. At some point, I hope to do so, given Netbeans is
open-source. Meanwhile, I will "tip my hat" to you esteemed developers and Oracle the sponsor.
>
> Cheers ...
> /rk
>
>
>
>
>    
(Continue reading)

David Kaspar | 1 Jul 2010 21:15
Picon

Re: How to split the javafx design file? and how to send javafx components via functions to ither classes?


Hi,

On 06/25/2010 09:37 AM, mskmr wrote:
> Hi
>
> I have created a javafx design file using netbeans 6.9.The code length come across more then 5000 line.So I
am not able to compile the program.The reason I have found is the java byte code limit =64kb.
>
> 1.How can i raise this limit? Any possible ways available to change JVM configurations?
>    
There is no way to raise this limit. The limit is specified in the Java 
class-file specification.

> 2.To avoide the above risk,I have tried to split the design file into more fx files.In this situation,I am
not able to use components in another class files.For example,I have created a textbox in main design
file.I want to do some operations in textbox from subclass file.How can I do?
>
> I have received the following error also:[non-static variable rectMenuHome cannot be referenced from a
static context]
>    
This seems you are referencing a the instance variable from a static 
context e.g. the script level or the run function. You have to create an 
instance of your class and then you are able to access the vars/defs on 
that instance.

E.g.:

class MyMain {
   public-read def rectMenuHome;
(Continue reading)

mwildam | 2 Jul 2010 10:12
Picon
Gravatar

End of life for Swing Desktop Applications?

Please don't mix up Swing with particular Swing Frameworks.

I am not yet on 6.9, but I assume that when you create a plain Swing (Desktop) application, no disclaimer is
presented, right?

------------------------
Greetings, Martin Wildam.

mwildam | 2 Jul 2010 15:04
Picon
Gravatar

End of life for Swing Desktop Applications?

I think they have chosen to not support it further because they have the platform framework and one uses
either plain Swing or the complete platform framework for new projects from current point of view.

I myself also tend to do "everything" on my own or use a full featured framework.

------------------------
Greetings, Martin Wildam.

David Kaspar | 2 Jul 2010 17:37
Picon

Re: javaFX NoSuchMethodException


Hi,

 From the stack trace, it seems that you have edited the "run" function 
within your source file.

Currently you have a Main class with a "depth:Stage" variable inside and 
the depth instance has "run" function.

When you are running you apllication, then the source file has to 
represent a JavaFX script i.e. there must not be the Main class within 
it. Or your class has to have the Main class and there has to be a 
script-level run function.

Therefore I would recommend you to modify your source code to look like 
this:

============================

package ...;

import ...;

public class Main {
...
<the grayed folded guarded section>
...
     function sliderLabelFormatter(): function(value: Number): String {
         null
     }
(Continue reading)


Gmane