netbeans-7

How to show a label as the frame background in java? [closed]

主宰稳场 提交于 2019-12-12 01:52:38
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . i'm developing a java application,i need to undecorate frame and use a image as the background.i used this code to do this com.sun.awt.AWTUtilities.setWindowOpaque(this, false) but if i use this letters are not showing correctly. Is there another way to do this? Please help me to solve this problem, 回答1: Your

Jasper the document has no page

做~自己de王妃 提交于 2019-12-12 01:17:26
问题 I am trying the jasper report plugin with NetBeans. I created my connection (test is okay) I created the jrxml and I try to preview it. It is compiled automatically (the .jasper appears) and I have a message saying : "the document has no page". I read the problem could be the datasource that is empty but it is not the case.. so I decided to make a very simple jrxml (static : only text with no reference to any field of the database) <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE jasperReport

How to import a class from a package in a different folder?

南笙酒味 提交于 2019-12-11 18:53:15
问题 I am new to java. This is a basic question about packages. I have a small java project named "stacklist.java" in Netbeans IDE. It's package name is stacklist. And it has 4 different classes. One of them is ListNode. Now i need ListNode object in other project "queuelist.java". directory structure is StackList->src->stacklist and QueueList->src->queuelist. Both StackList and QueueList are at the same level. And added the folder(StackList\src) in Libraries of queuelist.java project. I did

EntityManager null and NullPointerException while searching in DB

…衆ロ難τιáo~ 提交于 2019-12-11 18:37:22
问题 i am really noob in java ee i want to make a query to verify if email is unique after i search on web i mad i came to conclusion that me EntityManeger is null this is my entity Customer and is an query Customer.findByEmail that is my point of focus @Entity @Table(name = "customer") @NamedQueries({ @NamedQuery(name = "Customer.findAll", query = "SELECT c FROM Customer c"), @NamedQuery(name = "Customer.findById", query = "SELECT c FROM Customer c WHERE c.id = :id"), @NamedQuery(name = "Customer

Do I need to include EclipseLink modelgen package in my Maven dependencies?

怎甘沉沦 提交于 2019-12-11 17:14:33
问题 I am using Netbeans 7.1 to write a Maven-built JSF 2.0 web application. The server is GlassFish 3.1, and EclipseLink as a JPA 2.0 provider. When I do a "clean and build" of the project, all the generated sources for the JPA meta-model go away and don't come back. So Netbeans sees piles of undefined symbols. Red dots everywhere. The odd thing is, if I run the project, the meta-model somehow gets generated then, and eventually finds its way back to the generated-sources directory that the Maven

Adding items dynamically to JComboBox

末鹿安然 提交于 2019-12-11 13:10:49
问题 I have to read values from the database and add it to a jcombo box. Names of projects are read from the employee table and stored to a string arraylist. These values are then added to a string array named pro_string. I tried printing the values inside this string array and it works fine. But the values just don't seem to enter into the combobox(combo_project). Following is the code that i have used. It keeps throwing an exception "3". Please help. public class meeting_form extends javax.swing

How to make a j2me project in NetBeans 7.0?

耗尽温柔 提交于 2019-12-11 10:01:19
问题 I have installed Netbeans 7.0 (in window xp SP3) and I also installed "Wireless Toolkit 2.5". But when I open Netbeans File->New Project then there is only option for Java SE and Java EE. Not for Java ME. I also try Tools-> Plugin -> and search for Java ME but I was not able to find "Java ME". 回答1: At first install 'Mobility' plugin for NetBeans IDE for J2ME development. You can do this from Tools > Plugins > (Select and install). Then DO this.. In netbeans, Tools > Java Platforms >Select Add

Can't run javafx JAR outside Netbeans

可紊 提交于 2019-12-11 08:13:45
问题 I have a problem here with my javafx application jar, generated by Netbeans. Actually everything is running pretty well IF I am running inside Netbeans. However when I use the command line and try to run the jar of my application which was previously created by Netbeans, using the command: java -jar SequenceAlign.jar I got a LOT OF errors in my terminal. The error are the following: java.lang.NullPointerException file:/Users/tsukanomon/NetBeansProjects/SequenceAlign/dist/SequenceAlign.jar!

Netbeans update fail

丶灬走出姿态 提交于 2019-12-11 03:49:16
问题 I have no problem in my internet connection. But getting every time this screen when I try to update netbeans plugins or IDE itself. Even OS reintallation doesn't fix this issue. Getting same error again and again. How can I fix it? 回答1: In Netbeans Go to Tools->Plugins->Settings and Add a new one or change the URL of "JAX-RPC" to the one referred below URL: http://bits.netbeans.org/dev/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/nbms/updates.xml.gz 回答2: Netbeans 8.0.2/Tools/Plugins

Unable to connect to Subversion Local repository

不打扰是莪最后的温柔 提交于 2019-12-11 03:15:10
问题 I have installed Subversion 1.8.8 and TortoiseSVN 1.8.5 64-bit on Windows 7 64-bit. I have created a local repository at C:/Projects/SVNRepository using TortoiseSVN. While trying to import project from NetBeans i am getting this error. org.apache.subversion.javahl.ClientException: E180001: Unable to open an ra_local session to URL E180001: Unable to open repository 'file:///C:/Projects/SVNRepository' E160043: Expected FS format between '1' and '5'; found format '6' 回答1: First: Never use the