Questions tagged [japplet]

JApplet is a class from Swing library in the Java programming language. Applets can be embedded in webpages and run client-side if a JVM is provided.

JApplet is a class from Swing library in the Java programming language. It's a successor to AWT's Applet class. Applets can be embedded in webpages and run client-side if a JVM is provided.

The use of applets is usually discouraged and has not been widely adopted. The implementation of applet-based applications is a common academic exercise seen as an easy way to become familiar with Java UI libraries.

JApplet Javadoc

733 questions
72
votes
2 answers

Django add extra field to a ModelForm generated from a Model

I have to generate a FormSet from a model but I need to insert an "extra value" in to every form. Specifically, I have a JApplet that generates some Markers and Paths on a image, and POST it on the server. In my model lines are composed from two…
Marco Fedele
  • 2,090
  • 2
  • 25
  • 45
47
votes
3 answers

Difference between JPanel, JFrame, JComponent, and JApplet

I'm making a physics simulator for fun and I was looking up graphics tutorials when I tried to figure out the difference between all these J's. Can somebody elaborate on them or perhaps provide a link to a helpful source?
Andyroo
  • 471
  • 1
  • 5
  • 3
13
votes
3 answers

Communicate with the serial port from client web browser.

In my web application(sencha extjs 5) I have a user requirement to read/write data to the client PC serial port. I am aware of the client browser can not access local machine hardware without installing some binaries on the local machine(Native…
user2256857
  • 179
  • 1
  • 2
  • 9
10
votes
2 answers

How to set Http Proxy in an applet

For a java desktop application after we set these properties System.setProperty("java.net.useSystemProxies","true"); System.setProperty("http.proxyHost", "1.1.1.1"); System.setProperty("http.proxyPort", "8080"); every http connection will be done…
e13420xx
  • 718
  • 1
  • 8
  • 26
10
votes
3 answers

JList Right-click shows menu (Use, drop, cancel)

I've been scouring the internet for this answer. I have a simple JList with items inside it. When I right-click, I want a menu to pop-up that says "Use, drop, cancel" or something of that nature. HOWEVER, I'm stumped. The code below will produce a…
test
  • 17,706
  • 64
  • 171
  • 244
10
votes
2 answers

how do i divide JPanel in 70% 30%

Possible Duplicate: Swing: How do I set a component height to the container's height? how do i divide JPanel like the picture shown below there are 2 panels panel1 and panel2 panel1 should take 70% and panel2 30% or panel1 should be bigger than…
madhur
  • 357
  • 2
  • 6
  • 17
7
votes
1 answer

MouseDragged & MouseMoved not working in Java Applet

I'm currently working on a map generation program for a game I'm creating, and so I'm trying to be able to modify the individual tiles on the map using my mouse. I've successfully implemented the ability to click on a tile and change its value (from…
Vasu
  • 1,090
  • 3
  • 18
  • 35
7
votes
1 answer

Java applet not working in Azure

I built a simple Java applet which works perfectly locally. When I Upload my website to Azure (as a Cloud Service), it shows a gray box. I tried Win XP, Win 7, JRE 6, JRE 7 and different browsers. Java console does not show any message. Any idea of…
J punto Marcos
  • 437
  • 1
  • 6
  • 24
6
votes
1 answer

Embedding Java JApplet in HTML page when using Sockets

I am having trouble with getting and applet to work on an HTML page. When I remove the socket connection from the applet class and test the applet on an HTML page the applet displays but when I add the socket connection back in the class file the…
redoc01
  • 2,107
  • 5
  • 32
  • 64
6
votes
2 answers

Embed a 3rd-party JApplet in a Swing GUI & pass it parameters

There's a third-party applet that I'd like to embed in my Swing application. Basically, I'd like it to be just another panel. This applet makes use of many parameters, e.g. final String config_filename = getParameter(XXX); I've seen lots of…
kc2001
  • 5,008
  • 4
  • 51
  • 92
6
votes
1 answer

Change the JSlider look and feel

I have gone through this website Change look and feel of JSlider but except for Slider.altTrackColor nothing else is working. I want to do something like shown in pic1 any suggestion would be of great help. I'm working on JDK 1.6. UIDefaults…
madhur
  • 357
  • 2
  • 6
  • 17
5
votes
1 answer

Adding JApplet into JFrame

I am trying to view a JApplet within a JFrame. Class: Paint public void paint(Graphics g) { g.drawString("hi", 50, 50); } public static void main(String args[]) { JFrame frame = new JFrame("test"); …
LanguagesNamedAfterCofee
  • 5,782
  • 7
  • 45
  • 72
5
votes
4 answers

using repaint() method with actionPerformed

How to use the repaint() method when a button is pressed and Graphics p has to re-paint everything from scratch? Thanks. import javax.swing.Box; import javax.swing.JButton; import javax.swing.JTextField; import java.awt.*; import…
MBC870
  • 373
  • 3
  • 8
  • 16
5
votes
4 answers

Convert JTextField input into an Integer

I am new to JAVA, I am trying to convert an input from a JTextField into an integer, I have tried loads of options but nothing is working, the eclipse is always giving me an error and the errors are not making sense to me. import java.awt.Graphics; …
MBC870
  • 373
  • 3
  • 8
  • 16
5
votes
3 answers

Java applet blinking on Mac

This problem is very weird. The issue does not occur on every platform. It occurs for me in Google Chrome, using MacOSX, but it doesn't occur in Safari. For a friend that uses Windows, on Google Chrome it works perfectly. I also have a friend that…
Rez
  • 615
  • 1
  • 6
  • 9
1
2 3
48 49