目前,我正在做的是import java.awt.Graphics;
import java.awt.Shape;
import java.awt.geom.Line2D;
import java.awt.geom.Line2D.Float;
import java.awt.geom.Rectangle2D;
import java.awt.geom.RoundRectangle2D;
import java.awt.Canvas;
import javax.swing.JComponent;
import javax.swing.JPanel;
public class Main {
public static void main (String args[]) {
FilledFrame frame = new FilledFrame();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.show();
}
}
页面,以便用户再次输入以加载更改,但这不是应该如何
这是代码:
pop()
该页面包含课程列表,因此每次管理员添加课程时,都应该刷新页面以显示新的更改,而不是addCourse(param) {
let alert = this.alertCtrl.create({
title: 'Add course',
buttons: [
'Cancel'
]
});
alert.addInput({
name: 'param',
placeholder: 'course name'
});
alert.addButton({
text: 'Add',
handler: data => {
this.schoolAppUsers.insertStudentCourse(this.UserID, data.param).subscribe(res => {
let alert = this.alertCtrl.create({
message: res[0].message,
buttons: [{
text: 'Ok',
handler: () => {
let navTransition = alert.dismiss();
navTransition.then(() => {
this.navCtrl.pop();
});
return false;
}
}]
});
alert.present();
})
}
});
alert.present();
}
!!!
提前致谢。