-
Bug
-
Resolution: Fixed
-
P3
-
9, 10, 11, 12, 13, 14, 15
-
b13
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8275403 | 13.0.10 | Yuri Nesterenko | P3 | Resolved | Fixed | b01 |
JDK-8275236 | 11.0.14-oracle | Anton Litvinov | P3 | Resolved | Fixed | b02 |
JDK-8275324 | 11.0.14 | Martin Doerr | P3 | Resolved | Fixed | b01 |
JDK-8275871 | 11.0.13.0.2-oracle | Anton Litvinov | P3 | Closed | Fixed | b01 |
public class TabTestJFrame extends javax.swing.JFrame {
private javax.swing.JScrollPane jScrollPane1;
private javax.swing.JTextArea jTextArea1;
public TabTestJFrame() {
initComponents();
jTextArea1.setTabSize(8);
}
private void initComponents() {
jScrollPane1 = new javax.swing.JScrollPane();
jTextArea1 = new javax.swing.JTextArea();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
jTextArea1.setFont(new java.awt.Font("Monospaced", 0, 10));
jTextArea1.setLineWrap( true );
jTextArea1.setText("#################################################\n# Some Text\t\t\t\t\t#\n# Some Other Much Longer Text\t\t\t#\n#################################################");
jScrollPane1.setViewportView(jTextArea1);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 446, Short.MAX_VALUE)
.addContainerGap())
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jScrollPane1)
.addContainerGap())
);
pack();
}
public static void main(String args[]) {
System.out.println("Java Version: " + System.getProperty("java.specification.version"));
java.awt.EventQueue.invokeLater(() -> {new TabTestJFrame().setVisible(true);});
}
}
- backported by
-
JDK-8275236 Tab Size does not work correctly in JTextArea with setLineWrap on
-
- Resolved
-
-
JDK-8275324 Tab Size does not work correctly in JTextArea with setLineWrap on
-
- Resolved
-
-
JDK-8275403 Tab Size does not work correctly in JTextArea with setLineWrap on
-
- Resolved
-
-
JDK-8275871 Tab Size does not work correctly in JTextArea with setLineWrap on
-
- Closed
-
- duplicates
-
JDK-8274038 Tabs in JTextArea with line wrapping are rendered with fixed length
-
- Closed
-
- links to
-
Commit openjdk/jdk11u-dev/99ff2681
-
Commit openjdk/jdk13u-dev/f5c51d91
-
Review openjdk/jdk11u-dev/520
-
Review openjdk/jdk13u-dev/272