|
JavaTM 2 Platform Standard Edition |
|||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use String | |
| java.applet | Provides the classes necessary to create an applet and the classes an applet uses to communicate with its applet context. |
| java.awt | Contains all of the classes for creating user interfaces and for painting graphics and images. |
| java.awt.color | Provides classes for color spaces. |
| java.awt.datatransfer | Provides interfaces and classes for transferring data between and within applications. |
| java.awt.dnd | Drag and Drop is a direct manipulation gesture found in many Graphical User Interface systems that provides a mechanism to transfer information between two entities logically associated with presentation elements in the GUI. |
| java.awt.event | Provides interfaces and classes for dealing with different types of events fired by AWT components. |
| java.awt.font | Provides classes and interface relating to fonts. |
| java.awt.geom | Provides the Java 2D classes for defining and performing operations on objects related to two-dimensional geometry. |
| java.awt.image | Provides classes for creating and modifying images. |
| java.awt.image.renderable | Provides classes and interfaces for producing rendering-independent images. |
| java.awt.print | Provides classes and interfaces for a general printing API. |
| java.beans | Contains classes related to Java Beans development. |
| java.beans.beancontext | Provides classes and interfaces relating to bean context. |
| java.io | Provides for system input and output through data streams, serialization and the file system. |
| java.lang | Provides classes that are fundamental to the design of the Java programming language. |
| java.lang.reflect | Provides classes and interfaces for obtaining reflective information about classes and objects. |
| java.math | Provides classes for performing arbitrary-precision integer arithmetic (BigInteger) and arbitrary-precision decimal arithmetic (BigDecimal). |
| java.net | Provides the classes for implementing networking applications. |
| java.rmi | Provides the RMI package. |
| java.rmi.activation | Provides support for RMI Object Activation. |
| java.rmi.dgc | Provides classes and interface for RMI distributed garbage-collection (DGC). |
| java.rmi.registry | Provides a class and two interfaces for the RMI registry. |
| java.rmi.server | Provides classes and interfaces for supporting the server side of RMI. |
| java.security | Provides the classes and interfaces for the security framework. |
| java.security.acl | The classes and interfaces in this package have been superseded by classes in the java.security package. |
| java.security.cert | Provides classes and interfaces for parsing and managing certificates. |
| java.security.spec | Provides classes and interfaces for key specifications and algorithm parameter specifications. |
| java.sql | Provides the JDBC package. |
| java.text | Provides classes and interfaces for handling text, dates, numbers, and messages in a manner independent of natural languages. |
| java.util | Contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes (a string tokenizer, a random-number generator, and a bit array). |
| java.util.jar | Provides classes for reading and writing the JAR (Java ARchive) file format, which is based on the standard ZIP file format with an optional manifest file. |
| java.util.zip | Provides classes for reading and writing the standard ZIP and GZIP file formats. |
| javax.accessibility | Defines a contract between user-interface components and an assistive technology that provides access to those components. |
| javax.swing | Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms. |
| javax.swing.border | Provides classes and interface for drawing specialized borders around a Swing component. |
| javax.swing.colorchooser | Contains classes and interfaces used by the JColorChooser component. |
| javax.swing.event | Provides for events fired by Swing components. |
| javax.swing.filechooser | Contains classes and interfaces used by the JFileChooser component. |
| javax.swing.plaf | Provides one interface and many abstract classes that Swing uses to provide its pluggable look-and-feel capabilities. |
| javax.swing.plaf.basic | Provides user interface objects built according to the Basic look-and-feel. |
| javax.swing.plaf.metal | Provides user interface objects built according to the ``metal'' look-and-feel. |
| javax.swing.plaf.multi | The multiplexing look and feel allows users to combine auxiliary look and feels with the default look and feel. |
| javax.swing.table | Provides classes and interfaces for dealing with java.awt.swing.JTable. |
| javax.swing.text | Provides classes and interfaces that deal with editable and noneditable text components. |
| javax.swing.text.html | Provides the class HTMLEditorKit and supporting classes
for creating HTML text editors. |
| javax.swing.text.html.parser | |
| javax.swing.text.rtf | Provides a class (RTFEditorKit) for creating Rich-Text-Format text editors. |
| javax.swing.tree | Provides classes and interfaces for dealing with java.awt.swing.JTree. |
| javax.swing.undo | Provides support for undo/redo capabilities in an application such as a text editor. |
| org.omg.CORBA | Provides the mapping of the OMG CORBA APIs to the JavaTM programming language, including the class ORB, which is implemented so that a programmer can use it as a fully-functional Object Request Broker (ORB). |
| org.omg.CORBA.DynAnyPackage | Provides the exceptions used with the DynAny interface
(InvalidValue,
Invalid, InvalidSeq, and
TypeMismatch). |
| org.omg.CORBA.ORBPackage | Provides the exception InvalidName, which is thrown
by the method ORB.resolve_initial_references
and the exception InconsistentTypeCode, which is thrown
by the Dynamic Any creation methods in the ORB class. |
| org.omg.CORBA.portable | Provides a portability layer, that is, a set of ORB APIs that makes it possible for code generated by one vendor to run on another vendor's ORB. |
| org.omg.CORBA.TypeCodePackage | Provides the user-defined exceptions BadKind
and Bounds, which are thrown by methods in
in the class TypeCode. |
| org.omg.CosNaming | Provides the naming service for Java IDL. |
| org.omg.CosNaming.NamingContextPackage | Provides the exceptions used in the package org.omg.CosNaming
(AlreadyBound, CannotProceed,
InvalidName, NotEmpty, and
NotFound)
and also the Helper and Holder classes for those
exceptions. |
| Uses of String in java.applet |
| Methods in java.applet that return String | |
String |
Applet.getParameter(String name)
Returns the value of the named parameter in the HTML tag. |
String |
Applet.getAppletInfo()
Returns information about this applet. |
String[][] |
Applet.getParameterInfo()
Returns information about the parameters than are understood by this applet. |
String |
AppletStub.getParameter(String name)
Returns the value of the named parameter in the HTML tag. |
| Methods in java.applet with parameters of type String | |
String |
Applet.getParameter(String name)
Returns the value of the named parameter in the HTML tag. |
void |
Applet.showStatus(String msg)
Requests that the argument string be displayed in the "status window". |
Image |
Applet.getImage(URL url,
String name)
Returns an Image object that can then be painted on
the screen. |
AudioClip |
Applet.getAudioClip(URL url,
String name)
Returns the AudioClip object specified by the
URL and name arguments. |
void |
Applet.play(URL url,
String name)
Plays the audio clip given the URL and a specifier that is relative to it. |
String |
AppletStub.getParameter(String name)
Returns the value of the named parameter in the HTML tag. |
Applet |
AppletContext.getApplet(String name)
Finds and returns the applet in the document represented by this applet context with the given name. |
void |
AppletContext.showDocument(URL url,
String target)
Requests that the browser or applet viewer show the Web page indicated by the url argument. |
void |
AppletContext.showStatus(String status)
Requests that the argument string be displayed in the "status window". |
| Uses of String in java.awt |
| Fields in java.awt declared as String | |
protected String |
Cursor.name
The user-visible name of the cursor. |
protected String |
Font.name
The logical name of this Font, as passed to the
constructor. |
static String |
BorderLayout.NORTH
The north layout constraint (top of container). |
static String |
BorderLayout.SOUTH
The south layout constraint (bottom of container). |
static String |
BorderLayout.EAST
The east layout constraint (right side of container). |
static String |
BorderLayout.WEST
The west layout constraint (left side of container). |
static String |
BorderLayout.CENTER
The center layout constraint (middle of container). |
static String |
BorderLayout.BEFORE_FIRST_LINE
The component comes before the first line of the layout's content. |
static String |
BorderLayout.AFTER_LAST_LINE
The component comes after the last line of the layout's content. |
static String |
BorderLayout.BEFORE_LINE_BEGINS
The component goes at the beginning of the line direction for the layout. |
static String |
BorderLayout.AFTER_LINE_ENDS
The component goes at the end of the line direction for the layout. |
| Methods in java.awt that return String | |
String |
Component.getName()
Gets the name of the component. |
protected String |
Component.paramString()
Returns a string representing the state of this component. |
String |
Component.toString()
Returns a string representation of this component and its values. |
protected String |
Container.paramString()
Returns the parameter string representing the state of this container. |
String |
CardLayout.toString()
Returns a string representation of the state of this card layout. |
abstract String[] |
GraphicsEnvironment.getAvailableFontFamilyNames()
Returns an array containing the names of all font families available in this GraphicsEnvironment. |
abstract String[] |
GraphicsEnvironment.getAvailableFontFamilyNames(Locale l)
Returns an array containing the localized names of all font families available in this GraphicsEnvironment. |
String |
Cursor.getName()
Returns the name of this cursor. |
String |
Cursor.toString()
Returns a string representation of this cursor. |
String |
Dimension.toString()
Returns a string representation of the values of this Dimension object's height and
width fields. |
protected String |
Event.paramString()
Returns the parameter string representing this event. |
String |
Event.toString()
Returns a representation of this event's values as a string. |
String |
MenuComponent.getName()
Gets the name of the menu component. |
protected String |
MenuComponent.paramString()
Returns the parameter string representing the state of this menu component. |
String |
MenuComponent.toString()
Returns a representation of this menu component as a string. |
abstract String |
GraphicsDevice.getIDstring()
Returns the identification string associated with this GraphicsDevice. |
String |
Point.toString()
Returns a string representation of this point and its location in the (x, y) coordinate space. |
String |
CheckboxGroup.toString()
Returns a string representation of this check box group, including the value of its current selection. |
String |
Graphics.toString()
Returns a String object representing this
Graphics object's value. |
String |
TextComponent.getText()
Gets the text that is presented by this text component. |
String |
TextComponent.getSelectedText()
Gets the selected text from the text that is presented by this text component. |
protected String |
TextComponent.paramString()
Returns the parameter string representing the state of this text component. |
String |
GridLayout.toString()
Returns the string representation of this grid layout's values. |
String |
RenderingHints.toString()
Returns a rather long string representation of the hashmap which contains the mappings of keys to values for this RenderingHints object. |
String |
Checkbox.getLabel()
Gets the label of this check box. |
protected String |
Checkbox.paramString()
Returns the parameter string representing the state of this check box. |
String |
Color.toString()
Returns a string representation of this color. |
String |
SystemColor.toString()
Returns the String representation of this Color's values. |
String |
MenuShortcut.toString()
Returns an internationalized description of the MenuShortcut. |
protected String |
MenuShortcut.paramString()
|
abstract String[] |
Toolkit.getFontList()
Deprecated. see GraphicsEnvironment.getAvailableFontFamilyNames() |
static String |
Toolkit.getProperty(String key,
String defaultValue)
Gets a property with the specified key and default. |
String |
Insets.toString()
Returns a string representation of this Insets object. |
String |
ScrollPane.paramString()
|
protected String |
Scrollbar.paramString()
Returns the parameter string representing the state of this scroll bar. |
String |
Choice.getItem(int index)
Gets the string at the specified index in this Choice menu. |
String |
Choice.getSelectedItem()
Gets a representation of the current choice as a string. |
protected String |
Choice.paramString()
Returns the parameter string representing the state of this choice menu. |
String |
FontMetrics.toString()
Returns a representation of this FontMetrics
object's values as a String. |
String |
Window.getWarningString()
Gets the warning string that is displayed with this window. |
String |
MenuItem.getLabel()
Gets the label for this menu item. |
String |
MenuItem.getActionCommand()
Gets the command name of the action event that is fired by this menu item. |
String |
MenuItem.paramString()
Returns the parameter string representing the state of this menu item. |
String |
CheckboxMenuItem.paramString()
Returns the parameter string representing the state of this check box menu item. |
String |
Frame.getTitle()
Gets the title of the frame. |
protected String |
Frame.paramString()
Returns the parameter String of this Frame. |
String |
Button.getLabel()
Gets the label of this button. |
String |
Button.getActionCommand()
Returns the command name of the action event fired by this button. |
protected String |
Button.paramString()
Returns the parameter string representing the state of this button. |
protected String |
TextField.paramString()
Returns the parameter string representing the state of this text field. |
String |
Menu.paramString()
Gets the parameter string representing the state of this menu. |
String |
Rectangle.toString()
Returns a String representing this
Rectangle and its values. |
String |
Dialog.getTitle()
Gets the title of the dialog. |
protected String |
Dialog.paramString()
Returns the parameter string representing the state of this dialog window. |
String |
FileDialog.getDirectory()
Gets the directory of this file dialog. |
String |
FileDialog.getFile()
Gets the selected file of this file dialog. |
protected String |
FileDialog.paramString()
Returns the parameter string representing the state of this file dialog window. |
protected String |
TextArea.paramString()
Returns the parameter string representing the state of this text area. |
String |
List.getItem(int index)
Gets the item associated with the specified index. |
String[] |
List.getItems()
Gets the items in the list. |
String |
List.getSelectedItem()
Get the selected item on this scrolling list. |
String[] |
List.getSelectedItems()
Get the selected items on this scrolling list. |
protected String |
List.paramString()
Returns the parameter string representing the state of this scrolling list. |
String |
GridBagLayout.toString()
Returns a string representation of this grid bag layout's values. |
String |
AWTEvent.toString()
|
String |
AWTEvent.paramString()
Returns a string representing the state of this event. |
String |
Font.getFamily()
Returns the family name of this Font. |
String |
Font.getFamily(Locale l)
Returns the family name of this Font, localized for
the specified locale. |
String |
Font.getPSName()
Returns the postscript name of this Font. |
String |
Font.getName()
Returns the logical name of this Font. |
String |
Font.getFontName()
Returns the font face name of this Font. |
String |
Font.getFontName(Locale l)
Returns the font face name of the Font, localized
for the specified locale. |
String |
Font.toString()
Converts this Font object to a String
representation. |
String |
FlowLayout.toString()
Returns a string representation of this FlowLayout
object and its values. |
String |
Label.getText()
Gets the text of this label. |
protected String |
Label.paramString()
Returns the parameter string representing the state of this label. |
String |
BorderLayout.toString()
Returns a string representation of the state of this border layout. |
| Methods in java.awt with parameters of type String | |
void |
Component.setName(String name)
Sets the name of the component to the specified string. |
void |
Component.addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Add a PropertyChangeListener for a specific property. |
void |
Component.removePropertyChangeListener(String propertyName,
PropertyChangeListener listener)
Remove a PropertyChangeListener for a specific property. |
protected void |
Component.firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
Support for reporting bound property changes. |
Component |
Container.add(String name,
Component comp)
Adds the specified component to this container. |
void |
CardLayout.addLayoutComponent(String name,
Component comp)
Deprecated. replaced by addLayoutComponent(Component, Object). |
void |
CardLayout.show(Container parent,
String name)
Flips to the component that was added to this layout with the specified name, using addLayoutComponent. |
static Cursor |
Cursor.getSystemCustomCursor(String name)
|
void |
MenuComponent.setName(String name)
Sets the name of the component to the specified string. |
abstract void |
Graphics.drawString(String str,
int x,
int y)
Draws the text given by the specified string, using this graphics context's current font and color. |
void |
TextComponent.setText(String t)
Sets the text that is presented by this text component to be the specified text. |
void |
GridLayout.addLayoutComponent(String name,
Component comp)
Adds the specified component with the specified name to the layout. |
void |
Checkbox.setLabel(String label)
Sets this check box's label to be the string argument. |
static Color |
Color.decode(String nm)
Converts a string to an integer and returns the specified opaque color. |
static Color |
Color.getColor(String nm)
Finds a color in the system properties. |
static Color |
Color.getColor(String nm,
Color v)
Finds a color in the system properties. |
static Color |
Color.getColor(String nm,
int v)
Finds a color in the system properties. |
protected abstract java.awt.peer.FontPeer |
Toolkit.getFontPeer(String name,
int style)
Deprecated. see java.awt.GraphicsEnvironment#getAllFonts |
abstract Image |
Toolkit.getImage(String filename)
Returns an image which gets pixel data from the specified file. |
abstract Image |
Toolkit.createImage(String filename)
Returns an image which gets pixel data from the specified file. |
abstract PrintJob |
Toolkit.getPrintJob(Frame frame,
String jobtitle,
Properties props)
Gets a PrintJob object which is the result
of initiating a print operation on the toolkit's platform. |
Cursor |
Toolkit.createCustomCursor(Image cursor,
Point hotSpot,
String name)
Creates a new custom cursor object. |
static String |
Toolkit.getProperty(String key,
String defaultValue)
Gets a property with the specified key and default. |
Object |
Toolkit.getDesktopProperty(String propertyName)
obtain a value for the specified desktop property. |
protected void |
Toolkit.setDesktopProperty(String name,
Object newValue)
set the named desktop property to the specified value and fire a property change event to notify any listeners that the value has changed |
protected Object |
Toolkit.lazilyLoadDesktopProperty(String name)
an opportunity to lazily evaluate desktop property values. |
void |
Toolkit.addPropertyChangeListener(String name,
PropertyChangeListener pcl)
add the specified property change listener for the named desktop property If pcl is null, no exception is thrown and no action is performed. |
void |
Toolkit.removePropertyChangeListener(String name,
PropertyChangeListener pcl)
remove the specified property change listener for the named desktop property If pcl is null, no exception is thrown and no action is performed. |
abstract Object |
Image.getProperty(String name,
ImageObserver observer)
Gets a property of this image by name. |
void |
Choice.add(String item)
Adds an item to this Choice menu. |
void |
Choice.addItem(String item)
Adds an item to this Choice. |
void |
Choice.insert(String item,
int index)
Inserts the item into this choice at the specified position. |
void |
Choice.remove(String item)
Remove the first occurrence of item
from the Choice menu. |
void |
Choice.select(String str)
Sets the selected item in this Choice menu
to be the item whose name is equal to the specified string. |
int |
FontMetrics.stringWidth(String str)
Returns the total advance width for showing the specified String in this Font. |
LineMetrics |
FontMetrics.getLineMetrics(String str,
Graphics context)
Returns the LineMetrics object for the specified
String in the specified Graphics context. |
LineMetrics |
FontMetrics.getLineMetrics(String str,
int beginIndex,
int limit,
Graphics context)
Returns the LineMetrics object for the specified
String in the specified Graphics context. |
Rectangle2D |
FontMetrics.getStringBounds(String str,
Graphics context)
Returns the bounds of the specified String in the
specified Graphics context. |
Rectangle2D |
FontMetrics.getStringBounds(String str,
int beginIndex,
int limit,
Graphics context)
Returns the bounds of the specified String in the
specified Graphics context. |
void |
Window.applyResourceBundle(String rbName)
Load the ResourceBundle with the given name using the default locale and apply its settings to this window. |
void |
MenuItem.setLabel(String label)
Sets the label for this menu item to the specified label. |
void |
MenuItem.setActionCommand(String command)
Sets the command name of the action event that is fired by this menu item. |
abstract void |
Graphics2D.drawString(String str,
int x,
int y)
Renders the text of the specified String, using the
current Font and Paint attributes in the
Graphics2D context. |
abstract void |
Graphics2D.drawString(String s,
float x,
float y)
Renders the text specified by the specified String,
using the current Font and Paint attributes
in the Graphics2D context. |
void |
Frame.setTitle(String title)
Sets the title for this frame to the specified string. |
void |
Button.setLabel(String label)
Sets the button's label to be the specified string. |
void |
Button.setActionCommand(String command)
Sets the command name for the action event fired by this button. |
void |
TextField.setText(String t)
Sets the text that is presented by this text component to be the specified text. |
void |
Menu.add(String label)
Adds an item with the specified label to this menu. |
void |
Menu.insert(String label,
int index)
Inserts a menu item with the specified label into this menu at the specified position. |
void |
Dialog.setTitle(String title)
Sets the title of the Dialog. |
void |
LayoutManager.addLayoutComponent(String name,
Component comp)
Adds the specified component with the specified name to the layout. |
void |
FileDialog.setDirectory(String dir)
Sets the directory of this file dialog window to be the specified directory. |
void |
FileDialog.setFile(String file)
Sets the selected file for this file dialog window to be the specified file. |
void |
TextArea.insert(String str,
int pos)
Inserts the specified text at the specified position in this text area. |
void |
TextArea.insertText(String str,
int pos)
Deprecated. As of JDK version 1.1, replaced by insert(String, int). |
void |
TextArea.append(String str)
Appends the given text to the text area's current text. |
void |
TextArea.appendText(String str)
Deprecated. As of JDK version 1.1, replaced by append(String). |
void |
TextArea.replaceRange(String str,
int start,
int end)
Replaces text between the indicated start and end positions with the specified replacement text. |
void |
TextArea.replaceText(String str,
int start,
int end)
Deprecated. As of JDK version 1.1, replaced by replaceRange(String, int, int). |
void |
List.add(String item)
Adds the specified item to the end of scrolling list. |
void |
List.addItem(String item)
Deprecated. replaced by add(String). |
void |
List.add(String item,
int index)
Adds the specified item to the the scrolling list at the position indicated by the index. |
void |
List.addItem(String item,
int index)
Deprecated. replaced by add(String, int). |
void |
List.replaceItem(String newValue,
int index)
Replaces the item at the specified index in the scrolling list with the new string. |
void |
List.remove(String item)
Removes the first occurrence of an item from the list. |
void |
GridBagLayout.addLayoutComponent(String name,
Component comp)
Adds the specified component with the specified name to the layout. |
static Font |
Font.getFont(String nm)
Returns a Font object from the system properties list. |
static Font |
Font.decode(String str)
Returns the Font that the str
argument describes. |
static Font |
Font.getFont(String nm,
Font font)
Gets the specified Font from the system properties
list. |
int |
Font.canDisplayUpTo(String str)
Indicates whether or not this Font can display a
specified String. |
LineMetrics |
Font.getLineMetrics(String str,
FontRenderContext frc)
Returns a LineMetrics object created with the specified
String and FontRenderContext. |
LineMetrics |
Font.getLineMetrics(String str,
int beginIndex,
int limit,
FontRenderContext frc)
Returns a LineMetrics object created with the
specified arguments. |
Rectangle2D |
Font.getStringBounds(String str,
FontRenderContext frc)
Returns the bounds of the specified String in the
specified FontRenderContext. |
Rectangle2D |
Font.getStringBounds(String str,
int beginIndex,
int limit,
FontRenderContext frc)
Returns the bounds of the specified String in the
specified FontRenderContext. |
GlyphVector |
Font.createGlyphVector(FontRenderContext frc,
String str)
Returns a new GlyphVector object created with the
specified String and the specified
FontRenderContext. |
void |
FlowLayout.addLayoutComponent(String name,
Component comp)
Adds the specified component to the layout. |
void |
Label.setText(String text)
Sets the text for this label to the specified text. |
protected void |
AWTEventMulticaster.saveInternal(ObjectOutputStream s,
String k)
|
protected static void |
AWTEventMulticaster.save(ObjectOutputStream s,
String k,
EventListener l)
|
void |
BorderLayout.addLayoutComponent(String name,
Component comp)
Deprecated. replaced by addLayoutComponent(Component, Object). |
| Constructors in java.awt with parameters of type String | |
AWTException.AWTException(String msg)
Constructs an instance of AWTException with the
specified detail message. |
|
IllegalComponentStateException.IllegalComponentStateException(String s)
Constructs an IllegalComponentStateException with the specified detail message. |
|
Cursor.Cursor(String name)
Creates a new custom cursor object with the specified name. |
|
Checkbox.Checkbox(String label)
Creates a check box with the specified label. |
|
Checkbox.Checkbox(String label,
boolean state)
Creates a check box with the specified label and sets the specified state. |
|
Checkbox.Checkbox(String label,
boolean state,
CheckboxGroup group)
Creates a check box with the specified label, in the specified check box group, and set to the specified state. |
|
Checkbox.Checkbox(String label,
CheckboxGroup group,
boolean state)
Constructs a Checkbox with the specified label, set to the specified state, and in the specified check box group. |
|
AWTPermission.AWTPermission(String name)
Creates a new AWTPermission with the specified name. |
|
AWTPermission.AWTPermission(String name,
String actions)
Creates a new AWTPermission object with the specified name. |
|
MenuItem.MenuItem(String label)
Constructs a new MenuItem with the specified label and no keyboard shortcut. |
|
MenuItem.MenuItem(String label,
MenuShortcut s)
Create a menu item with an associated keyboard shortcut. |
|
CheckboxMenuItem.CheckboxMenuItem(String label)
Create a check box menu item with the specified label. |
|
CheckboxMenuItem.CheckboxMenuItem(String label,
boolean state)
Create a check box menu item with the specified label and state. |
|
Frame.Frame(String title)
Constructs a new, initially invisible Frame object
with the specified title. |
|
Button.Button(String label)
Constructs a Button with the specified label. |
|
TextField.TextField(String text)
Constructs a new text field initialized with the specified text. |
|
TextField.TextField(String text,
int columns)
Constructs a new text field initialized with the specified text to be displayed, and wide enough to hold the specified number of columns. |
|
Menu.Menu(String label)
Constructs a new menu with the specified label. |
|
Menu.Menu(String label,
boolean tearOff)
Constructs a new menu with the specified label, indicating whether the menu can be torn off. |
|
PopupMenu.PopupMenu(String label)
Creates a new popup menu with the specified name. |
|
Dialog.Dialog(Frame owner,
String title)
Constructs an initially invisible, non-modal Dialog with the specified owner frame and title. |
|
Dialog.Dialog(Frame owner,
String title,
boolean modal)
Constructs an initially invisible Dialog with the specified owner frame, title, and modality. |
|
Dialog.Dialog(Dialog owner,
String title)
Constructs an initially invisible, non-modal Dialog with the specified owner dialog and title. |
|
Dialog.Dialog(Dialog owner,
String title,
boolean modal)
Constructs an initially invisible Dialog with the specified owner dialog, title, and modality. |
|
FileDialog.FileDialog(Frame parent,
String title)
Creates a file dialog window with the specified title for loading a file. |
|
FileDialog.FileDialog(Frame parent,
String title,
int mode)
Creates a file dialog window with the specified title for loading or saving a file. |
|
AWTError.AWTError(String msg)
Constructs an instance of AWTError with the specified
detail message. |
|
TextArea.TextArea(String text)
Constructs a new text area with the specified text. |
|
TextArea.TextArea(String text,
int rows,
int columns)
Constructs a new text area with the specified text, and with the specified number of rows and columns. |
|
TextArea.TextArea(String text,
int rows,
int columns,
int scrollbars)
Constructs a new text area with the specified text, and with the rows, columns, and scroll bar visibility as specified. |
|
Font.Font(String name,
int style,
int size)
Creates a new Font from the specified name, style and
point size. |
|
Label.Label(String text)
Constructs a new label with the specified string of text, left justified. |
|
Label.Label(String text,
int alignment)
Constructs a new label that presents the specified string of text with the specified alignment. |
|
| Uses of String in java.awt.color |
| Methods in java.awt.color that return String | |
String |
ColorSpace.getName(int idx)
Returns the name of the component given the component index |
| Methods in java.awt.color with parameters of type String | |
static ICC_Profile |
ICC_Profile.getInstance(String fileName)
Constructs an ICC_Profile corresponding to the data in a file. |
void |
ICC_Profile.write(String fileName)
Write this ICC_Profile to a file. |
| Constructors in java.awt.color with parameters of type String | |
CMMException.CMMException(String s)
Constructs a CMMException with the specified detail message. |
|
ProfileDataException.ProfileDataException(String s)
Constructs a ProfileDataException with the specified detail message. |
|
| Uses of String in java.awt.datatransfer |
| Fields in java.awt.datatransfer declared as String | |
static String |
DataFlavor.javaSerializedObjectMimeType
a MIME Content-Type of application/x-java-serialized-object represents a graph of Java object(s) that have been made persistent. |
static String |
DataFlavor.javaJVMLocalObjectMimeType
to transfer a reference to an arbitrary Java object reference that has no associated MIME Content-type, across a Transferable interface WITHIN THE SAME JVM, a DataFlavor with this type/subtype is used, with a representationClass equal to the type of the class/interface being passed across the Transferble. |
static String |
DataFlavor.javaRemoteObjectMimeType
In order to pass a live link to a Remote object via a Drag and Drop ACTION_LINK operation a Mime Content Type of application/x-java-remote-object should be used, where the representation class of the DataFlavor represents the type of the Remote interface to be transferred. |
| Methods in java.awt.datatransfer that return String | |
String |
DataFlavor.toString()
|
String |
DataFlavor.getMimeType()
Returns the MIME type string for this DataFlavor |