From: <aki...@us...> - 2007-01-23 19:45:30
|
Revision: 1675 http://svn.sourceforge.net/gridarta/?rev=1675&view=rev Author: akirschbaum Date: 2007-01-23 11:45:28 -0800 (Tue, 23 Jan 2007) Log Message: ----------- Make text fields in Game Object Attributes Dialog and Panel wrap long lines. Modified Paths: -------------- trunk/crossfire/ChangeLog trunk/crossfire/src/cfeditor/gui/GameObjectAttributesPanel.java trunk/daimonin/src/daieditor/gui/GameObjectAttributesPanel.java trunk/src/app/net/sf/gridarta/gui/AbstractGameObjectAttributesDialog.java Modified: trunk/crossfire/ChangeLog =================================================================== --- trunk/crossfire/ChangeLog 2007-01-23 19:21:35 UTC (rev 1674) +++ trunk/crossfire/ChangeLog 2007-01-23 19:45:28 UTC (rev 1675) @@ -1,3 +1,8 @@ +2007-01-23 Andreas Kirschbaum + + * Make text fields in Game Object Attributes Dialog and Panel wrap + long lines. + 2007-01-22 Andreas Kirschbaum * Fix #1641829 ("script pad" highlights wrong). Modified: trunk/crossfire/src/cfeditor/gui/GameObjectAttributesPanel.java =================================================================== --- trunk/crossfire/src/cfeditor/gui/GameObjectAttributesPanel.java 2007-01-23 19:21:35 UTC (rev 1674) +++ trunk/crossfire/src/cfeditor/gui/GameObjectAttributesPanel.java 2007-01-23 19:45:28 UTC (rev 1675) @@ -231,6 +231,8 @@ updateFont(true); document = archEdit.getDocument(); + + archTextArea.setLineWrap(true); } /** Modified: trunk/daimonin/src/daieditor/gui/GameObjectAttributesPanel.java =================================================================== --- trunk/daimonin/src/daieditor/gui/GameObjectAttributesPanel.java 2007-01-23 19:21:35 UTC (rev 1674) +++ trunk/daimonin/src/daieditor/gui/GameObjectAttributesPanel.java 2007-01-23 19:45:28 UTC (rev 1675) @@ -248,6 +248,8 @@ updateFont(true); document = archEdit.getDocument(); + + archTextArea.setLineWrap(true); } /** {@inheritDoc} */ Modified: trunk/src/app/net/sf/gridarta/gui/AbstractGameObjectAttributesDialog.java =================================================================== --- trunk/src/app/net/sf/gridarta/gui/AbstractGameObjectAttributesDialog.java 2007-01-23 19:21:35 UTC (rev 1674) +++ trunk/src/app/net/sf/gridarta/gui/AbstractGameObjectAttributesDialog.java 2007-01-23 19:45:28 UTC (rev 1675) @@ -491,6 +491,7 @@ } final JTextArea input = new JTextArea(text, 10, 20); input.setBorder(BorderFactory.createEmptyBorder(3, 7, 0, 0)); + input.setLineWrap(true); final JScrollPane scrollPane = new JScrollPane(input); scrollPane.getViewport().setScrollMode(JViewport.SIMPLE_SCROLL_MODE); scrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |