Help - Why don't swing applet print, like awt applets do?

I am using JTable in a applet, but I would like to be able to print the applet using microsoft explorer. I had written a bulkier version of the same applet using an array of TextFields to establish a Table effecte. The code is bulking and loads slow in the browser. JTables work better but the applet shows up all black when I try and print it. What do I do to fix the problem? Do I have to use TextField if I want to print it? Any suggestions would be helpfull.

While waiting I dug deeper into the bugged section of code and found that:
divider.setBounds(0,62,600,2);
was the problem, and that:
divider.setBounds(0,62,600,4);
works.
Don't ask me why I couldn't tell you, but IE 6 doesn't like the heigth to be less than 4. If it is the entire applet prints out black.

Similar Messages

  • Why don't WMV files Act like MPG files?

    I use a mid 2012 Mac Pro; run OS X 10.9 Mavericks.  When I was using OS X 10.5.8 Leopard the icons on my WMV files were flipped to show a picture of the video; just like all my MPG files.  Why doesn't Mavericks do that?  And is there a way I can flip the icons on my WMV files to show a picture again?

    How do I convert a file to a QL/QT X v10.3 compatible file?
    1) This depends on the software you have installed on your system. Basically you need to either have one of the purchase Flip4Mac products installed on your system or a conversion app that has built-in codec support and the source file will have to be unprotected. I have Telestream's Flip4Mac Studio (includes basic import and ecport codecs) so I can use QT 7 Pro, MPEG Streamclip, QT X v10.3, the Mavericks Finder level AV Convert software, or the free Flip Player to perform these conversions. If you don't have a paid Flip4Mac codec installed for use with apps that access you system QT codec components configuration, then you could try a free app like HandBreake or on of the commercial converters available for the Mac.
    2) If you already have the Player Pro (or greater) codec package installed on your system, then you can simply open your unencrypted WMV file in the QT X v10.3 player and it will automatically be converted to an H.264/AAC MOV file.
    3) If you already have the Player Pro (or greater) codec package installed on your system, then you can simply select one or more WMV file icons in the Finder that you want to convert and then select the Context Adaptive menu (Control-Click menu) and select the "Servoices > Encode Selected Video Files" option. This option will open a widow allowing you select a few conversion options like "High/Low" quality settings for targerted H.264/AAC display settings or the selection of the Apple ProRes 422/PCM codec best used as an inermediate codec if you plan to edit the converted file in a video editor at a later time.
    4) If you already have the Player Pro (or greater) codec package installed on your system, then you can simply open your unencrypted WMV file in the free Flip Player and export your file(s) to app or device targeted presets.
    5) If you already have the Player Pro (or greater) codec package installed on your system, then you can simply open your unencrypted WMV file in the either QT 7 Pro v7.6.6 player or free MPEG Streamclip app (if installed) for export to device targeted M4V, "Movie to MPEG-4" MP4, or compatible "Movie to QuickTime" MOV files (e.g., H.264/AAC, MJPEG/PCM, etc. compression format files.
    6) If you don't have a WMV support codec package installed on your system, then you can try opening the file in the Free HandBrake app and us it to convert to one of available Apple compatible presets or create a custom preset of your own. (Note: I have only used this with common WMV downloaded files like WMA 9 audio with WMV 8 video in the WMV container.)
    7) If you already have a commercial converter with WMV support built into the application installed on your system then you can use it to perform a conversion of your WMV files.
    How do I create an icon manually?
    1) Basically you select a compatible image file of a compatible size and shape and drop it to the "Info" window (Finder "Command-I" shortcut) icon area. I would normally recommend a JPEG image of VGA-like dimensions and in the shape you prefer. For instance, you can export/capture a frame from your movie and convert it to a JPEG image having the same aspect as your video with a 640 pixel width at 72dpi, create a 640x640 JPEG image if you prefer a more "record" album-like icon, create aposter or DVD case-like JPEG image if desired, or anything in betweem. Just be aware that if the images are too large in an incompatible format, they will be rejected when you try to drag 'n drop them to the info window. (I.e., it would be ridiculous to try and use an 8-, 10-, or 12-megapixel image as your icon.)
    2) Where compatible, you can also assign a custom designed metadata "poster-frame" wich I believ is still used by the finder as an icon image. (Don't quote me on this yet as I have not confirmed it yet under Mavericks as it is taking som much time to just run down what is and is not still working video-wise un this new system.)

  • Why don' t certain pages print from ipod Touch User Guide - Oct 2013 release

    I downloaded the User Guide for ipod Touch - October 2013 release and certain pages do not print -- Page 13, Page 33, Page 34 -- just get blacked out boxes, The other pages (total manual about 135) all printed fine. I've tried printing the pages alone and same thing happens.

    What app did you use to print them
    Do they view OK on the computer?
    I would try redownloading the printing those pages. Maybe they got corrupted.

  • Why don't java applets run when using Firefox 4.0 in a windows limited user account?

    Java applications will not run in Firefox 4.0 when the windows user/process only has limited user access rights. The systems, I see this behaviour on have Windows XP Pro SP3, Firefox 4.0 and JRE 1.6.0_24 installed. The java application will run when when full administrative rights are present. This issue did not occur with the 3.6 firefox version that was previously installed.

    The problem also exists with the newer Firefox 4.0.1 and Java 1.6.0_25 versions.
    Enabling administrative rights resolves the issue ... though this defeats the purpose of using a limited user.
    The underlying bug appears to be in the Firefox java plugin detection code. The issue is related to the detection code requiring write access to the HKLM\SOFTWARE\mozilla.org windows registry key. The limited user only has read access for this registry key. The behaviour was identified using the Sysinternals ProcessMonitor utility ... showed firefox calling an interface to create the registry key and getting an access denied response in the limited user case.
    A more targeted workaround for the issue is to grant the limited user write access on the HKLM\SOFTWARE\mozilla.org windows registry key. This avoids the need to grant administrative rights to the user and enables the java plugin to be detected. That is, it works on the 2 XP systems where the java plugin wasn't being detected in limited user accounts.

  • Why don't Apple support Skype?

    Why don't Apple support Skype like they supports twitter and soon Facebook

    Because Skype support Skype, they wrote/own it not Apple.
    If you are having problems with Skype on your iPod Touch look on thier support forums to see if there's a fix or someone who can help you there.
    If your question is why you can't use FaceTime to contact a Skype contact you can't but, have you searched the App Store for Skype and downloaded the App, it works like a dream.
    Cheers
    AF

  • HELP!!! Begginer working with a Swing Applet. DON'T KNOW HOW TO DRAW LINE

    Hi! I've been trying to draw a line in an applet and I can't. The thing is I'm using the tutorial to create the applet, so it comes with the standart methos and the standalone. I'm not sure if the problem is becausse I need to include in it a paint method or something.
    What I'm trying to do is to connect the to blocks (they really are jButtons), with an arrow. Thanks!!!!!!!!!
    Here's my code so far...// Copyright (c) 2000
    package package14;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import oracle.jdeveloper.layout.*;
    * Applet
    * <P>
    * @author Ana M Yanes Benatuil
    public class Appletboxes extends JApplet {
    boolean isStandalone = false;
    XYLayout xYLayout1 = new XYLayout();
    JButton jButton1 = new JButton();
    JButton jButton2 = new JButton();
    * Constructs a new instance.
    * getParameter
    * @param key
    * @param def
    * @return java.lang.String
    public String getParameter(String key, String def) {
    if (isStandalone) {
    return System.getProperty(key, def);
    if (getParameter(key) != null) {
    return getParameter(key);
    return def;
    public Appletboxes() {
    * Initializes the state of this instance.
    * init
    public void init() {
    try {
    jbInit();
    catch (Exception e) {
    e.printStackTrace();
    private void jbInit() throws Exception {
    this.getContentPane().setLayout(xYLayout1);
    this.setSize(new Dimension(836, 545));
    jButton1.setText("jButton1");
    jButton2.setText("jButton2");
    jButton2.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
    public void mouseDragged(MouseEvent e) {
    jButton2_mouseDragged(e);
    jButton1.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
    public void mouseDragged(MouseEvent e) {
    jButton1_mouseDragged(e);
    this.getContentPane().add(jButton1, new XYConstraints(137, 120, 96, 45));
    this.getContentPane().add(jButton2, new XYConstraints(452, 118, 96, 49));
    * start
    public void start() {
    * stop
    public void stop() {
    * destroy
    public void destroy() {
    * getAppletInfo
    * @return java.lang.String
    public String getAppletInfo() {
    return "Applet Information";
    * getParameterInfo
    * @return java.lang.String[][]
    public String[][] getParameterInfo() {
    return null;
    * main
    * @param args
    public static void main(String[] args) {
    Appletboxes applet = new Appletboxes();
    applet.isStandalone = true;
    JFrame frame = new JFrame();
    frame.setTitle("Applet Frame");
    frame.getContentPane().add(applet, BorderLayout.CENTER);
    applet.init();
    applet.start();
    frame.setSize(400, 420);
    Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
    frame.setLocation((d.width - frame.getSize().width) / 2, (d.height - frame.getSize().height) / 2);
    frame.setVisible(true);
    frame.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { System.exit(0); } });
    static {
    try {
    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    catch(Exception e) {
    e.printStackTrace();
    void jButton1_mouseDragged(MouseEvent e) {
    jButton1.setLocation(e.getX() + jButton1.getX() , e.getY() + jButton1.getY());
    void jButton2_mouseDragged(MouseEvent e) {
    jButton2.setLocation(e.getX() + jButton2.getX() , e.getY() + jButton2.getY());

    The other thing is that the boxes can be dragged and dropped, so the lines would have to be moved too (if they're related to the moved blocks)

  • My swing applets dont work in IE!!! Anyone can help?

    Hi to everyone, I`ve read a lot about this subject this last week,
    but I don`t seem able to solve my problems, that are kind of a mistery,
    and any help will be wonderful.
    I`ve developped some swing applets with KAWAPro v 4.01. I had no problems running them on the appletviewer, but when I tried to do it on the IE6 I found that it didn`t work at all. The message from the window
    help dialog was "class Myclass not found", and when I opened the Java console I found the message that follows:
    java.lang.ClassNotFoundException: javax.swing.JApplet
    at com/ms/vm/loader/URLClassLoader.loadClass
    at java/lang/ClassLoader.loadClassInternal
    at java/lang/ClassLoader.resolveClass
    at com/ms/vm/loader/URLClassLoader.loadClass
    at com/ms/vm/loader/URLClassLoader.loadClass
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.run
    at java/lang/Thread.run
    And this happens with any applet I want to run locally, even with those I`ve downloaded from the sun site. But I can see perfectly any swing applet remotly when I access to the sun www pages.
    I tried including ARCHIVE = "rt.jar" in the HTML code, with rt.jar the jar file that includes the javax.swing.JApplet class. Then things changed, and the message I get from the Java console is:
    warning: running 1.2 version of SwingUtilities
    java.lang.InstantiationException: MyClass
    at com/ms/applet/BrowserAppletFrame.newInstance
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.run
    at java/lang/Thread.run
    That doesn`t seem to mean anything to me. I`ve tried something with CAB files, but anything works. I also have the Java Plug in installed.
    I`ve tried to run my applets locally in other computers and I found not problem, so I`m kind of puzzled, and I`ve no idea what`s happening.
    I`d be thankful if anyone could help me.
    Regards: Tony

    it sounds like you don't have the swing classes on the classpath - I don't really understand how this would happen (unless you have a pre-131 environment)
    Try downloading the JRE again?

  • Swing applet- please help

    Hi,
    I am still trying to make sense of the java code...
    I thought it should be easy to create an applet, but I don't know what is wrong.
    Could anyone help me debugging it?
    Here is the code and the error msg:
    package BrImage;
    /* Example 16-3 An Image Previewer Accessory implements BrImagFile*/
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.beans.*;
    import java.io.*;
    import java.applet.Applet;
    public class BrImage extends JApplet {
    public void init() {
    getContentPane().add(new JLabel("JAppletSwing!"));
    public class BrImagFile extends javax.swing.JFrame {
    JFileChooser chooser = new JFileChooser();
    ImagePreviewer previewer = new ImagePreviewer();
    PreviewPanel previewPanel = new PreviewPanel();
    class PreviewPanel extends javax.swing.JPanel {
    public PreviewPanel() {
    JLabel label = new JLabel("Image Previewer",SwingConstants.CENTER);
    setPreferredSize(new Dimension(150,0));
    setBorder(BorderFactory.createEtchedBorder());
    setLayout(new BorderLayout());
    label.setBorder(BorderFactory.createEtchedBorder());
    add(label, BorderLayout.NORTH);
    add(previewer, BorderLayout.CENTER);
    public BrImagFile() {
    super("Image Previewer");
    Container contentPane = getContentPane();
    JButton button = new JButton("Select A File");
    contentPane.setLayout(new FlowLayout());
    contentPane.add(button);
    chooser.setAccessory(previewPanel);
    button.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    int state = chooser.showOpenDialog(null);
    File file = chooser.getSelectedFile();
    String s = "CANCELED";
    if(file != null && state == JFileChooser.APPROVE_OPTION) {
    s = "File Selected: " + file.getPath();
    /* needs to open file on the right html */
    JOptionPane.showMessageDialog(null, s);
    chooser.setFileFilter(new ImageFilter()); /*test filter */
    chooser.addPropertyChangeListener(
    new PropertyChangeListener() {
    public void propertyChange(PropertyChangeEvent e) {
    if(e.getPropertyName().equals(
    JFileChooser.SELECTED_FILE_CHANGED_PROPERTY)) {
    File f = (File)e.getNewValue();
    String s = f.getPath(), suffix = null;
    int i = s.lastIndexOf('.');
    if(i > 0 && i < s.length() - 1)
    suffix = s.substring(i+1).toLowerCase();
    if(suffix.equals("gif") ||
    suffix.equals("jpg") ||
    suffix.equals("bmp"))
    previewer.configure(f);
    class ImagePreviewer extends javax.swing.JLabel {
    public void configure(File f) {
    Dimension size = getSize();
    Insets insets = getInsets();
    ImageIcon icon = new ImageIcon(f.getPath());
    setIcon(new ImageIcon(icon.getImage().getScaledInstance(
    size.width - insets.left - insets.right,
    size.height - insets.top - insets.bottom,
    Image.SCALE_SMOOTH)));
    class ImageFilter extends javax.swing.filechooser.FileFilter {
    public boolean accept(File f) {
    boolean accept = f.isDirectory();
    if( ! accept) {
    String suffix = getSuffix(f);
    if(suffix != null)
    accept = suffix.equals("jpg") ||
    suffix.equals("gif") ||
    suffix.equals("bmp");
    return accept;
    public String getDescription() {
    return "Image Files(*.gif *.jpg *.bmp)";
    private String getSuffix(File f) {
    String s = f.getPath(), suffix = null;
    int i = s.lastIndexOf('.');
    if(i > 0 && i < s.length() - 1)
    suffix = s.substring(i+1).toLowerCase();
    return suffix;
    public static void main(String a[]) {
    JApplet applet = new BrImage();
    JFrame f = new BrImagFile();
    f.setBounds(300, 300, 300, 75);
    applet.init();
    applet.start();
    f.setVisible(true);
    /* f.setDefaultCloseOperation(
    WindowConstants.DISPOSE_ON_CLOSE); */
    f.addWindowListener(new WindowAdapter() {
    public void windowClosed(WindowEvent e) {
    System.exit(0);
    BrImage/BrImage.java [109:1] non-static variable this cannot be referenced from a static context
    JFrame f = new BrImagFile();
    ^
    1 error
    Errors compiling BrImage.

    Hi again,
    Please help.
    JL

  • I have a HP Officejet Pro 8500 A909a connected to a Time capsule. My iPad 2 don't recognise the printer. Why?

    I have a HP Officejet Pro 8500 A909a connected to a Time capsule. My iPad 2 don't recognise the printer. Why?

    The pad will print to any airprint compatible printer.  Hp makes several, but i do not see yous on the list.
    Here is the list
    http://support.apple.com/kb/HT4356
    You can download the hp eprint app from the app store and see if that works for you.

  • HT204291 Why don't I see the airplay icon in my settings? I have the ios7 installed now my netflix won't work as need to turn off mirroring..... And the airplay device is not installed.... Anyone help on this?.

    Why don't I see the airplay icon in my settings? I have the ios7 installed now my netflix won't work as need to turn off mirroring..... And the airplay device is not installed.... Anyone help on this?.

    Reboot your router. The icon only shows when connected to wifi and Apple TV or similar device. Same thing happened with my phone and the icon appeared in control center after router reboot.

  • What is restoring and why do i 'have' to restore to connect to iTunes and can I really get all my stuff back because I have a homework essay saved on my notepad and all my apps and music. Help I don't know what to do!

    What is restoring and why do i 'have' to restore to connect to iTunes and can I really get all my stuff back because I have a homework essay saved on my notepad and all my apps and music. Help I don't know what to do!

    Unless this program will get the iPod out of recovery mode
    RecBoot: Easy Way to Put iPhone into Recovery Mode
    You will have to restore and thus erase the iPod. If you stuff is in a backup y can restore from backup. Otherwise it is lost.

  • Why don't match the values of printer ports, obtained through WMI in different ways?

    Why don't match the values of printer ports, obtained through WMI in different ways?
    $Ports = Get-WmiObject Win32_TcpIpPrinterPort -namespace "root\CIMV2" -ComputerName $ComputerName
    $Printers = Get-WmiObject Win32_Printer -namespace "root\CIMV2" -ComputerName $ComputerName
    Further, for example, on the same computer $Ports.Name returns me: (10.0.66.204 10.0.66.210 10.0.66.246 10.0.66.247)
    and $Printers.PortName (XPSPort: USB001 10.0.66.247 HPLaserJet400MFPM425dn 10.0.66.246 SHRFAX :) I.e. the values don't match to each other although they logically should be the same. Why so?
    In the end I need to get a binding the printer - the value (not the name) of the port. In Win32_Printer there is no such parameter, and there is no information about the printer in Win32_TcpIpPrinterPort. I wanted to connect them through port name but they
    don't match.

    Very unclear.
    Win32_Printer returns the bound port name.
    Get-WmiObject win32_tcpipprinterport -filter "Name='192.168.1.100_2'"
    ¯\_(ツ)_/¯

  • Hi, dear Sirs! I'd like to suggest this: as I installed 4 Airport Extreme Units in my apartment connected to Powered loudspeakers, why don't give the choice to send streaming data to all the units so I can hear music trough each unit? Thank you, V M

    Hi, dear Sirs!
    I'd like to suggest this: as I installed in my apartment  N° 4 Airport Extreme Units each one connected to Powered loudspeakers, why don't give the choice to send streaming data to all the units so it is possible to hear music trough each unit?
    Thank you,
    Valerio Maioli

    Dear tzbikowski
    really many thanks for your prompt and right reply.
    I didn't know it, but I found in iTunes popup, not only you can adjust the volume of each unit too!
    But, I have another question, sorry:
    This facility is on Safari Mountain Lion SW, but is it on iOS 6.01 or 5.1.1 as in my iPad ?
    Valerio

  • Why don't U pay attention to your adds on, like Provider for Google Calendar during your updates? It's not working all the time after your updates. Very annoyin

    I do not want to find a way every time and spend hours to connect THunderbird to Google calendar every new release. Why don't U solve this problem finally? Not everyone has special computer skills to find good APi or installation info, and many bullshits.
    Pls, do something that finally solve our problem.
    We like Thunderbird, but need to use Google calendar - to connect events to mobile phones- as thunderbird do not have this opportunity. So solve pls, or create a program that allow us to use normal calendar that we able to synch with our mobile phones.
    Thank you.

    '''"... it is a contentious subject since FF 4.0 and gets worse as time goes on."'''
    How about viewing that as '''''contiguous'''''? Like contiguous events.
    The developers moved the 'Reload current page' to the right-side of the Location Bar in Firefox 4, but allowed each user to move it where they wanted it via the Customize feature. Now with another major UI re-do in Firefox 29, that button can't be moved as easily, continuing what they started with Firefox 4.
    '''"Be sensible - let the user decide."'''
    Make the decision to install an add-on to change what you don't like, or as an IT professional use your talents to code your own changes either in the core code or via the 3 "user" files.
    ''Even Burger King dropped the "have it your way" concept.''

  • Why don't new events created by importing go to the end of events (become the last event) like with previous version of iPhoto?

    Why don't new events created by importing go to the end of events (become the last event) like with previous version of iPhoto?

    View Menu -> Sort Events.

Maybe you are looking for