Hi, I'm using NetBeans with Java. I have create a JFrame with some checkboxes and a button to open browser go to the specific URL based on the checkboxes' values. But how do I auto-login/auto fill the username and password textbox then trigger the login button? Please kindly advise. Thanks.

Member Avatar
Member Avatar
+0 forum 6

I'm working on assignment that requires me to generate and store 50 random PPS Numbers in an array but I'm not sure as to how to go about doing this. Keep in mind that I'm not asking anyone to do this assignment for me, this is just the part I need help with Thanks in adavance

Member Avatar
Member Avatar
+0 forum 5

hi, I want to create an application in netbeans which send input and retrieve result from a website. I googled this... Some say we have to use jsoup, some says we have to use selenium , some says ajax and some says jquery. I am totally confused. i read so many turitorials on all these, but could'nt find a solution which explains it in a easy to undertsand way. As i am new to creating web based application, some one please do guide me to the right solution. Can anyone please explain by using simple example . please.................. for example, …

Member Avatar
+0 forum 0

Hello to all! I made a small project using Netbeans8. I named my project smallCalcApp. And then i add a new JFrame File in my project and in that file I handled events of components which i put on form. When I run that file , it ran successfully and frame appeared on screen and I used my application . but when I run project, it only shows a statement "build successfuly" but no any form appears. Please tell me that how I can run a project in a way that all the GUI files in it also run along …

Member Avatar
Member Avatar
+0 forum 1

I'm working on a programme that's supposed to accept input of doubles from an array however it's not quite working out for me. It takes in Integers alright but not the double values. Could someone point me in the right direction Any help is much appreciated double array[] = new double[10]; int total = 0; for (int counter = 0; counter < array.length; counter++) { array[counter] = Integer.parseInt(JOptionPane.showInputDialog("Enter the figures for the array")); total= (int) (total+array[counter]); } int average = total/10; JOptionPane.showMessageDialog(null, "the total is "+total); JOptionPane.showMessageDialog(null, "the average is "+average); }

Member Avatar
Member Avatar
+0 forum 3

I am currently working on a program that asks a student to answer 5 simple maths questions after each question it will state whether the answer is right or not. which it will out put a grade and grade average percentage. Currently I'm stuck on the if statement where it won't recognize my integer values and insists that they are strings despite one being an actual int and the other being parsed from a string to an int. So can someone point out what I'm doing wrong here? Below is a snippet of what I have done so far Any …

Member Avatar
Member Avatar
+0 forum 2

Sorry for the misleading question guys, I know how to generate two random numbers but I want to use them in One JOptionPane input Dialogbox so the user can add the two numbers. Below is my code of what I have done so far I know it's not a lot but I am genuinely stumped on what to do next :-/ Any help is much appreciated! :) import javax.swing.*; public class Practical13 { /** * @param args the command line arguments */ public static void main(String[] args) { String input = null; double ipt; ipt = Double.parseDouble(input); ipt = Math.floor((Math.random() …

Member Avatar
Member Avatar
+0 forum 2

I want to output the annual salary for each employee individually but I'm not sure how. The way it is now it just pops up as one large box. Any help is much appreciated :) public static void main(String[] args) { // TODO code application logic here String increase, Salary, output = ""; double percentIncrease, AnnualSalary, AnnualSal; for(int count = 1; count <= 10; count++ ){ Salary = JOptionPane.showInputDialog("Enter Employee wage " + count ); AnnualSalary = Double.parseDouble(Salary); increase = JOptionPane.showInputDialog("Enter Percentage Increase for Employee " + count); percentIncrease = Double.parseDouble(increase); for(int year = 1; year <= 4; year++ ){ …

Member Avatar
Member Avatar
+0 forum 2

My code has me stumped, My method is right...I think but the output begs to differ. Basically this code is supposed to convert seconds to minutes but the output is somewhat off..here's what I have don so far. String input = JOptionPane.showInputDialog(null, "Enter a value for seconds (positive whole number): "); int second = Integer.parseInt(input); int minutes = second/60; // number of minutes int seconds = second/60; // number of seconds JOptionPane.showMessageDialog(null, "Numbber of Seconds is " + second + " is converted to: " + minutes + " minutes and " + seconds + " seconds."); Any pointers / …

Member Avatar
Member Avatar
+0 forum 1

