.htaccess文件:
Options -Indexes
当我添加这一行时:
public Form() {
setVisible(true);
setContentPane(content);
setSize(400,500);
setTitle("Deklaracja pacjenta");
setResizable(false);
Output.setLineWrap(true);
Output.setFont(new Font("Serif",Font.PLAIN,20));
Output.setEditable(false);
msgScroller = new JScrollPane();
msgScroller.setViewportView(Output);
msg.add(msgScroller);
browseButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
String filename = File.separator;
browser = new JFileChooser(new File(filename));
browser.setPreferredSize(new Dimension(600,400));
FileNameExtensionFilter ff = new FileNameExtensionFilter("xml files (*.xml)", "xml");
browser.addChoosableFileFilter(ff);
browser.setFileFilter(ff);
int zwrot = browser.showOpenDialog(content);
if (zwrot == JFileChooser.APPROVE_OPTION ){
selFile = browser.getSelectedFile();
browsePath.setText(String.valueOf(selFile));
browsePath.setEditable(false);}
else
setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); }});
到htaccess文件,网站已停止工作
请建议和感谢