1 /*
   2  * Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 /**
  27  * Defines the AWT and Swing user interface toolkits, plus APIs for
  28  * accessibility, audio, imaging, printing, and JavaBeans.
  29  *
  30  * @moduleGraph
  31  * @since 9
  32  */
  33 module java.desktop {
  34     requires transitive java.datatransfer;
  35     requires transitive java.xml;
  36     requires java.prefs;
  37 
  38     exports java.applet;
  39     exports java.awt;
  40     exports java.awt.color;
  41     exports java.awt.desktop;
  42     exports java.awt.dnd;
  43     exports java.awt.event;
  44     exports java.awt.font;
  45     exports java.awt.geom;
  46     exports java.awt.im;
  47     exports java.awt.im.spi;
  48     exports java.awt.image;
  49     exports java.awt.image.renderable;
  50     exports java.awt.print;
  51     exports java.beans;
  52     exports java.beans.beancontext;
  53     exports javax.accessibility;
  54     exports javax.imageio;
  55     exports javax.imageio.event;
  56     exports javax.imageio.metadata;
  57     exports javax.imageio.plugins.bmp;
  58     exports javax.imageio.plugins.jpeg;
  59     exports javax.imageio.plugins.tiff;
  60     exports javax.imageio.spi;
  61     exports javax.imageio.stream;
  62     exports javax.print;
  63     exports javax.print.attribute;
  64     exports javax.print.attribute.standard;
  65     exports javax.print.event;
  66     exports javax.sound.midi;
  67     exports javax.sound.midi.spi;
  68     exports javax.sound.sampled;
  69     exports javax.sound.sampled.spi;
  70     exports javax.swing;
  71     exports javax.swing.border;
  72     exports javax.swing.colorchooser;
  73     exports javax.swing.event;
  74     exports javax.swing.filechooser;
  75     exports javax.swing.plaf;
  76     exports javax.swing.plaf.basic;
  77     exports javax.swing.plaf.metal;
  78     exports javax.swing.plaf.multi;
  79     exports javax.swing.plaf.nimbus;
  80     exports javax.swing.plaf.synth;
  81     exports javax.swing.table;
  82     exports javax.swing.text;
  83     exports javax.swing.text.html;
  84     exports javax.swing.text.html.parser;
  85     exports javax.swing.text.rtf;
  86     exports javax.swing.tree;
  87     exports javax.swing.undo;
  88 
  89     // qualified exports may be inserted at build time
  90     // see make/GensrcModuleInfo.gmk
  91     exports sun.awt to
  92         jdk.accessibility;
  93 
  94     opens javax.swing.plaf.basic to
  95         jdk.jconsole;
  96     opens com.sun.java.swing.plaf.windows to
  97         jdk.jconsole;
  98 
  99     uses java.awt.im.spi.InputMethodDescriptor;
 100     uses javax.accessibility.AccessibilityProvider;
 101     uses javax.imageio.spi.ImageInputStreamSpi;
 102     uses javax.imageio.spi.ImageOutputStreamSpi;
 103     uses javax.imageio.spi.ImageReaderSpi;
 104     uses javax.imageio.spi.ImageTranscoderSpi;
 105     uses javax.imageio.spi.ImageWriterSpi;
 106     uses javax.print.PrintServiceLookup;
 107     uses javax.print.StreamPrintServiceFactory;
 108     uses javax.sound.midi.spi.MidiDeviceProvider;
 109     uses javax.sound.midi.spi.MidiFileReader;
 110     uses javax.sound.midi.spi.MidiFileWriter;
 111     uses javax.sound.midi.spi.SoundbankReader;
 112     uses javax.sound.sampled.spi.AudioFileReader;
 113     uses javax.sound.sampled.spi.AudioFileWriter;
 114     uses javax.sound.sampled.spi.FormatConversionProvider;
 115     uses javax.sound.sampled.spi.MixerProvider;
 116 
 117     provides sun.datatransfer.DesktopDatatransferService with
 118         sun.awt.datatransfer.DesktopDatatransferServiceImpl;
 119 
 120     provides java.net.ContentHandlerFactory with
 121         sun.awt.www.content.MultimediaContentHandlers;
 122 
 123     provides javax.print.PrintServiceLookup with
 124         sun.print.PrintServiceLookupProvider;
 125 
 126     provides javax.print.StreamPrintServiceFactory with
 127         sun.print.PSStreamPrinterFactory;
 128 
 129     provides javax.sound.midi.spi.MidiDeviceProvider with
 130         com.sun.media.sound.MidiInDeviceProvider,
 131         com.sun.media.sound.MidiOutDeviceProvider,
 132         com.sun.media.sound.RealTimeSequencerProvider,
 133         com.sun.media.sound.SoftProvider;
 134 
 135     provides javax.sound.midi.spi.MidiFileReader with
 136         com.sun.media.sound.StandardMidiFileReader;
 137 
 138     provides javax.sound.midi.spi.MidiFileWriter with
 139         com.sun.media.sound.StandardMidiFileWriter;
 140 
 141     provides javax.sound.midi.spi.SoundbankReader with
 142         com.sun.media.sound.AudioFileSoundbankReader,
 143         com.sun.media.sound.DLSSoundbankReader,
 144         com.sun.media.sound.JARSoundbankReader,
 145         com.sun.media.sound.SF2SoundbankReader;
 146 
 147     provides javax.sound.sampled.spi.AudioFileReader with
 148         com.sun.media.sound.AiffFileReader,
 149         com.sun.media.sound.AuFileReader,
 150         com.sun.media.sound.SoftMidiAudioFileReader,
 151         com.sun.media.sound.WaveFileReader,
 152         com.sun.media.sound.WaveFloatFileReader,
 153         com.sun.media.sound.WaveExtensibleFileReader;
 154 
 155     provides javax.sound.sampled.spi.AudioFileWriter with
 156         com.sun.media.sound.AiffFileWriter,
 157         com.sun.media.sound.AuFileWriter,
 158         com.sun.media.sound.WaveFileWriter,
 159         com.sun.media.sound.WaveFloatFileWriter;
 160 
 161     provides javax.sound.sampled.spi.FormatConversionProvider with
 162         com.sun.media.sound.AlawCodec,
 163         com.sun.media.sound.AudioFloatFormatConverter,
 164         com.sun.media.sound.PCMtoPCMCodec,
 165         com.sun.media.sound.UlawCodec;
 166 
 167     provides javax.sound.sampled.spi.MixerProvider with
 168         com.sun.media.sound.DirectAudioDeviceProvider,
 169         com.sun.media.sound.PortMixerProvider;
 170 }