This is the message it gave me :( Pls help Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at javax.swing.ImageIcon.<init>(ImageIcon.java:205) at PPMSPrototype.initComponents(PPMSPrototype.java:841) at PPMSPrototype.<init>(PPMSPrototype.java:11) at PPMSPrototype$26.run(PPMSPrototype.java:1333) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733) at java.awt.EventQueue.access$200(EventQueue.java:103) at java.awt.EventQueue$3.run(EventQueue.java:694) at java.awt.EventQueue$3.run(EventQueue.java:692) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDo main.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:703) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre ad.java:242) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread. java:161) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre ad.java:150) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138) at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

Member Avatar
Member Avatar
+0 forum 2

I want to run a java application which calls a web service. Everything works fine from the netbeans ide, but fails when I run the .jar generated. What could be the problem? How can I check the content type that the error is pointing at? The error says: **SEVERE: SAAJ0537: Invalid Content-Type. Could be an error message instead of a SOAP message** EDIT I am realizing that the problem could be originated by the fact that the web service that Im consuming uses a custom data type, but I have no idea where to look. Please help

Member Avatar
Member Avatar
+0 forum 6

why i can't use iostream why >

Member Avatar
Member Avatar
+0 forum 4

I'm working on a Database assigment but I'm kind of stuck. It seems to be the Double value that's causing the issue because when I use the Varchar data type I can create my table. Is there any way I can use Double without using Varchar. Any help is much appreciated :) CREATE TABLE MOVIE_INFO ( MOVIE_ID INT not null primary key GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1), MOVIE_TITLE VARCHAR(30) NOT NULL,. ACTORS VARCHAR(40) NOT NULL, CATAGORY VARCHAR(25) NOT NULL, RELEASE_YEAR INT NOT NULL, LANGUAGE_ VARCHAR (30) NOT NULL, LENGTH_ VARCHAR (15) NOT NULL, SPECIAL_FEATURES VARCHAR …

Member Avatar
Member Avatar
+0 forum 2

1. A company wants to transmit data over the telephone. All of the data are transmitted as four-digit integers. The company has asked you to write a program that encrypts the data so that it can be transmitted more securely. Your program should read a four-digit integer and encrypt it as follows: Replace each digit by (the sum of that digit plus 7) modulus 10. Sample run: Enter a 4-digit number to encrypt: 5278 The encrypted number is: 2945

Member Avatar
Member Avatar
+0 forum 2

Is it possible to call repaint() inside the main()?I have tried the code below.But its not working public mypanel() { initComponents(); repaint(100,150,40,40); } protected void paintComponent(final Graphics g) { final Graphics2D g2 = (Graphics2D)jLabel2.getGraphics(); g2.drawRect(100,150,40,40); } //above code doesnt provide any output private void formMouseClicked(java.awt.event.MouseEvent evt) { repaint(100,150,40,40) } this code draws the rectangle.But I want to draw it when the program execution starts.Please help to solve this(rect angle drawn on an image placed in jLabel).

Member Avatar
Member Avatar
+0 forum 1

Hi, I am implement a plugin project in eclipse in java language. I have a parse which is in s simple txt file. Below is the txt for the parser. id=app1 [String] #type=app [String] mainView=top name=First App [String] children: size=1 === child[0] === class=View id=top [String] #type=View [String] #line=8 [Integer] #info= name=View [String] parent=app1 #pos=0 [String] children: size=4 === child[0.0] === class=Widget id=l1 [String] #type=Label [String] text=Hello [String] #line=9 [Integer] #info= name=Label [String] parent=top #pos=0.0 [String] === child[0.1] === class=Widget id=b1 [String] #type=Button [String] text=Press [String] #line=10 [Integer] #info= name=Button [String] parent=top #pos=0.1 [String] im trying to implement the code …

Member Avatar
+0 forum 0

Hi I just started learning on making gui on Java. I watched some youtube videos and i realise one of the them uses DefaultTableModel. At first i thought it was to allow access to the function of the table but i realise i can directly write and get value from the table itself by directly calling the table name. Need someone to explain what is the point or benefits of using DefaultTableModel? Thanks Cleve

Member Avatar
Member Avatar
+0 forum 2

