For a project I have to create an online survey, I cannot use a per-made online survey system because I have really specific needs that no pre-made system can satisfy, so my idea would be to create it in java and store the data in some simple text file, which are fairly easy to work with in java. My question is, is it possible, and if yes how difficult is it, to put the entire thing online? What worries me isn't putting the applet itself online, but the text files that should collect the data, I already have the website to host it.
I know I have a 64 bit OS, my computer, will simply not download the 64 bit version of java when I hit the big ol' red button on the main page. and yes, I have gone to the downloads page and downloaded the one that's 64 bit, but whenever I try to play games, it simply won't let me go online. I have tried uninstalling and reinstalling, but nothing seems to work.
Running a java source code through an online java compiler (in which you will just pass the the source code using a http request, then the compiler will return the output/error of the source code automatically)?.
I need to make an java app which will be used only for online banking transaction with credit/debit card ...so i need to know the basic procedures for costumer to come and do the transaction
I'm making a website with articles (like a blog). I have a webpage called admin.html where you insert the data of the article (title, post etc).
Admin.html calls to a servlet and this sends the information to a SQL Database and it stores and my index.jsp calls to database and show the articles.
This works perfect, and a non-programmer can insert new articles. The problem is that I need to create an .html file for every article/post and save it into my server online.
For example if I create "CoolArticle", I need the file "CoolArticle.html" and save it in my hosting.
How I can do it? I never have seen examples online, all were local, so I can't continue.
I am doing a project "online election system" client-server base application.
I have a party registration class in my program. and I have a party registration form in which I want to upload a image(Poll Symbol) for newly register party. but I don't know how to do this.?
I'm using jdk7 and I get this error when I compile Exception in thread "main" java.lang.Error: Unresolved compilation problem: at First.main(First.java:16)
I am trying to pass parameters from he following HTML file to an applet. the applet is not initializing and the iam getting the following error on the console. I also have both the html file and and the java applet under the same source file in eclipse.
java.lang.NumberFormatException: null at java.lang.Integer.parseInt(Integer.java:542) at java.lang.Integer.parseInt(Integer.java:615) at applet.DisplayMessage.init(DisplayMessage.java:16) at sun.applet.AppletPanel.run(AppletPanel.java:434) at java.lang.Thread.run(Thread.java:745)
Here is the html file
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Insert title here</title>
I like to know how to write root function in java applet. I know it in java function. Ex:
import java.lang.*; public class Maths { public static void main(String[] args) { // get two double numbers numbers double x = 9; double y = 25; // print the square root of these doubles System.out.println("Math.sqrt(" + x + ")=" + Math.sqrt(x)); System.out.println("Math.sqrt(" + y + ")=" + Math.sqrt(y)); } }
working fine. but If I tried in applet it's not working. Ex:
I have an applet coded to recieve an image and upon mouse press i wish it to be cropped. For some reason its not implementing, I just think my brain is no longer doing what i think it should be or something, along those lines.
I am trying to go about making this applet a bit different then normal. The issue I am having is it is drawing an applet but, not the right dimensions, it's able to be resized, lastly the background color is not being set. I mean, I suppose I could call paint() and just draw it out but, I read that I could make the applet pop out to the dimensions I would like. None of this is working sadly.
I have An Issue With My Java Applet. Im Trying To Share My Variables With Another Class, But Its Not Working.
Class 1
package com.Tobysmith10.game.main; import java.applet.Applet; import java.awt.Graphics; public class Game extends Applet{ public void init(){ setSize(850,480); public void paint(Graphics g){ g.fillOval(x,y,20,20); } }
Class 2
package com.Tobysmith10.game.main; import java.applet.Applet; public class gameLoop extends Applet implements Runnable{ public int x, y; public void run(){ while(true){ x = 100; y = 100; } } }
So im sharing the x and y variables with the Class 1 , but I get yellow lines under it and when i run the program, it crashes, how do I get class 1 to recognize the variables from class 2 ?
Working on an assignment for a class: Create a DESKTOP application that allows you to open an image file and enables you to zoom in on or out from an image. I believe all I need is too create an open button to open the actual image file, instead of the html link, this code is an example that the teacher provided.My current code:
I've been using a Java applet for sports tables.It has been very useful for me. However, the recent developments from the people at Oracle have made this program impossible to use. The point is that I need this program and I need it fast.I've been in touch with the person who once created this applet and he has no intentions at all to upgrade it or do anything to make it function. How to make the program works with their new updates.
My company is a transport company. We receive goods form partner and transport it to customers. There is a process that we must accept a number of kilograms into bill after we weigh goods by the electronic balance(the electronic balance have serial port plug in PC) . To decrease this process, I'm looking for a project "read serial port wrote in java applet". Who have code,
In my card game applet I have to play some music and the user must have the ability to play, stop and pause the song using buttons. I got the play and stop to work easy but I'm unable to add the pause option/method.
Implement an applet that display historical facts. The applet will include facts from october 28 to december 4th to test the applet.
What is the best thing to add text in my GUI - JLabel, JTextArea? I am trying to display different words on my csFacts. Once a user click button yesterday and button tomorrow?
public class Facts extends JFrame implements ActionListener{ private JButton button1,button2; private JPanel panel; private JLabel label; TextField ri = new TextField(50); private void createGUI(){ setDefaultCloseOperation(EXIT_ON_CLOSE);
Nearly all of hte sample Java Applet is pre-made by the teacher. I'm running into the issue where, if I use the string arithmetic inverse method provided by the textbook, it refuses to recognize variables such as s1, s2, and i. So I'm now trying to use stringbuilder, and running into a similar issue. It doesn't recognize hte symbol "buffer". Under the "else if ( e.getSource() == inverseStr ) {" is where my code starts. The "Your Code Here" was put there by the teacher, and I'm just using it as an easy way to create blank lines if I delete a method that isn't working for me in the above section.
import javax.swing. * ; import java.awt. * ; import java.awt.event. * ; public class HW07 extends JApplet { public void init() { setSize( 400, 300 ); add( new MyGUI() );
[code]....
When I launch the applet in TextPad, there will be an Inverse button, and when I click that, it should reverse the word provided in the applet window, and show it in the inverse there. I had the StringBuilder working once, but it showed its result in a separate command prompt.
I am trying to design a generic RPG game. The issue I am having right now is in my Class I have a subroutine (think that is the correct term) that is basically set up to hold a series of Print Statements. I am really just trying to get some Values that are stored within the Applet, have them assigned to their correct variables and then returned in the print statement. Yet, when I run the applet it just pops up the Applet blank and gives me a long list of errors and I really don't understand when they mean.
Here is the code:
The Class
public class CharacterSheet { final String NL = System.getProperty("line.separator"); public String characterName; int playerStr; int playerCha;
[Code] ....
And the error messages:
Exception in thread "AWT-EventQueue-1" java.lang.NullPointerException: String is null at sun.java2d.SunGraphics2D.drawString(Unknown Source) at TFApplet.paint(TFApplet.java:15) at javax.swing.RepaintManager$3.run(Unknown Source) at javax.swing.RepaintManager$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method)
1 - I don't understand why I'm getting an empty stack error when calling the removecard method in my Table class line 13?
2 - I am trying to use a constructor to populate my deck of cards instead of a method when creating my theDeck object in my Table class line 11 but I get the following error:
java.lang.StackOverflowError at java.util.Vector.<init>(Unknown Source) at java.util.Vector.<init>(Unknown Source) at java.util.Stack.<init>(Unknown Source) at Deck.<init>(Deck.java:7) at Deck.<init>(Deck.java:34)
I have written a java applet. Few months before It was working all fine but my client has some other requirements now and I have to edit it. I am getting two problems:
1. I could not execute it on my local computer as it always gives "your security settings have blocked a local application from running". I have edited the settings from Control Panel but it is then started giving permission error on including permission in manifest file it started giving trusted library error and still it is not resolved.
2. Can I know how to work with third party library with applets. I have imported the library and uses its few classes but when I tried to load applet it always give no class definition found error. I have some ways mentioned online like use comma separated names for all the jars but no luck so far.