This essay developed out of conversations I've had with several other programmers about why Java smelled suspicious. It's not a critique of Java!
Sycorax - complete tutorials
Programming Tutorials
" Java provides the industry - software companies and customer alike , an opportunity to create a true open computing environment where software is portable,
and customers benefit from increase competition. "
Java and the Future
December 1, 2008-LEJB 3.1: EJB New and Improved!
The EJB 3.0 specification was a huge improvement from what you were used to in the early versions of EJB. Available as an early draft, EJB 3.1 has many more features and is even easier to use.
December 1, 2008-Should Java Assert that Network I/O Can't Occur on the UI Thread?
Doing network I/O on the user interface (UI) thread is bad. Most developers know that and can tell you why; unfortunately, it's still done.
Register now to recieve special alert and latest technology news!
AWT Interview Question
What are the subclasses of the Container class?
The Container class has three major subclasses. They are:
- Window
- Panel
- ScrollPane
Which object is needed to group Checkboxes to make them exclusive?
CheckboxGroup.
What are the types of Checkboxes and what is the difference between them? - Java supports two types of Checkboxes:
What are the types of Checkboxes and what is the difference between them? - Java supports two types of Checkboxes:
- Exclusive
- Non-exclusive.
In case of exclusive Checkboxes, only one among a group of items can be selected at a time. I f an item from the group is selected, the checkbox currently checked is deselected and the new selection is highlighted. The exclusive Checkboxes are also called as Radio buttons. The non-exclusive checkboxes are not grouped together and each one can be selected independent of the other.
What is a Layout Manager and what are the different Layout Managers available in java.awt and what is the default Layout manager for the panel and the panel subclasses?
A layout Manager is an object that is used to organize components in a container. The different layouts available in java.awt are:
- FlowLayout: The elements of a FlowLayout are organized in a top to bottom, left to right fashion.
- BorderLayout: The elements of a BorderLayout are organized at the borders (North, South, East and West) and the center of a container.
- CardLayout: The elements of a CardLayout are stacked, one on top of the other, like a deck of cards.
- GridLayout: The elements of a GridLayout are of equal size and are laid out using the square of a grid.
- GridBagLayout:
The elements of a GridBagLayout are organized according to a grid.However, the elements are of different sizes and may occupy more
than one row or column of the grid. In addition, the rows and columns may have different sizes.
Can I add the same component to more than one container?
No. Adding a component to a container automatically removes it from any previous parent (container).
How can we create a borderless window?
Create an instance of the Window class, give it a size, and show it on the screen.
Frame aFrame = new Frame();
Window aWindow = new Window(aFrame);
aWindow.setLayout(new FlowLayout());
aWindow.add(new Button("Press Me"));
aWindow.getBounds(50,50,200,200);
aWindow.show();
Can I create a non-resizable windows? If so, how?
Yes. By using setResizable() method in class Frame.