我想将文本的对齐方式设置为正确。实际上这些字段与货币有关,所以如果从右开始,它会看起来不错。
PreparedStatement stmt1 = con.prepareStatement("select sum(tv)as totalsum from mut_det WHERE rm_id = ?");
ResultSet rs1;
String rm1 = tf_rm_id.getText().trim();
stmt1.setInt(1, Integer.parseInt(rm1));
rs1 = stmt1.executeQuery();
while (rs1.next()) {
String text = rs1.getString("totalsum");
tf_rsfig.setText(text);
}