This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 271599 - Автоматически сгенерированный текст нельзя изменить и из-за него программа не работает. Хочу изменять все
Summary: Автоматически сгенерированный текст нельзя изменить и из-за него программа не...
Status: RESOLVED WONTFIX
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.2
Hardware: PC Linux
: P2 normal (vote)
Assignee: issues@ide
URL:
Keywords: JDK_8
Depends on:
Blocks:
 
Reported: 2017-10-08 06:04 UTC by IFindBug
Modified: 2017-10-24 13:16 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description IFindBug 2017-10-08 06:04:10 UTC
Product Version = NetBeans IDE 8.2 (Build 201705191307)
Operating System = Linux version 4.9.51-1-MANJARO running on amd64
Java; VM; Vendor = 1.8.0_144
Runtime = OpenJDK 64-Bit Server VM 25.144-b01

Воспроизводимость: Происходит всегда

Шаги:
  * Создайте новый фрейм
  * Откройте код фрейма
  * Попробуйте изменить сгенерированный код. Ничего не выйдет, однако было необходимо создать DefaultListModel и передать ее JList
  * Откройте созданный файл .java в блокноте, смените все что хотите
  * Заново откройте NetBeans
  * Запустите проект. Все работает так, как надо
  *Сделайте мелкое изменение, сохраните проект
  * Все изменения, сделанные в блокноте, оказались стерты и программа не работает

Текущий результат:
  Не могу изменять сгенерированный текст

Ожидаемый результат:
  Я всемогущ и могу изменять все что угодно в своей программе
Comment 1 SirIntellegence 2017-10-23 18:40:16 UTC
That section of code is read-only because it gets over written by the designer. If you want to put custom code in there some where, you will need to use the properties window in the designer.

I would mark this as resolved, but I think someone with higher authority should do that.
Comment 2 Jiri Kovalsky 2017-10-24 13:16:37 UTC
Correct. You can only edit the code which is not auto-generated and you can only do that inside NetBeans. Changes done in external editors like Notepad are replaced on next change in GUI Builder. This is as designed, sorry.