Skip to content
View in the app

A better way to browse. Learn more.

The Armory

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Another call to all Java programmers

Featured Replies

Ok, I need to play sounds in a console app, ie one that runs in a "DOS" window. Eventually ill convert it to GUI but for right now I need to use the console.What I did is I created the following class:import java.awt.*;import java.applet.*;import javax.swing.*;public class AudioTest extends JApplet { AudioClip test= getAudioClip(getCodeBase(), "com_go.wav"); public void run() { test.play(); }It compiled fine, and im pretty sure the syntax is cool. Than, i created the following main program to test it:public class Main { public static void main(String[] args) { AudioTest test = new AudioTest(); test.run(); } }I get cannot resolve symbol errors for the AudioTest instantiation. The proper files are compiled and in the same folder so I know that isnt the problem. Does it have anything to do with the fact that the class uses elements of an applet without ever actually creating one? The AudioClip methods and constructors are all part of the applet package. Please help }
  • Author
curse you, you got my hopes all high in with the promise of help, but no! it turns out to be spam, grrrr :D j/k

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.