Package java.awt

Examples of java.awt.AWTError


    private JNodeFrameBufferDevice getDevice() {
        final JNodeFrameBufferDevice device =
            (JNodeFrameBufferDevice) GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
        if (device == null) {
            throw new AWTError("No framebuffer fbDevice found");
        }

        return device;
    }
View Full Code Here


            getAwtContext().adjustDesktopSize(screenSize.width, screenSize.height);
            onResize();
            device.setDefaultConfiguration(this.config);
            return getScreenSize();
        } catch (Exception e) {
            throw (AWTError) new AWTError(e.getMessage()).initCause(e);
        }
    }
View Full Code Here

            synchronized (initCloseLock) {
                graphicsMode = true;
            }
        } catch (DeviceException ex) {
            decRefCount(true);
            throw (AWTError) new AWTError(ex.getMessage()).initCause(ex);
        } catch (UnknownConfigurationException ex) {
            decRefCount(true);
            throw (AWTError) new AWTError(ex.getMessage()).initCause(ex);
        } catch (AlreadyOpenException ex) {
            decRefCount(true);
            throw (AWTError) new AWTError(ex.getMessage()).initCause(ex);
        } catch (Throwable ex) {
            decRefCount(true);
            log.error("Unknown exception", ex);
            throw (AWTError) new AWTError(ex.getMessage()).initCause(ex);
        }
    }
View Full Code Here

                }
                jtb.add(separ, i);
              }
            }
          } catch (final Exception e) {
            throw new AWTError(e.getMessage());
          }
        }
      }
    }
  }
View Full Code Here

                final ClassLoader cl = getClass().getClassLoader();
                final ExtensionPoint appsEP;
                if (cl instanceof PluginClassLoader) {
                    appsEP = ((PluginClassLoader) cl).getDeclaringPluginDescriptor().getExtensionPoint("apps");
                } else {
                    throw new AWTError("Need to be loaded using a plugin classloader");
                }
                Desktop.this.taskBar = new TaskBar(Desktop.this, appsEP);


                final JNodeToolkit tk = JNodeToolkit.getJNodeToolkit();
View Full Code Here

    /**
     * @see java.awt.Container#add(java.awt.Component)
     * @deprecated
     */
    public Component add(Component c) {
        throw new AWTError("Use addApp instead");
    }
View Full Code Here

        final ClassLoader cl = getClass().getClassLoader();
        final ExtensionPoint appsEP;
        if (cl instanceof PluginClassLoader) {
            appsEP = ((PluginClassLoader) cl).getDeclaringPluginDescriptor().getExtensionPoint("apps");
        } else {
            throw new AWTError("Need to be loaded using a plugin classloader");
        }
        this.controlBar = new ControlBar(appsEP);

        final JNodeToolkit tk = JNodeToolkit.getJNodeToolkit();
        final JNodeAwtContext ctx = tk.getAwtContext();
View Full Code Here

                    s = "org.apache.harmony.x.print.awt.PSPrinterJob";
                }
                try {
                    return (PrinterJob) Class.forName(s).newInstance();
                } catch (ClassNotFoundException cnfe) {
                    throw new AWTError(
                            "Default class for PrinterJob is not found");
                } catch (IllegalAccessException iae) {
                    throw new AWTError(
                            "No access to default class for PrinterJob");
                } catch (InstantiationException ie) {
                    throw new AWTError(
                            "Instantiation exception for PrinterJob");
                }
            }
        });
    }
View Full Code Here

        return (accessibleContext == null) ? (accessibleContext = new AccessibleBox())
                                           : accessibleContext;
    }

    public void setLayout(final LayoutManager layout) {
        throw new AWTError("Illegal request");
    }
View Full Code Here

            if (target != null) {
                alignment = target.getComponentOrientation().isHorizontal() ? LayoutParameters.VERTICAL_ALIGNMENT :
                                                                              LayoutParameters.HORIZONTAL_ALIGNMENT;
            }
        } else {
            throw new AWTError("Invalid axis");
        }
        return alignment;
    }
View Full Code Here

TOP

Related Classes of java.awt.AWTError

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.