Hello, so I am trying to get a Netbeans application on the web, specifically in this location here: http://hellojar.elementfx.com/FunGame/index.html As you can see it loads, but then crashes as it cannot find "main". (my attempt at trying to find the right run location of my Main) Here is my HTML index code, <html> <head> <title>supply a title</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width"> <script src="//www.java.com/js/deployJava.js"></script> </head> <body> <script> var attributes = {codebase: 'http://hellojar.elementfx.com/FunGame/', code: 'main', archive: 'FunGame.jar', width: '960', height: '560'}; var parameters = {java_arguments: '-Xmx256m'}; // customize per your needs var version = '1.6'; // JDK version deployJava.runApplet(attributes, parameters, version); …

Member Avatar
+0 forum 0

I have a c++ file in xcode that I want to import to netbeans the problem is the c++ file is lacking some files which netbeans requires in order to open that up in netbeans(e.g makefile) How do I do that?

Member Avatar
Member Avatar
+0 forum 1

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 jframe doesn't pop up. Help Need Happy Holidays

Member Avatar
Member Avatar
+0 forum 2

Hello Guys , I am new to NetBeans , any idea what is the meaning of these icons ? Thanks

Member Avatar
Member Avatar
+0 forum 2

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
Member Avatar
+0 forum 5

i have downloaded a number of web page templates and i want to use one or more of them in netbeans. ho do i go about this. do i have to replace the already existing index.html file in my project with the one i downloaded, or where do i copy/import the files of the templates so that i can edit them in netbeans.

Member Avatar
Member Avatar
+0 forum 1

I just created an empty HTML5 project and could not run it through the new Chrome netbeans Connector feature. I have added the netbeans connector extension to my chrome browser, but I keep getting this warning "Could not access Url through external browser. Check browser configuration." I have the latest netbeans version 7.3 and jdk 7u17. Chrome browser Version 25.0.1364.172 m. Anyone with some suggestions?

Member Avatar
Member Avatar
+0 forum 5

My version of Netbeans 7.3.1 freezes at startup. I've already deleted the cache to no avail. Cannot say I can make a lot of sense of what I read on Google. Should I use another ide?

Member Avatar
Member Avatar
+0 forum 1

Hi.. I want to seek help about database in SQL and Jtable in Netbeans. In our sales inventory system, we have these tables in database namely 'stockmasterlist' and 'pricemasterlist'. They are relational since they have in common with regards to their 'ProductNumber'. Now, since they are of different tables but relational, **I wanted to display both of their values in ONE JTABLE in Netbeans. So that, everytime the owner wants to see every detail of his product(Not only the name and description but as well the price, quantity, etc), he could just directly see it in one JTABLe.** Please, Please …

Member Avatar
Member Avatar
+0 forum 1

01. I'm working on a school java project using Netbeans IDE. 02. I need to display IReport in a JPanel Placed inside a JFrame with a button Click. 03. To Create the IReport I used ReportView Class downloaded from the Internet & in the button click Event I have following code. HashMap para = new HashMap(); para.put("id", pt); // Passing Paramter to the Report ReportView rv = new ReportView("PATH OF THE .JASPER",para); // using ReportView Class java.awt.Container cont = rv.getContentPane(); JPanel1.add(cont); -- Problem is it displays nothing. but, when parameter is supplied wrong it shows 'The Document has no pages' …

Member Avatar
Member Avatar
+0 forum 1

I'm suffering from a complete brainfreeze here; maybe some NetBeans user can un-block me without making me look like a complete idiot? Thanks. I usually use Eclipse, but for this particular project it has to be NetBeans. I have two projects defined. One is the main project with packages - let's call them A.B and C. The second project is a rag-bag of useful classes and utilities in a package ("X") that the main project uses. In Eclipse I just make project 2 a required project for project 1 and it works. In particular when I build the main project …

Member Avatar
Member Avatar
+0 forum 2

Hi there, I'm just starting with Java and Desktop programming but I have some doubts, for example: You are going to write a new application, you go there, draw your ER for your database, UML, etc. My problems is when I need to integrate the interface with the program logic, for example, in netbeans I can create a new frame using the palette but I can't find a way to fill that frame without having to put something inside the frame class, I would like something more generic. Sorry if I coundn't explain it in a clean way, if so, …

Member Avatar
Member Avatar
+0 forum 2

Just wondering how do i get all the nessecary files for my project on netbeans because, when i use the add existing item, i tend to forget where i got it from and have trouble organizing it. Is there a way to find where the file is located at?

Member Avatar
Member Avatar
+0 forum 2

The End.