Ich mache dieses Tutorial Netbeans und ich habe auf diesem Teil stecken (https://platform.netbeans.org/tutorials/nbm-feedreader.html#three)NetBeans-Plattform Feed-Reader Tutorial
Hier ist der Code, den ich für die Klasse implementiert haben.
package org.myorg.feedreader;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
import org.openide.awt.ActionID;
import org.openide.awt.ActionReference;
import org.openide.awt.ActionReferences;
import org.openide.windows.TopComponent;
/**
*
* @author Kidnapinn
*/
@TopComponent.Description(
preferredID = "FeedTopComponent",
persistenceType = TopComponent.PERSISTENCE_ALWAYS)
@TopComponent.Registration(
mode = "explorer",
openAtStartup = true)
@ActionID(
category = "Window",
id = "org.myorg.feedreader.FeedTopComponent")
@ActionReferences({
@ActionReference(
path = "Menu/Window",
position = 0)
})
@TopComponent.OpenActionRegistration(
displayName = "#CTL_FeedAction")
@Messages({
"CTL_FeedTopComponent=Feed Window",
"HINT_FeedTopComponent=This is a Feed Window"})
private FeedTopComponent() {
setName(Bundle.CTL_FeedTopComponent());
setToolTipText(Bundle.HINT_FeedTopComponent());
}
public class FeedTopComponent extends TopComponent {
}
I Ich bin ein Neuling in Java, also weiß ich nicht, was ich falsch mache. Können Sie mir helfen?