31,002 Topics

Member Avatar for
Member Avatar for scheppy

Hi all. Im having trouble getting my menu to work on my window. this is what I have so far as for my code. package sparepartinventory; import java.awt.Dimension; import java.awt.Toolkit; import javax.swing.*; /** * * @author jonathan */ public class SparePartInventory { /** * @param args the command line arguments …

Member Avatar for JamesCherrill
0
277
Member Avatar for godzab

Hello all, I am trying to find all occurences of a letter in a word. If the letter is present in the word, then I save it to a String. For example here is the text: Hello World, my name is godzab. I search the text, and if there is …

Member Avatar for godzab
0
103
Member Avatar for ronnel09_2

Please help me with this, i'm trying to create a domino game (which a project in school) i'm a midway learner of Java Prog, but still i haven't know a lot. My problem is, i'm trying to draw over the background image of my playFrame, but the rectangle does not …

Member Avatar for ronnel09_2
0
180
Member Avatar for shchandhu

i started learing java reading thinking in java i cam across this java objects do not have same lifetime as primitives an object retains in memory even after its scope until garbage collector detects and releases the memory well whats the lifetime of primitives..?? their memory will be released after …

Member Avatar for JamesCherrill
0
123
Member Avatar for sciwizeh

Ok, so I'm working on a web-project, I connected a custom hanlder to the root Logger in `contextInitialized()` of a ServletContextListener: @Override public void contextInitialized(ServletContextEvent sce) { Logger def = Logger.getLogger(""); Handler hand = new DatabaseLoggingHandler(); hand.setLevel(Level.WARNING); def.addHandler(hand); } which looks like: import java.io.PrintWriter; import java.io.StringWriter; import java.util.logging.LogRecord; import java.util.logging.Logger; …

0
249
Member Avatar for nikolaos

/* PointOne type objects has three members. Two of type Integer and one of type ThreeD a custom class. PointOneClone method takes an argument of PointOne type and copy every value from his members to arguments members. So the result is a PointOne instance with the exact same values but …

Member Avatar for JamesCherrill
0
206
Member Avatar for Twee Nguyen

Hello everyone, I just start to study about Java and I need to design a website in Java. I do not know I should create a Java Application project or Java Web or Java EE.... Could you help me to start this? Thank you.

Member Avatar for peter_budo
0
244
Member Avatar for x2005man

hi geys , I need ow to return a array string to my method public String[] SearchPort(){ ArrayList<String> arr=new ArrayList<>(); Win32Driver w32Driver= new Win32Driver(); w32Driver.initialize(); port= CommPortIdentifier.getPortIdentifiers(); while(port.hasMoreElements()){ cuport=(CommPortIdentifier) port.nextElement(); if(cuport.getPortType()==CommPortIdentifier.PORT_SERIAL){ // return cuport.getName(); arr.add(cuport.getName()); String[] t=new String[arr.size()]; t=arr.toArray(t); for(String j:t){ return t; } } //System.out.println(cuport.getName()); } String h[]={"noo data …

Member Avatar for stultuske
0
117
Member Avatar for xtreamcoder

I have good knowledge of C, and a good knowledge of core Java. Please list out the areas I need to cover for J2EE. There are many technology available in j2ee.. Please tel me which technology is using uptodate.. I have premium account in lynda, vtc, and pluralaight.. There many …

Member Avatar for stultuske
0
237
Member Avatar for CoilFyzx

Good day folks. Problem: My program needs to import data from a database and display them in a table then manipulate and display the data in various ways. That bit is solved the next part is where I need help. The program then needs to save locally... 1. the newly …

Member Avatar for CoilFyzx
0
399
Member Avatar for rubeea.jaffari

Hey everyone, Can we create a java file that runs without the JVM? I have googled the topic and found out about excelsior Jet that is meant to convert the java code into native one so that it won't require a JVM. Is it true and should I download the …

Member Avatar for stultuske
0
206
Member Avatar for mikewyatt

I know that this is probably the stupidest question that I have ever asked but here goes....... I am trying to create a new application in netbeans..... and having no luck at all. First I create a new project called Interactive Campaign Manager by choosing java category and then Java …

Member Avatar for mikewyatt
0
209
Member Avatar for cswong

I need some help to make AES work with UDP. I keep getting this error. Exception in thread "main" javax.crypto.IllegalBlockSizeException: Input length must be multiple of 16 when decrypting with padded cipher at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:750) at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:676) at com.sun.crypto.provider.AESCipher.engineDoFinal(AESCipher.java:313) at javax.crypto.Cipher.doFinal(Cipher.java:2087) at AES.decrypt(AES.java:31) at EchoServer.main(EchoServer.java:26) It seems that upon receiving the …

0
155
Member Avatar for azraa

Write a general purpose currency convertor program. The program is started by giving it three program arguments: the name of the currency the user holds and wishes to sell, the name of the currency the user wishes to buy, and the conversion rate from the first currency to the other. …

Member Avatar for JamesCherrill
0
181
Member Avatar for sangeethab

Hi, I want to build an application in java, without using ipAddress i should be able to access the Remote System. Please do the needful.

Member Avatar for jalpesh_007
0
168
Member Avatar for Andrew_8

How do I set the security permissions to no restrictions with a .policy file when I start the application. I can trying to run it with HTML. Thank you!

Member Avatar for jalpesh_007
0
82
Member Avatar for srikanth2321

Hello, I'm writing a plugin for a software in eclipse. I'm using vtd-xml.jar for importing an xml file. I have added to the build path by rigt clicking on the paroject and selecting the opetion add to build path. While I do the operations from eclipse it is working fine …

Member Avatar for srikanth2321
0
243
Member Avatar for ezra.kim.98

import java.io.*; import java.net.*; import java.util.*; public class UselessHTTPServer04 { public static void main(String args[]) throws Exception { int port = Integer.parseInt(args[0]); ServerSocket serverSock=new ServerSocket(port); while(true) { Socket conn = serverSock.accept(); Scanner scanin = new Scanner(conn.getInputStream()); String line=null; int nlines=0; while (true) { line = scanin.nextLine(); if(line.length()==0) break; nlines = …

Member Avatar for ObSys
0
307
Member Avatar for Abdul_19

Hi dear all i am new in java i don't know how identify the background and foreground color of image if any have idea please help thanks in advance

Member Avatar for ObSys
0
300
Member Avatar for mussdroid

Hello Guys , I am having an error message with javafx scene builder integration on netbeans kindly help me ! ![e0bfe397024238042e0c0a4b0776f3f0](/attachments/large/4/e0bfe397024238042e0c0a4b0776f3f0.PNG "e0bfe397024238042e0c0a4b0776f3f0") Thanks

Member Avatar for peter_budo
0
116
Member Avatar for Leo_5

I am a beginner to hibernate.... I have a two tables like, t_2013 id name 1 donald t_2014 id name 2 charles This is my jpa, @Entity @Table(name="t_2013") public class Test implements Serializable { @Id @GeneratedValue @Column(name="id") private int id; @Column(name="name") private String name; Here i create one jpa with …

Member Avatar for cool_zephyr
0
187
Member Avatar for SreeJo

hi , we have a requirement to get grand parent,parent and child nodes display in treemodel.At the moment we have the parent ,child display of Tree Model .Could you please advise what need to be done to get this hierarchy -Grand Parent - Parent -children Thanks in advance for your …

Member Avatar for mKorbel
0
154
Member Avatar for Ghost

Hi, Is it possible to create a Java compiler? Could you make a Notepad-like application, save the code as a .java file, compile it into a .class file, and run it? Basically, I want to combine Notepad and Command Prompt. I just need help on the compiling part (and listing …

Member Avatar for stultuske
0
861
Member Avatar for mussdroid

Hi Guys , I know this looks like quite funny question during the holiday season , but i developed small netbeans application called helloworld , which is kind of pressing button and displaying helloworld , i pressbuild the application and press run , but my application is not runnig even …

Member Avatar for mussdroid
0
186
Member Avatar for sarthak25
Member Avatar for mussdroid
Member Avatar for mussdroid
0
227
Member Avatar for mussdroid

Hello Guys , When I checkout code from svn i get this error message any idea to fix this issue ? I use netbeans 7.3.1 , plugin subversion. ![38e5e181fb4f014e1a9cac948390b20a](/attachments/small/4/38e5e181fb4f014e1a9cac948390b20a.PNG "align-left")

Member Avatar for JamesCherrill
0
258
Member Avatar for 2384443

I have just started to learn java..!! I'm trying to implement some C++ programs in java.. Some of them are working perfectely. But this is the only program which is not working.. It's showing 2 errors at br.readLine().. I don't know what to do.. Kindly please have a look on …

Member Avatar for JamesCherrill
0
208
Member Avatar for karthick_pmk

i am try to compare the Stored-password and Salted Password for the Experiment. Now i have a Stored Password and Salted-password., Stored-password having 72-byte and Salted-password having 18-bytes only, but i facing problem on comparison, how can i compare the both of them.. Here my Code : RandomAccessFile raf = …

Member Avatar for Ewald Horn
0
245
Member Avatar for djdanjo82

Hello all! Again thanks for viewing my thread. The past couple of days I have been struggling with trying to add JPanels to a JScrollPane. Basically I have data to display that comes in from another application in the form of a JPanel with regular updates. I am trying to …

Member Avatar for ramesh midatana
0
2K

The End.