[TeamTalk 136]: [673] TeamTalk/Agents/PenDecoder/src/edu/cmu/ravenclaw/pendecoder: 1) Slightly more native fell
bfrisch@edam.speech.cs.cmu.edu
bfrisch at edam.speech.cs.cmu.edu
Fri Jul 27 19:21:23 EDT 2007
An HTML attachment was scrubbed...
URL: http://mailman.srv.cs.cmu.edu/pipermail/teamtalk-developers/attachments/20070727/41eef69c/attachment.html
-------------- next part --------------
Modified: TeamTalk/Agents/PenDecoder/src/edu/cmu/ravenclaw/pendecoder/MapCanvas.java
===================================================================
--- TeamTalk/Agents/PenDecoder/src/edu/cmu/ravenclaw/pendecoder/MapCanvas.java 2007-07-27 21:58:02 UTC (rev 672)
+++ TeamTalk/Agents/PenDecoder/src/edu/cmu/ravenclaw/pendecoder/MapCanvas.java 2007-07-27 23:21:23 UTC (rev 673)
@@ -540,7 +540,7 @@
pane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
JRootPane root = new JRootPane();
root.setContentPane(pane);
- JFrame frame = new JFrame();
+ NativeFeelJFrame frame = new NativeFeelJFrame();
frame.getContentPane().add(root);
frame.validate();
frame.setVisible(true);
Modified: TeamTalk/Agents/PenDecoder/src/edu/cmu/ravenclaw/pendecoder/PenDecoderDisplay.java
===================================================================
--- TeamTalk/Agents/PenDecoder/src/edu/cmu/ravenclaw/pendecoder/PenDecoderDisplay.java 2007-07-27 21:58:02 UTC (rev 672)
+++ TeamTalk/Agents/PenDecoder/src/edu/cmu/ravenclaw/pendecoder/PenDecoderDisplay.java 2007-07-27 23:21:23 UTC (rev 673)
@@ -189,19 +189,9 @@
* @param title The title for the JFrame
* @return The docked root JFrame
*/
- protected JFrame buildDockedFrame(String title) {
- dockedFrame = new JFrame(title);
+ protected NativeFeelJFrame buildDockedFrame(String title) {
+ dockedFrame = new NativeFeelJFrame(title);
dockedFrame.getContentPane().setLayout(new BorderLayout());
-
- try {
- UIManager.setLookAndFeel(
- UIManager.getSystemLookAndFeelClassName());
- } catch (UnsupportedLookAndFeelException ex) {
- System.err.println("Unable to load native look and feel");
- }
- catch (Exception e) {
- System.err.println("Exception: " + e.toString());
- }
//menu bar
dockedFrame.getContentPane().add(menuBar, BorderLayout.NORTH);
@@ -239,13 +229,13 @@
* Builds the undocked frames
*/
protected void buildUndockedFrames() {
- mapCanvasFrame = new JFrame();
+ mapCanvasFrame = new NativeFeelJFrame();
mapCanvasFrame.setUndecorated(true);
mapCanvasFrame.setAlwaysOnTop(true);
- consoleFrame = new JFrame();
+ consoleFrame = new NativeFeelJFrame();
consoleFrame.setUndecorated(true);
consoleFrame.setAlwaysOnTop(true);
- imagerFrame = new JFrame();
+ imagerFrame = new NativeFeelJFrame();
imagerFrame.setUndecorated(true);
imagerFrame.setAlwaysOnTop(true);
}
@@ -684,22 +674,22 @@
/**
* The docked root JFrame
*/
- protected JFrame dockedFrame;
+ protected NativeFeelJFrame dockedFrame;
/**
* The undocked map canvas frame
*/
- protected JFrame mapCanvasFrame;
+ protected NativeFeelJFrame mapCanvasFrame;
/**
* The undocked console frame
*/
- protected JFrame consoleFrame;
+ protected NativeFeelJFrame consoleFrame;
/**
* The undocked imager frame
*/
- protected JFrame imagerFrame;
+ protected NativeFeelJFrame imagerFrame;
/**
* This is the root pane for the docked map canvas. It is a container for the
More information about the TeamTalk-developers
mailing list